Class LinearRegressionType
java.lang.Object
org.tribuo.regression.liblinear.LinearRegressionType
- 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<Regressor>
The carrier type for liblinear linear regression modes.
Supports: L2R_L2LOSS_SVR, L2R_L2LOSS_SVR_DUAL, L2R_L1LOSS_SVR_DUAL.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of linear regression algorithm. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a LinearRegressionType with the specified LibLinear algorithm. -
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenancede.bwaldvogel.liblinear.SolverTypeReturns the liblinear enum type.booleanIs this class an anomaly detection algorithm?booleanIs this class a Classification algorithm?booleanIs this class a Regression algorithm?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
-
Constructor Details
-
LinearRegressionType
Constructs a LinearRegressionType with the specified LibLinear algorithm.- Parameters:
type- The liblinear algorithm.
-
-
Method Details
-
isClassification
public boolean isClassification()Description copied from interface:LibLinearTypeIs this class a Classification algorithm?- Specified by:
isClassificationin interfaceLibLinearType<Regressor>- Returns:
- True if it's a classification algorithm.
-
isRegression
public boolean isRegression()Description copied from interface:LibLinearTypeIs this class a Regression algorithm?- Specified by:
isRegressionin interfaceLibLinearType<Regressor>- Returns:
- True if it's a regression algorithm.
-
isAnomaly
public boolean isAnomaly()Description copied from interface:LibLinearTypeIs this class an anomaly detection algorithm?- Specified by:
isAnomalyin interfaceLibLinearType<Regressor>- Returns:
- True if it's an anomaly detection algorithm.
-
getSolverType
public de.bwaldvogel.liblinear.SolverType getSolverType()Description copied from interface:LibLinearTypeReturns the liblinear enum type.- Specified by:
getSolverTypein interfaceLibLinearType<Regressor>- Returns:
- The liblinear enum type.
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()- Specified by:
getProvenancein interfacecom.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
-