module grammar_sklearn.grammar.gtypes

Inheritance diagram of mlprodict.grammar_sklearn.grammar.gtypes

Short summary

module mlprodict.grammar_sklearn.grammar.gtypes

Types definition.

source on GitHub

Classes

class

truncated documentation

MLNumType

Base class for numerical types.

MLNumTypeBool

A numpy.bool.

MLNumTypeFloat32

A numpy.float32.

MLNumTypeFloat64

A numpy.float64.

MLNumTypeInt32

A numpy.int32.

MLNumTypeInt64

A numpy.int64.

MLNumTypeSingle

int32 or float32

MLTensor

Defines a tensor with a dimension and a single type for what it contains.

MLType

Base class for every type.

Properties

property

truncated documentation

CTypeSingle

Returns ctype.

CTypeSingle

Returns ctype.

CTypeSingle

Returns ctype.

CTypeSingle

Returns ctype.

CTypeSingle

Returns ctype.

CTypeSingle

Returns ctype.

CTypeSingle

Returns ctype.

Methods

method

truncated documentation

__init__

__init__

__init__

__init__

__init__

__init__

__init__

_byref_c

_byref_c

_byref_c

_byref_c

_byref_c

_byref_c

_byref_c

_copy_c

_copy_c

_copy_c

_copy_c

_copy_c

_copy_c

_copy_c

_copy_c

_export_c

_export_c

_export_c

_export_c

_export_c

_export_c

_export_c

_export_common_c

_export_common_c

_export_common_c

_export_common_c

_export_common_c

_export_common_c

_export_json

_export_json

_export_json

_export_json

_export_json

_export_json

_export_json

_format_value_c

_format_value_c

_format_value_c

_format_value_c

_format_value_c

_format_value_c

_format_value_c

_format_value_c

_format_value_json

_format_value_json

_format_value_json

_format_value_json

_format_value_json

_format_value_json

_format_value_json

_format_value_json

cast

Converts value into this type.

cast

Exports value into this type.

cast

Exports value into this type.

cast

Exports value into this type.

cast

Exports value into this type.

cast

Exports value into this type.

cast

Exports value into this type.

cast

Converts value into this type.

cast

Converts value into this type.

softcast

Exports value into this type, does it anyway without verification.

softcast

Exports value into this type, does it anyway without verification.

softcast

Exports value into this type, does it anyway without verification.

softcast

Exports value into this type, does it anyway without verification.

softcast

Exports value into this type, does it anyway without verification.

softcast

Exports value into this type, does it anyway without verification.

validate

Checks that the value is of this type.

validate

Checks that the value is of this type.

validate

Checks that the value is of this type.

validate

Checks that the value is of this type.

validate

Checks that the value is of this type.

validate

Checks that the value is of this type.

validate

Checks that the value is of this type.

validate

Checks that the value is of this type.

validate

Checks that the value is of this type.

Documentation

Types definition.

source on GitHub

class mlprodict.grammar_sklearn.grammar.gtypes.MLNumType

Bases: mlprodict.grammar_sklearn.grammar.gtypes.MLType

Base class for numerical types.

source on GitHub

_copy_c(src, dst, hook=None)
_format_value_c(value, hook=None)
_format_value_json(value, hook=None)
class mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeBool

Bases: mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeSingle

A numpy.bool.

source on GitHub

__init__()
class mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeFloat32

Bases: mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeSingle

A numpy.float32.

source on GitHub

__init__()
class mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeFloat64

Bases: mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeSingle

A numpy.float64.

source on GitHub

__init__()
class mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeInt32

Bases: mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeSingle

A numpy.int32.

source on GitHub

__init__()
class mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeInt64

Bases: mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeSingle

A numpy.int64.

source on GitHub

__init__()
class mlprodict.grammar_sklearn.grammar.gtypes.MLNumTypeSingle(numpy_type, name, ctype, key)

Bases: mlprodict.grammar_sklearn.grammar.gtypes.MLNumType

int32 or float32

source on GitHub

property CTypeSingle

Returns ctype.

source on GitHub

__init__(numpy_type, name, ctype, key)
_byref_c()
_export_c(hook=None, result_name=None)
_export_common_c(ctype, hook=None, result_name=None)
_export_json(hook=None, result_name=None)
_format_value_c(value, hook=None)
_format_value_json(value, hook=None)
cast(value)

Exports value into this type.

source on GitHub

softcast(value)

Exports value into this type, does it anyway without verification.

source on GitHub

validate(value)

Checks that the value is of this type.

source on GitHub

class mlprodict.grammar_sklearn.grammar.gtypes.MLTensor(element_type, dim)

Bases: mlprodict.grammar_sklearn.grammar.gtypes.MLType

Defines a tensor with a dimension and a single type for what it contains.

source on GitHub

property CTypeSingle

Returns ctype.

source on GitHub

__init__(element_type, dim)
_byref_c()
_copy_c(src, dest, hook=None)
_export_c(hook=None, result_name=None)
_export_json(hook=None, result_name=None)
_format_value_c(value, hook=None)
_format_value_json(value, hook=None)
validate(value)

Checks that the value is of this type.

source on GitHub

class mlprodict.grammar_sklearn.grammar.gtypes.MLType

Bases: mlprodict.grammar_sklearn.grammar.api_extension.AutoType

Base class for every type.

source on GitHub

cast(value)

Converts value into this type.

source on GitHub

validate(value)

Checks that the value is of this type.

source on GitHub