Class SVMClassificationType

java.lang.Object
org.tribuo.classification.libsvm.SVMClassificationType
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, SVMType<Label>

public class SVMClassificationType extends Object implements SVMType<Label>
The carrier type for LibSVM classification modes.

Supports C_SVC and NU_SVC.

See Also:
  • Constructor Details

    • SVMClassificationType

      public SVMClassificationType(SVMClassificationType.SVMMode type)
      Constructs an SVMClassificationType using the supplied SVM algorithm.
      Parameters:
      type - The SVM algorithm.
  • Method Details

    • isClassification

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

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

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

      public boolean isNu()
      Description copied from interface: SVMType
      Is this a nu-SVM.
      Specified by:
      isNu in interface SVMType<Label>
      Returns:
      True if it's a nu-SVM.
    • getNativeType

      public int getNativeType()
      Description copied from interface: SVMType
      The LibSVM int id for the algorithm.
      Specified by:
      getNativeType in interface SVMType<Label>
      Returns:
      The int id.
    • 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>