Retrieve PredictionΒΆ

The retrieve_prediction session, is an implementation that retrieves a specified saved prediction, from the applications database, via the /retrieve-prediction endpoint:

Note: the content of each of the above examples, can be substituted for the data attribute, in a given POST request:

import requests

endpoint = 'https://192.168.99.101:9090/retrieve-prediction'
headers = {
    'Authorization': 'Bearer ' + token,
    'Content-Type': 'application/json'
}

requests.post(endpoint, headers=headers, data=json_string_here)

Note: more information, regarding how to obtain a valid token, can be further reviewed, in the /login documentation.

The following properties define the above data attribute:

  • id_result: corresponds to the id of the desired model.