Class LabelTransformer

java.lang.Object
org.tribuo.interop.onnx.LabelTransformer
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable, OutputTransformer<Label>

public class LabelTransformer extends Object implements OutputTransformer<Label>
Can convert an OnnxValue into a Prediction or a Label.

Accepts both a tuple (tensor,sequence(map(long,float))) and a single tensor. The former is usually produced by scikit-learn or similar, the latter is produced by pytorch.

See Also: