cardea.Cardea.fit_predict

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

Train a cardea pipeline then 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

ndarray