.. _f-gtypes: module ``grammar.grammar_sklearn.grammar.gtypes`` ================================================= .. inheritance-diagram:: mlprodict.grammar.grammar_sklearn.grammar.gtypes Short summary +++++++++++++ module ``mlprodict.grammar.grammar_sklearn.grammar.gtypes`` Types definition. :githublink:`%|py|5` Classes +++++++ +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ | class | truncated documentation | +===============================================================================================+===========================================================================+ | :class:`MLNumType ` | Base class for numerical types. | +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ | :class:`MLNumTypeBool ` | A numpy.bool. | +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ | :class:`MLNumTypeFloat32 ` | A numpy.float32. | +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ | :class:`MLNumTypeFloat64 ` | A numpy.float64. | +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ | :class:`MLNumTypeInt32 ` | A numpy.int32. | +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ | :class:`MLNumTypeInt64 ` | A numpy.int64. | +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ | :class:`MLNumTypeSingle ` | int32 or float32 | +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ | :class:`MLTensor ` | Defines a tensor with a dimension and a single type for what it contains. | +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ | :class:`MLType ` | Base class for every type. | +-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+ Properties ++++++++++ +-----------------------------------------------------------------------------------------------------+-------------------------+ | property | truncated documentation | +=====================================================================================================+=========================+ | :meth:`CTypeSingle ` | Returns *ctype*. | +-----------------------------------------------------------------------------------------------------+-------------------------+ | :meth:`CTypeSingle ` | Returns *ctype*. | +-----------------------------------------------------------------------------------------------------+-------------------------+ | :meth:`CTypeSingle ` | Returns *ctype*. | +-----------------------------------------------------------------------------------------------------+-------------------------+ | :meth:`CTypeSingle ` | Returns *ctype*. | +-----------------------------------------------------------------------------------------------------+-------------------------+ | :meth:`CTypeSingle ` | Returns *ctype*. | +-----------------------------------------------------------------------------------------------------+-------------------------+ | :meth:`CTypeSingle ` | Returns *ctype*. | +-----------------------------------------------------------------------------------------------------+-------------------------+ | :meth:`CTypeSingle ` | Returns *ctype*. | +-----------------------------------------------------------------------------------------------------+-------------------------+ Methods +++++++ +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | method | truncated documentation | +======================================================================================================================+======================================================================+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_byref_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_byref_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_byref_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_byref_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_byref_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_byref_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_byref_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_copy_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_copy_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_copy_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_copy_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_copy_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_copy_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_copy_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_copy_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_common_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_common_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_common_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_common_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_common_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_common_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_export_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_c ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :py:meth:`_format_value_json ` | | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`cast ` | Converts *value* into this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`cast ` | Exports *value* into this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`cast ` | Exports *value* into this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`cast ` | Exports *value* into this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`cast ` | Exports *value* into this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`cast ` | Exports *value* into this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`cast ` | Exports *value* into this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`cast ` | Converts *value* into this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`cast ` | Converts *value* into this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`softcast ` | Exports *value* into this type, does it anyway without verification. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`softcast ` | Exports *value* into this type, does it anyway without verification. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`softcast ` | Exports *value* into this type, does it anyway without verification. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`softcast ` | Exports *value* into this type, does it anyway without verification. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`softcast ` | Exports *value* into this type, does it anyway without verification. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`softcast ` | Exports *value* into this type, does it anyway without verification. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`validate ` | Checks that the value is of this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`validate ` | Checks that the value is of this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`validate ` | Checks that the value is of this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`validate ` | Checks that the value is of this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`validate ` | Checks that the value is of this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`validate ` | Checks that the value is of this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`validate ` | Checks that the value is of this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`validate ` | Checks that the value is of this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ | :meth:`validate ` | Checks that the value is of this type. | +----------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.grammar.grammar_sklearn.grammar.gtypes :members: :special-members: __init__ :show-inheritance: