Overview
Description | Predicting a model |
Resource Path |
|
HTTP Method | POST |
Request/Response Format | application/json |
Parameter description
Parameter | Description |
---|---|
{id} | ID of the model which you need to predict. |
Example
POST /api/models/{id}/predict [ 6,148,72,35,0,33.6,0.627,50 ]
Sample output
[0.9176214029664149]
Sample cURL command
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/models/1/predict -k -v -d @'prediction-test.json'
REST API response
HTTP status code | 200 For descriptions of the HTTP status codes, see HTTP Status Codes. |
Overview
Content Tools
Activity