bigframes.ml.decomposition.PCA.fit#

PCA.fit(X: DataFrame | Series | DataFrame | Series, y: DataFrame | Series | DataFrame | Series | None = None) _T#

Fit the model according to the given training data.

Parameters:
  • X (bigframes.dataframe.DataFrame or bigframes.series.Series or pandas.core.frame.DataFrame or pandas.core.series.Series) – Series or DataFrame of shape (n_samples, n_features). Training vector, where n_samples is the number of samples and n_features is the number of features.

  • y (default None) – Ignored.

Returns:

Fitted estimator.

Return type:

PCA