.. _f-apiextension: module ``grammar.grammar_sklearn.grammar.api_extension`` ======================================================== .. inheritance-diagram:: mlprodict.grammar.grammar_sklearn.grammar.api_extension Short summary +++++++++++++ module ``mlprodict.grammar.grammar_sklearn.grammar.api_extension`` Implements decorators to extend the API. :githublink:`%|py|5` Classes +++++++ +------------------------------------------------------------------------------------------+------------------------------------------------------+ | class | truncated documentation | +==========================================================================================+======================================================+ | :class:`AutoAction ` | Extends the API to automatically look for exporters. | +------------------------------------------------------------------------------------------+------------------------------------------------------+ | :class:`AutoType ` | Extends the API to automatically look for exporters. | +------------------------------------------------------------------------------------------+------------------------------------------------------+ Static Methods ++++++++++++++ +------------------------------------------------------------------------------------------+----------------------------------+ | staticmethod | truncated documentation | +==========================================================================================+==================================+ | :meth:`cache ` | Caches the result of a function. | +------------------------------------------------------------------------------------------+----------------------------------+ Methods +++++++ +-----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | method | truncated documentation | +===========================================================================================================+========================================================================================================================+ | :py:meth:`_reset_cache ` | A same node may appear at different places in the graph. It means the output is used twice. However, we don't want ... | +-----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :meth:`export ` | Exports into any format. The method is looking for one method call '_export_' and calls it if found. ... | +-----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :meth:`format_value ` | Exports into any format. The method is looking for one method call '_export_' and calls it if found. ... | +-----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.grammar.grammar_sklearn.grammar.api_extension :members: :special-members: __init__ :show-inheritance: