INNER CODE UNIT · Python

__init__

aimclub/FEDOT · fedot/core/pipelines/prediction_intervals/main.py:38

    def __init__(self,
                 model: Fedot,
                 horizon: Optional[int] = None,
                 nominal_error: float = 0.1,
                 method: str = 'mutation_of_best_pipeline',
                 params: PredictionIntervalsParams = PredictionIntervalsParams()):

        # check whether PredictionIntervals defined correctly
        check_init_params(model, horizon, nominal_error, method, params)

        last_generations = get_last_generations(model)
        self.generation = last_generations['last_generation']
        self.best_ind = last_generations['final_choice']
        self.ts = model.train_data.features

        self.horizon = horizon or model.params.task.task_params.forecast_length
        self.model_forecast = model.forecast(horizon=self.horizon)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…