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

Predicting a Model via REST API

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.

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