com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Retrieving All Models of an Analysis via REST API
Overview
Description | Retrieve all models of an analysis. |
Resource Path |
|
HTTP Method | GET |
Request/Response Format | application/json |
Parameter description
Parameter | Description |
---|---|
{analysisId} | ID of the analysis of which you need to retrieve all models. |
Sample cURL command
curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/analyses/1/models -k
Example
GET https://localhost:9443/api/analyses/{analysisId}/models
Sample output
[ { "modelSummary": { "features":["NumPregnancies","PG2","DBP","TSFT","SI2","BMI","DPF","Age"], "modelSummaryType":"ProbabilisticClassificationModelSummary", "multiclassConfusionMatrix": { "labels":["0","1"], "matrix":[[151.0,3.0],[83.0,5.0]], "size":2 }, "modelAccuracy":64.46, "testResultDataPointsSample": [ { "predictedVsActual":{"predicted":0.0,"actual":0.0}, "featureValues":[4.0,110.0,92.0,0.0,0.0,37.6,0.191,30.0] }, { "predictedVsActual":"predicted":0.0,"actual":1.0}, "featureValues":[5.0,166.0,72.0,19.0,175.0,25.8,0.587,51.0] }, ], "featureImportance": [ {"label":"NumPregnancies","value":0.3079771926749934}, {"label":"PG2","value":0.25397098775785676}, {"label":"DBP","value":-1.2876785783739098}, {"label":"TSFT","value":-0.2739829065457813}, {"label":"SI2","value":-0.14733474834124655}, {"label":"BMI","value":-0.5283771021449392}, {"label":"DPF","value":0.004146841050477915}, {"label":"Age","value":-0.23892099781435874} ], "auc":0.47476387249114554, "roc":"[[\".00\",\".00\"],[\".00\",\".01\"]],...]]", "algorithm":"LOGISTIC_REGRESSION"}, "analysisId":1, "versionSetId":1, "storageType":"file", "storageDirectory":"{ML_HOME}/models/diabetes-analysis-1.Model.2015-09-01_11-30-20", "createdTime":"2015-09-01 11:30:20.879", "tenantId":-1234, "name":"diabetes-analysis-1.Model.2015-09-01_11-30-20", "id":1, "error":null, "userName":"admin", "status":"Complete" } } ]
REST API response
HTTP status code | 200, 404 or 500 For descriptions of the HTTP status codes, see HTTP Status Codes. |