bigframes.ml.decomposition.PCA.detect_anomalies#

PCA.detect_anomalies(X: DataFrame | Series | DataFrame | Series, *, contamination: float = 0.1) DataFrame[source]#

Detect the anomaly data points of the input.

Parameters:
  • X (bigframes.dataframe.DataFrame or bigframes.series.Series) – Series or a DataFrame to detect anomalies.

  • contamination (float, default 0.1) – Identifies the proportion of anomalies in the training dataset that are used to create the model. The value must be in the range [0, 0.5].

Returns:

detected DataFrame.

Return type:

bigframes.dataframe.DataFrame