.. _f-scripttesting: module ``testing.script_testing`` ================================= .. inheritance-diagram:: mlprodict.testing.script_testing Short summary +++++++++++++ module ``mlprodict.testing.script_testing`` Utilies to test script from :epkg:`scikit-learn` documentation. :githublink:`%|py|5` Classes +++++++ +---------------------------------------------------------------------------------------+------------------------------------+ | class | truncated documentation | +=======================================================================================+====================================+ | :class:`MissingVariableError ` | Raised when a variable is missing. | +---------------------------------------------------------------------------------------+------------------------------------+ Functions +++++++++ +------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +====================================================================================+=====================================================================================================================+ | :func:`_clean_script ` | Comments out all lines containing ``.show()``. | +------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :func:`_enumerate_fit_info ` | Extracts the name of the fitted models and the data used to train it. | +------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :func:`_try_onnx ` | Tries onnx conversion. | +------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :func:`verify_script ` | Checks that models fitted in an example from :epkg:`scikit-learn` documentation can be converted into :epkg:`ONNX`. | +------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.testing.script_testing :members: :special-members: __init__ :show-inheritance: