INNER CODE UNIT · Python
load
aimclub/FEDOT · fedot/api/main.py:382
def load(self, path):
"""Loads saved graph from disk
Args:
path: path to ``json`` file with model.
"""
self.current_pipeline = Pipeline(use_input_preprocessing=self.params.get('use_input_preprocessing'))
self.current_pipeline.load(path)
self.data_processor.preprocessor = self.current_pipeline.preprocessor
def plot_pareto(self):
metric_names = [str(metric) for metric in self.metrics]
# archive_history stores archives of the best models.
# Each archive is sorted from the best to the worst model,
# so the best_candidates is sorted too.
best_candidates = self.history.archive_history[-1]
visualise_pareto(front=best_candidates,
objectives_names=metric_names,