bigframes.ml.ensemble.RandomForestClassifier.predict#

RandomForestClassifier.predict(X: DataFrame | Series | DataFrame | Series) DataFrame[source]#

Predict regression target for X.

The predicted regression target of an input sample is computed as the mean predicted regression targets of the trees in the forest.

Parameters:

X – Series or DataFrame of shape (n_samples, n_features). The data matrix for which we want to get the predictions.

Returns:

The predicted values.

Return type:

bigframes.dataframe.DataFrame