.. _f-numpyhelper: module ``onnx_tools.exports.numpy_helper`` ========================================== .. inheritance-diagram:: mlprodict.onnx_tools.exports.numpy_helper Short summary +++++++++++++ module ``mlprodict.onnx_tools.exports.numpy_helper`` Numpy helpers for the conversion from onnx to numpy. :githublink:`%|py|5` Classes +++++++ +--------------------------------------------------------------------------+-----------------------------------------------------+ | class | truncated documentation | +==========================================================================+=====================================================+ | :class:`NumpyCode ` | Converts an ONNX operators into :epkg:`numpy` code. | +--------------------------------------------------------------------------+-----------------------------------------------------+ Functions +++++++++ +---------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+ | function | truncated documentation | +===========================================================================================================================+========================================================================+ | :func:`argmax_use_numpy_select_last_index ` | Needed or operator `ArgMax`. | +---------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+ | :func:`argmin_use_numpy_select_last_index ` | Needed or operator `ArgMin`. | +---------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+ | :func:`array_feature_extrator ` | Implementation of operator *ArrayFeatureExtractor* with :epkg:`numpy`. | +---------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+ | :func:`make_numpy_code ` | Converts an ONNX operators into :epkg:`numpy` code. | +---------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+ | :func:`make_slice ` | Implements operator slice in numpy. | +---------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+ Static Methods ++++++++++++++ +------------------------------------------------------------------------------------------+-------------------------+ | staticmethod | truncated documentation | +==========================================================================================+=========================+ | :py:meth:`_make_tuple ` | | +------------------------------------------------------------------------------------------+-------------------------+ Methods +++++++ +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ | method | truncated documentation | +==================================================================================================================+============================================================+ | :py:meth:`__init__ ` | | +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ | :py:meth:`_getat ` | | +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ | :py:meth:`_make_numpy_code_onnx ` | | +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ | :py:meth:`_make_numpy_code_onnxml ` | | +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ | :py:meth:`_make_numpy_code_others ` | | +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ | :py:meth:`_make_sure_inputs ` | | +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ | :py:meth:`_make_sure_opsets ` | | +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ | :py:meth:`_simplify ` | | +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ | :meth:`make_numpy_code ` | Main method, returns the python code for a given operator. | +------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.onnx_tools.exports.numpy_helper :members: :special-members: __init__ :show-inheritance: