REST request

Json requests

lightmlrestapi.netrest.json_upload_model (name, pyfile, data = None)

Builds a REST request to upload a machine learned models to a REST API defined by MLStoragePost.

lightmlrestapi.netrest.json_predict_model (name, data, format = ‘json’)

Builds a REST request to compute the prediction of a machine learning model upload with json_upload_model. See also MLStoragePost.

Submit request

lightmlrestapi.netrest.submit_rest_request (request, login = None, pwd = None, url = ‘http://127.0.0.1:8081/’, timeout = 15, fLOG = None)

Submits a request to a REST API defined by MLStoragePost.