pyreal.RealApp.predict#
- RealApp.predict(x, model_id=None, as_dict=None, format=True)[source]#
Predict on x using the active model or model specified by model_id
- Parameters:
x (DataFrame of shape (n_instances, n_features) or Series of len n_features) – Data to predict on
model_id (int or string) – Model to use for prediction
as_dict (Boolean) – If False, return predictions as a single Series/List. Otherwise, return in {row_id: pred} format. Defaults to True if x is a DataFrame, False otherwise
format (Boolean) – If False, do not run the realapp’s format function on this output
- Returns:
- (model return type)
Model prediction on x