module onnxrt.ops_cpu._op_classifier_string#

Short summary#

module mlprodict.onnxrt.ops_cpu._op_classifier_string

Common class for classifiers supporting strings.

source on GitHub

Classes#

class

truncated documentation

_ClassifierCommon

Labels strings are not natively implemented in C++ runtime. The class stores the strings labels, replaces them by …

Methods#

method

truncated documentation

_post_process_label_attributes

Replaces string labels by int64 labels. It creates attributes _classlabels_int64s_string.

_post_process_predicted_label

Replaces int64 predicted labels by the corresponding strings.

Documentation#

Common class for classifiers supporting strings.

source on GitHub

class mlprodict.onnxrt.ops_cpu._op_classifier_string._ClassifierCommon#

Bases: object

Labels strings are not natively implemented in C++ runtime. The class stores the strings labels, replaces them by integer, calls the C++ codes and then replaces them by strings.

source on GitHub

_post_process_label_attributes()#

Replaces string labels by int64 labels. It creates attributes _classlabels_int64s_string.

source on GitHub

_post_process_predicted_label(label, scores)#

Replaces int64 predicted labels by the corresponding strings.

source on GitHub