module mlapp.mlstorage_rest
¶
Short summary¶
module lightmlrestapi.mlapp.mlstorage_rest
Machine Learning Post request
Classes¶
class |
truncated documentation |
---|---|
Implements a simple REST API to upload zip files. The application assumes machine learning models are actionable … |
Static Methods¶
staticmethod |
truncated documentation |
---|---|
numpy.array cannot be converted into json. We change the type into a list. |
Methods¶
method |
truncated documentation |
---|---|
Stores the model in the storage. |
|
Stores the model in the storage. |
|
Processes a POST request. |
Documentation¶
Machine Learning Post request
- class lightmlrestapi.mlapp.mlstorage_rest.MLStoragePost(secret=None, folder='.', folder_storage='.', version=None)¶
Bases:
BaseLogging
Implements a simple REST API to upload zip files. The application assumes machine learning models are actionable through the following template: Templates.
- Parameters:
secret – see
BaseLogging
folder – see
BaseLogging
folder_storage – see
MLStorage
version – API REST version
- __init__(secret=None, folder='.', folder_storage='.', version=None)¶
- Parameters:
secret – see
BaseLogging
folder – see
BaseLogging
folder_storage – see
MLStorage
version – API REST version
- _predict(args)¶
Stores the model in the storage.
- _store(args)¶
Stores the model in the storage.
- static data2json(data)¶
numpy.array cannot be converted into json. We change the type into a list.