module onnxrt.ops_cpu.op_zipmap
#
Short summary#
module mlprodict.onnxrt.ops_cpu.op_zipmap
Runtime operator.
Classes#
class |
truncated documentation |
---|---|
Mocks an array without changing the data it receives. Notebooks Time processing for every ONNX nodes in a graph illustrates the weaknesses … |
|
The class does not output a dictionary as specified in ONNX specifications but a |
|
Custom dictionary class much faster for this runtime, it implements a subset of the same methods. |
Properties#
property |
truncated documentation |
---|---|
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of modified parameters. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns all parameters in a dictionary. |
Equivalent to |
|
|
|
|
|
Equivalent to |
Static Methods#
staticmethod |
truncated documentation |
---|---|
|
Methods#
method |
truncated documentation |
---|---|
Returns the item mapped to keys. |
|
For pickle. |
|
Returns the number of items. |
|
unused but used by pickle |
|
For pickle. |
|
|
|
Documentation#
Runtime operator.
- class mlprodict.onnxrt.ops_cpu.op_zipmap.ArrayZipMapDictionary(rev_keys, mat)#
Bases:
list
Mocks an array without changing the data it receives. Notebooks Time processing for every ONNX nodes in a graph illustrates the weaknesses and the strengths of this class compare to a list of dictionaries.
- Parameters:
rev_keys – dictionary {keys: column index}
mat – matrix if values is a row index, one or two dimensions
- __getitem__(i)#
x.__getitem__(y) <==> x[y]
- __init__(rev_keys, mat)#
- Parameters:
rev_keys – dictionary {keys: column index}
mat – matrix if values is a row index, one or two dimensions
- __iter__()#
Implement iter(self).
- __len__()#
Return len(self).
- __setitem__(pos, value)#
Set self[key] to value.
- __str__()#
Return str(self).
- property columns#
Equivalent to
DataFrame(self).columns
.
- property values#
Equivalent to
DataFrame(self).values
.
- class mlprodict.onnxrt.ops_cpu.op_zipmap.ZipMap(onnx_node, desc=None, **options)#
Bases:
OpRun
The class does not output a dictionary as specified in ONNX specifications but a
ArrayZipMapDictionary
which is wrapper on the input so that it does not get copied.- __init__(onnx_node, desc=None, **options)#
- _run(x, attributes=None, verbose=0, fLOG=None)#
Should be overwritten.
- class mlprodict.onnxrt.ops_cpu.op_zipmap.ZipMapDictionary(rev_keys, values, mat=None)#
Bases:
dict
Custom dictionary class much faster for this runtime, it implements a subset of the same methods.
- Parameters:
rev_keys – returns by
build_rev_keys
, {keys: column index}values – values
mat – matrix if values is a row index, one or two dimensions
- __contains__(key)#
True if the dictionary has the specified key, else False.
- __getitem__(key)#
Returns the item mapped to keys.
- __getstate__()#
For pickle.
- __init__(rev_keys, values, mat=None)#
- Parameters:
rev_keys – returns by
build_rev_keys
, {keys: column index}values – values
mat – matrix if values is a row index, one or two dimensions
- __iter__()#
Implement iter(self).
- __len__()#
Returns the number of items.
- __setitem__(pos, value)#
unused but used by pickle
- __setstate__(state)#
For pickle.
- __slots__ = ['_rev_keys', '_values', '_mat']#
- __str__()#
Return str(self).
- _mat#
- _rev_keys#
- _values#
- items() a set-like object providing a view on D's items #
- keys() a set-like object providing a view on D's keys #
- values() an object providing a view on D's values #