bigframes.ml.ensemble.RandomForestRegressor.predict#

RandomForestRegressor.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 (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). The data matrix for which we want to get the predictions.

Returns:

The predicted values.

Return type:

bigframes.dataframe.DataFrame