Package org.tribuo.regression.liblinear
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 enum
The 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.ConfiguredObjectProvenance
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:LibLinearType
Is this class a Classification algorithm?- Specified by:
isClassification
in interfaceLibLinearType<Regressor>
- 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 interfaceLibLinearType<Regressor>
- 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 interfaceLibLinearType<Regressor>
- 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 interfaceLibLinearType<Regressor>
- Returns:
- The liblinear enum type.
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()- Specified by:
getProvenance
in interfacecom.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
-