Interface LibLinearType<T extends Output<T>>

All Superinterfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
All Known Implementing Classes:
LinearAnomalyType, LinearClassificationType, LinearRegressionType

public interface LibLinearType<T extends Output<T>> extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
A carrier type for the liblinear algorithm type. It really wants to be a set of enums with different type parameters, but it's encoded as an interface where each subclass for an Output implementation contains an enum with it's valid values.

LibLinear supported enum values for various tasks are:

  • L2R_LR - L2-regularized logistic regression (primal)
  • L2R_L2LOSS_SVC_DUAL - L2-regularized L2-loss support vector classification (dual)
  • L2R_L2LOSS_SVC - L2-regularized L2-loss support vector classification (primal)
  • L2R_L1LOSS_SVC_DUAL - L2-regularized L1-loss support vector classification (dual)
  • MCSVM_CS - multi-class support vector classification by Crammer and Singer
  • L1R_L2LOSS_SVC - L1-regularized L2-loss support vector classification
  • L1R_LR - L1-regularized logistic regression
  • L2R_LR_DUAL - L2-regularized logistic regression (dual)
  • L2R_L2LOSS_SVR - L2-regularized L2-loss support vector regression (primal)
  • L2R_L2LOSS_SVR_DUAL - L2-regularized L2-loss support vector regression (dual)
  • L2R_L1LOSS_SVR_DUAL - L2-regularized L1-loss support vector regression (dual)
  • Method Summary

    Modifier and Type
    Method
    Description
    de.bwaldvogel.liblinear.SolverType
    Returns the liblinear enum type.
    boolean
    Is this class an anomaly detection algorithm?
    boolean
    Is this class a Classification algorithm?
    boolean
    Is this class a Regression algorithm?

    Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable

    postConfig

    Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.Provenancable

    getProvenance
  • Method Details

    • isClassification

      boolean isClassification()
      Is this class a Classification algorithm?
      Returns:
      True if it's a classification algorithm.
    • isRegression

      boolean isRegression()
      Is this class a Regression algorithm?
      Returns:
      True if it's a regression algorithm.
    • isAnomaly

      boolean isAnomaly()
      Is this class an anomaly detection algorithm?
      Returns:
      True if it's an anomaly detection algorithm.
    • getSolverType

      de.bwaldvogel.liblinear.SolverType getSolverType()
      Returns the liblinear enum type.
      Returns:
      The liblinear enum type.