This documentation is for Machine Learner 1.0.0. View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Overview

DescriptionPredicting a model
Resource Path

/api/models/{id}/predict

HTTP MethodPOST
Request/Response Formatapplication/json

Parameter description

Parameter
Description
{id}ID of the model which you need to predict.

Example

POST https://localhost:9443/api/models/{id}/predict
[
6,148,72,35,0,33.6,0.627,50
]

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'

Sample output

[0.9176214029664149]

REST API response

HTTP status code

200

For descriptions of the HTTP status codes, see HTTP Status Codes.

  • No labels