getAllPredictions

PredictResource.getAllPredictions(request, sub_analysis_id, **kwargs)

Prior mandatory steps 1) Upload dataset 2) Create analysis 3) Create sub analysis 4) DataSharp 5)iLearn 6)runPredict

Get all predictions.

Arguments

sub_analysis_id Give sub analysis id

Possible errors

Error message
Invalid sub analysis id
Please run ilearn first

GET Request Example

curl -u username:password {url_prefix}/predictions/{sub_analysis_id}/

Response Example

{
    "error": false,
    "error_msg": "",
    "result": {
        "sub_analysis_id": 1202,
        "predictions_data":[
            {
            "prediction_id": 463,
            "model_name": "PY.Decision Tree",
            "prediction_accuracy": 91.66,
            },
            {
            prediction_id: 464
            model_name: "R.Ensemble Model"
            prediction_accuracy: 92.57
            }
            ....
        ]
    }
}