Class LinearClassificationType

java.lang.Object
org.tribuo.classification.liblinear.LinearClassificationType
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, LibLinearType<Label>

public final class LinearClassificationType extends Object implements LibLinearType<Label>
The carrier type for liblinear classification modes.

Supports: L1R_L2LOSS_SVC, L2R_L2LOSS_SVC, L2R_L2LOSS_SVC_DUAL, L2R_L1LOSS_SVC_DUAL, MCSVM_CS, L1R_LR, L2R_LR, L2R_LR_DUAL.

See Also:
  • Constructor Details

    • LinearClassificationType

      public LinearClassificationType(LinearClassificationType.LinearType type)
      Constructs a LinearClassificationType using the supplied algorithm.
      Parameters:
      type - The liblinear algorithm.
  • Method Details

    • isClassification

      public boolean isClassification()
      Description copied from interface: LibLinearType
      Is this class a Classification algorithm?
      Specified by:
      isClassification in interface LibLinearType<Label>
      Returns:
      True if it's a classification algorithm.
    • isRegression

      public boolean isRegression()
      Description copied from interface: LibLinearType
      Is this class a Regression algorithm?
      Specified by:
      isRegression in interface LibLinearType<Label>
      Returns:
      True if it's a regression algorithm.
    • isAnomaly

      public boolean isAnomaly()
      Description copied from interface: LibLinearType
      Is this class an anomaly detection algorithm?
      Specified by:
      isAnomaly in interface LibLinearType<Label>
      Returns:
      True if it's an anomaly detection algorithm.
    • getSolverType

      public de.bwaldvogel.liblinear.SolverType getSolverType()
      Description copied from interface: LibLinearType
      Returns the liblinear enum type.
      Specified by:
      getSolverType in interface LibLinearType<Label>
      Returns:
      The liblinear enum type.
    • getProvenance

      public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
      Specified by:
      getProvenance in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>