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 NameTypeDescriptionFilter Group and VersionAvailable Version
predictionModelStringAPI name of the prediction model.Small, 62.062.0
predictionOutput​ObjectsPrediction Output Object[]Prediction for a specified record.Small, 62.062.0
predictionPlatformStringMachine learning platform that is used to make the prediction for a use case..Small, 62.062.0
predictionTypeStringType of prediction. For example: Regression, Binary Classification.Small, 62.062.0
statusStatus[]Status of the request.Small, 62.062.0
usecaseNameStringAPI name of the usecase definition.Small, 62.062.0