Class LabelFactory

java.lang.Object
org.tribuo.classification.LabelFactory
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<OutputFactoryProvenance>, Serializable, OutputFactory<Label>

public final class LabelFactory extends Object implements OutputFactory<Label>
A factory for making Label related classes.

Parses the Label by calling toString on the input.

Label factories have no state, and are all equal to each other.

See Also:
  • Field Details

    • UNKNOWN_LABEL

      public static final Label UNKNOWN_LABEL
      The singleton unknown label, used for unlablled examples.
  • Constructor Details

    • LabelFactory

      public LabelFactory()
      Constructs a label factory.
  • Method Details