cardea.modeling.Modeler.fit_predict

Modeler.fit_predict(X, y, tune=False, max_evals=10, scoring=None, verbose=False)[source]

Fit the pipeline and make predictions

Parameters
  • X (pandas.DataFrame or ndarray) – Inputs to the pipeline.

  • y (pandas.Series or ndarray) – Target values.

  • tune (bool) – Whether to optimize hyper-parameters of the pipelines.

  • max_evals (int) – Maximum number of hyper-parameter optimization iterations.

  • scoring (str) – The name of the scoring function used in the hyper-parameter optimization.

  • verbose (bool) – Whether to log information during processing.

Returns

Predictions to the input data.

Return type

pandas.Series or ndarray