Newer Version Available

This content describes an older version of this product. View Latest

Prediction Response

Predictions for a given request.
JSON example
This example shows a sample response.
1{
2  "predictionModel": "Model1",
3  "predictionType": "Classification",
4  "predictionOutputObjects": [
5    {
6      "errors": [],
7      "isSuccess": true,
8      "predictionOutput": [
9        {
10          "customAttributes": {
11            "STATUS": "Electrical Malfunction",
12            "TIME": "120"
13          },
14          "customPredictionLabel": "60.0 % likelihood of Electrical Malfunction in next 120 days",
15          "predictionScore": 60,
16          "topPredictors": [
17            {
18              "contributionValue": 23.22,
19              "predictorFields": [
20                {
21                  "label": "Service Type",
22                  "name": "Service Type",
23                  "value": "23.22"
24                }
25              ]
26            }
27          ]
28        }
29      ],
30      "recordId": "recordId"
31    }
32  ],
33  "predictionPlatform": "Einstein_on_Data_Cloud",
34  "status": {
35    "code": 200,
36    "message": "Successful"
37  },
38  "usecaseName": "ancd"
39}
Property Name Type Description Filter Group and Version Available Version
predictionModel String API name of the prediction model. Small, 62.0 62.0
predictionOutput​Objects Prediction Output Object[] Prediction for a specified record. Small, 62.0 62.0
predictionPlatform String Machine learning platform that is used to make the prediction for a use case.. Small, 62.0 62.0
predictionType String Type of prediction. For example: Regression, Binary Classification. Small, 62.0 62.0
status Status[] Status of the request. Small, 62.0 62.0
usecaseName String API name of the usecase definition. Small, 62.0 62.0