evalml.automl.AutoMLSearch.add_to_rankings

AutoMLSearch.add_to_rankings(pipeline, X, y)[source]

Fits and evaluates a given pipeline then adds the results to the automl rankings with the requirement that automl search has been run. Please use the same data as previous runs of automl search. If pipeline already exists in rankings this method will return None.

Parameters
  • pipeline (PipelineBase) – pipeline to train and evaluate.

  • X (pd.DataFrame) – the input training data of shape [n_samples, n_features].

  • y (pd.Series) – the target training labels of length [n_samples].