PredictResource.getPredict(request, sub_analysis_id, prediction_id, **kwargs)

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

This function returns the evaluation data set along with an additional column for predicted values.


sub_analysis_id Give sub analysis id
prediction_id Give prediction id

Possible errors

Error message
Invalid sub analysis id
Invalid prediction id
Please wait for a while. Evaluation dataset prediction is still running
Please wait for a while. Predict is still running
Please run ilearn first

GET Request Example

curl -u username:password {url_prefix}/prediction/{sub_analysis_id}/{prediction_id}/

Response Example

    "error": false,
    "error_msg": "",
    "result": {
        "prediction_id": 463,
        "prediction_accuracy": 91.66,
                "TargetdataCleaned": "no",
                "age": 36.0,
                "balance": 2843.0,
                "campaign": 1.0,
                "contact": "cellular",
                "day": 12.0,
                "default": "no",
                "duration": 473.0,
                "education": "secondary",
                "housing": "no",
                "isCleaned": "Yes",
                "job": "blue_collar",
                "loan": "no",
                "marital": "divorced",
                "month": "feb",
                "pdays": 182.0,
                "poutcome": "success",
                "predictedClass": "yes",
                "previous": 1.0,
                "y": "no"