.. _f-dummyapplications: module ``testing.dummy_applications`` ===================================== Short summary +++++++++++++ module ``lightmlrestapi.testing.dummy_applications`` Machine Learning Post request :githublink:`%|py|5` Functions +++++++++ +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +=========================================================================================================================+===================================================================================================================================================================================================+ | :func:`_distance_img ` | Computes the distance between two images. The function uses :epkg:`Pillow`. | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_distance_img_b64 ` | Calls :func:`_distance_img` on an image encoded with :epkg:`*pyf:base64`. | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`dummy_application ` | Defines a dummy application using this API. It returns a score produced by a model trained on `Iris datasets `_ ... | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`dummy_application_auth ` | Defines a dummy application using this API including authentification. It returns a score produced by a model trained ... | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`dummy_application_fct ` | Defines an application as defined in the tutorial :ref:`l-dummy-function-application`. | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`dummy_application_image ` | Defines a dummy application using this API and processing one image. The API ingests an image, resizes it to 224x224 ... | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`dummy_application_neighbors ` | Defines a dummy application using this API. It returns a list of neighbors with a score on `Iris datasets `_. ... | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`dummy_application_neighbors_image ` | Defines a dummy application using this API. It returns a list of one neighbor for an image and metadata (random). ... | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`dummy_mlstorage ` | Defines a dummy application using this API. It stores a model and it returns a score produced by a model trained ... | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: lightmlrestapi.testing.dummy_applications :members: :special-members: __init__ :show-inheritance: