class_docstr: Class for building prediction intervals based on Fedot functionality.
  
  Args:
      model: a fitted Fedot class object for times series forecasting task
      horizon: horizon for ts forecasting
      nominal_error: nominal error for prediction intervals task
      method: general method for creating forecasts. Possible options:
  
           - 'last_generation_ql' -> a number of pipelines from the last generation is fitted using
              quantile loss/pinball loss metric.
           - 'best_pipelines_quantiles' -> prediction intervals are computed based on predictions of all
              pipelines in last generation
           - 'mutation_of_best_pipeline' -> prediction intervals are built relying on mutations of the final
              pipeline
  
      params: params for building prediction intervals.
class_docstr_tok: ["Class","for","building","prediction","intervals","based","on","Fedot","functionality",".","Args",":","model",":","a","fitted","Fedot","class","object","for","times","series","forecasting","task","horizon",":","horizon","for","ts","forecasting","nominal_error",":","nominal","error","for","prediction","intervals","task","method",":","general","method","for","creating","forecasts",".","Possible","options",":","-","'last_generation_ql","'","-",">","a","number","of","pipelines","from","the","last","generation","is","fitted","using","quantile","loss\/pinball","loss","metric",".","-","'best_pipelines_quantiles","'","-",">","prediction","intervals","are","computed","based","on","predictions","of","all","pipelines","in","last","generation","-","'mutation_of_best_pipeline","'","-",">","prediction","intervals","are","built","relying","on","mutations","of","the","final","pipeline","params",":","params","for","building","prediction","intervals","."]
docstr: This method creates several np.arrays that will be used in method 'forecast' to build prediction intervals.
  
  Fitting process rans by self.solver initialized in method '__init__'. According to the solver several pipelines
  are generated and their forecasts are transfered then in method 'forecast'.
  
  Args:
      train_input: train data used for training the model.
docstr_tok: ["This","method","creates","several","np.arrays","that","will","be","used","in","method","'forecast","'","to","build","prediction","intervals",".","Fitting","process","rans","by","self.solver","initialized","in","method","'__init__","'",".","According","to","the","solver","several","pipelines","are","generated","and","their","forecasts","are","transfered","then","in","method","'forecast","'",".","Args",":","train_input",":","train","data","used","for","training","the","model","."]
code: def fit(self, train_input: InputData):
      """This method creates several np.arrays that will be used in method 'forecast' to build prediction intervals.
  
      Fitting process rans by self.solver initialized in method '__init__'. According to the solver several pipelines
      are generated and their forecasts are transfered then in method 'forecast'.
  
      Args:
          train_input: train data used for training the model.
      """
      x = self.solver(train_input)
  
      if self.method == "last_generation_ql":
          self.up_predictions = x["up_predictions"]
          self.low_predictions = x["low_predictions"]
      else:
          self.all_predictions = x
  
      self.is_fitted = True
  
file_path: FEDOT/fedot/core/pipelines/prediction_intervals/main.py
imports: from functools import partial
  from typing import Optional
  import numpy
  from golem.core.log import default_log, Log
  from fedot import Fedot
  from fedot.core.data.data import InputData
  from fedot.core.pipelines.prediction_intervals.params import PredictionIntervalsParams
  from fedot.core.pipelines.prediction_intervals.solvers.best_pipelines_quantiles import solver_best_pipelines_quantiles
  from fedot.core.pipelines.prediction_intervals.solvers.last_generation_quantile_loss import solver_last_generation_ql
  from fedot.core.pipelines.prediction_intervals.solvers.mutation_of_best_pipeline import solver_mutation_of_best_pipeline
  from fedot.core.pipelines.prediction_intervals.utils import compute_prediction_intervals, get_base_quantiles, check_init_params, get_last_generations
  from fedot.core.pipelines.prediction_intervals.visualization import plot_prediction_intervals, _plot_prediction_intervals
label_desc: Use image node_id 2 for calling the PredictionIntervals obj's underlying member method code with example usage: obj.fit(train_input) without return types