module onnxrt.ops_cpu._op_classifier_string
#
Short summary#
module mlprodict.onnxrt.ops_cpu._op_classifier_string
Common class for classifiers supporting strings.
Classes#
class |
truncated documentation |
---|---|
Labels strings are not natively implemented in C++ runtime. The class stores the strings labels, replaces them by … |
Methods#
method |
truncated documentation |
---|---|
Replaces string labels by int64 labels. It creates attributes _classlabels_int64s_string. |
|
Replaces int64 predicted labels by the corresponding strings. |
Documentation#
Common class for classifiers supporting strings.
- 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.
- _post_process_label_attributes()#
Replaces string labels by int64 labels. It creates attributes _classlabels_int64s_string.
- _post_process_predicted_label(label, scores)#
Replaces int64 predicted labels by the corresponding strings.