Skip to content

Exposing Trained Model via the API

dbraga edited this page Dec 16, 2014 · 6 revisions

Once the model is trained, it can be exposed to external consumers via the API.

At any point in time, there is exactly one valid version of the model.
This version can be obtained using the following action:

http://thoth-predictor:port?action=getCurrentModelVersion 

The model can be downloaded by specifying the version number obtained

 http://thoth-predictor:port/models/{model_version} 

Another important parameter exposed via the API is the prediction threshold for the model. It can be accessed using the current model version number

http://thoth-predictor:port/threshold/{model_version}

The threshold is needed while predicting the query time using the model


Step 1 : Sampling and Creation of the Dataset

Step 2 : Model Training

Step 3 : Exposing Trained Model via the API

Step 4 : Monitoring the Health of the Model

Step 5 : Predicting with the Model