Making Predictions using ML Models
The find()
Method
Description
The find()
method is used to get predictions from the model table. The data is
not persistent - it is returned on the fly as a result-document.
Syntax
Here is the syntax:
On execution, we get:
Where:
Expressions | Description |
---|---|
"target_name_original" | The real value of the target variable from the collection. |
"target_name_confidence" | Model confidence. |
"target_name_explain" | JSON object that contains additional information, such as predicted_value , confidence , anomaly , truth , confidence_lower_bound , confidence_upper_bound . |
"target_name_anomaly" | Model anomaly. |
"target_name_min" | Lower bound value. |
"target_name_max" | Upper bound value. |
Example
Making a Single Prediction
The following MQL statement fetches the predicted value of the rental_price
column from the home_rentals_model
model. The predicted value is the rental
price of a property with attributes listed as a parameter to the find()
method.
On execution, we get:
Making Bulk Predictions
Bulk Predictions WIP
The bulk predictions is a work in progress.
Was this page helpful?