.. _f-onnxtransformer: module ``sklapi.onnx_transformer`` ================================== .. inheritance-diagram:: mlprodict.sklapi.onnx_transformer Short summary +++++++++++++ module ``mlprodict.sklapi.onnx_transformer`` Wraps runtime into a :epkg:`scikit-learn` transformer. :githublink:`%|py|6` Classes +++++++ +------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +==============================================================================+=======================================================================================================================+ | :class:`OnnxTransformer ` | Calls :epkg:`onnxruntime` or the runtime implemented in this package to transform input based on a ONNX graph. It ... | +------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +----------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | property | truncated documentation | +========================================================================================+==================================================================================================================+ | :py:meth:`_repr_html_ ` | HTML representation of estimator. This is redundant with the logic of `_repr_mimebundle_`. The latter should ... | +----------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | :meth:`opsets ` | Returns the opsets as dictionary ``{domain: opset}``. | +----------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ Static Methods ++++++++++++++ +-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------+ | staticmethod | truncated documentation | +===============================================================================================+======================================================================================================+ | :meth:`enumerate_create ` | Creates multiple *OnnxTransformer*, one for each requested intermediate node. onnx_bytes : bytes ... | +-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------+ Methods +++++++ +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | method | truncated documentation | +=========================================================================================================+========================================================================================================================+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__repr__ ` | usual | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_check_arrays ` | Ensures that double floats are converted into single floats if *enforce_float32* is True or raises an exception. ... | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :meth:`fit ` | Loads the :epkg:`ONNX` model. | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :meth:`fit_transform ` | Loads the *ONNX* model and runs the predictions. | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :meth:`onnx_converter ` | Returns a converter for this model. If not overloaded, it fetches the converter mapped to the first *scikit-learn* ... | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :meth:`onnx_parser ` | Returns a parser for this model. | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :meth:`onnx_shape_calculator ` | | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :meth:`transform ` | Runs the predictions. If *X* is a dataframe, the function assumes every columns is a separate input, otherwise, ... | +---------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.sklapi.onnx_transformer :members: :special-members: __init__ :show-inheritance: