- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2023 09:48 PM
Hi
I tried to run Predictions on client side and was successfull following below article
But i observed its not populating prediction results table to view in reports
Any possible way to populate the table prediction results using client side predictions
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 06:57 AM
@Liyakhat
You should use the applyPrediction method to populate the Prediction Results table. Here is an example -
var mlSolution = sn_ml.MLSolutionFactory.getSolution("ml_incident_categorization");
var inputGR = new GlideRecord("incident");
inputGR.get("0ef47232db801300864adfea5e961912");
mlSolution.applyPrediction(inputGR);
Regards,
Brian

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 06:27 AM
You can also use the SolutionStats API to record the predicted values into the ml_predictor_results table.
/ This below line of code will set the predictions in ML Predictor table
sn_ml.SolutionStats.recordPredictValues(results, solution);