Class SVMRegressionType

java.lang.Object
org.tribuo.regression.libsvm.SVMRegressionType
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<Regressor>

public class SVMRegressionType extends Object implements SVMType<Regressor>
The carrier type for LibSVM regression modes.

Supports C_SVC and NU_SVC.

See Also:
  • Constructor Details

    • SVMRegressionType

      public SVMRegressionType(SVMRegressionType.SVMMode type)
      Constructs an SVMRegressionType using the specified 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<Regressor>
      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<Regressor>
      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<Regressor>
      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<Regressor>
      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<Regressor>
      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>