com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Predicting a Model via REST API v10

Overview

DescriptionPredicting a model
Resource Path

/api/v10/models/{id}/predict

HTTP MethodPOST
Request/Response Formatapplication/json
Parameter description
Parameter
Description
{id}The ID of the model that you need to predict.

If you are using a deep learning model to make predictions without H2O runtime, see Using Deep Learning Models without H2O Runtime.

Example

POST https://localhost:9443/api/v10/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/v10/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.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.