bigframes.ml.pipeline.Pipeline.fit#
- Pipeline.fit(X: DataFrame | Series, y: DataFrame | Series | None = None) Pipeline[source]#
Fit the model.
Fit all the transformers one after the other and transform the data. Finally, fit the transformed data using the final estimator.
- Parameters:
X (bigframes.dataframe.DataFrame or bigframes.series.Series) – A DataFrame or Series representing training data. Must match the input requirements of the first step of the pipeline.
y (bigframes.dataframe.DataFrame or bigframes.series.Series) – A DataFrame or Series representing training targets, if applicable.
- Returns:
Pipeline with fitted steps.
- Return type: