.. _f-mlpostrest: module ``mlapp.mlpost_rest`` ============================ .. inheritance-diagram:: lightmlrestapi.mlapp.mlpost_rest Short summary +++++++++++++ module ``lightmlrestapi.mlapp.mlpost_rest`` Machine Learning Post request :githublink:`%|py|5` Classes +++++++ +-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +=====================================================================================+===========================================================================================================================+ | :class:`MachineLearningPost ` | Implements a simple :epkg:`REST API` which handles a post request, no authentification is required. The model ingests ... | +-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ 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:`_load ` | | +---------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------+ | :py:meth:`_predict_single ` | | +---------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------+ | :meth:`check_single ` | Checks the sequence load + predict returns something with the given observations. | +---------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------+ | :meth:`on_post ` | | +---------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: lightmlrestapi.mlapp.mlpost_rest :members: :special-members: __init__ :show-inheritance: