.. _f-mlstoragerest: module ``mlapp.mlstorage_rest`` =============================== .. inheritance-diagram:: lightmlrestapi.mlapp.mlstorage_rest Short summary +++++++++++++ module ``lightmlrestapi.mlapp.mlstorage_rest`` Machine Learning Post request :githublink:`%|py|5` Classes +++++++ +----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +============================================================================+==============================================================================================================================+ | :class:`MLStoragePost ` | Implements a simple :epkg:`REST API` to upload zip files. The application assumes machine learning models are actionable ... | +----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ Static Methods ++++++++++++++ +---------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ | staticmethod | truncated documentation | +=================================================================================+============================================================================================+ | :meth:`data2json ` | :epkg:`numpy:array` cannot be converted into :epkg:`json`. We change the type into a list. | +---------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+ Methods +++++++ +----------------------------------------------------------------------------------+-----------------------------------+ | method | truncated documentation | +==================================================================================+===================================+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------+-----------------------------------+ | :py:meth:`_predict ` | Stores the model in the storage. | +----------------------------------------------------------------------------------+-----------------------------------+ | :py:meth:`_store ` | Stores the model in the storage. | +----------------------------------------------------------------------------------+-----------------------------------+ | :meth:`on_post ` | Processes a :epkg:`POST` request. | +----------------------------------------------------------------------------------+-----------------------------------+ Documentation +++++++++++++ .. automodule:: lightmlrestapi.mlapp.mlstorage_rest :members: :special-members: __init__ :show-inheritance: