Package org.tribuo.regression.libsvm
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>
The carrier type for LibSVM regression modes.
Supports C_SVC and NU_SVC.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an SVMRegressionType using the specified SVM algorithm. -
Method Summary
Modifier and TypeMethodDescriptionint
The LibSVM int id for the algorithm.com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
boolean
Is this an anomaly detection algorithm.boolean
Is this a classification algorithm.boolean
isNu()
Is this a nu-SVM.boolean
Is this 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
-
SVMRegressionType
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 interfaceSVMType<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 interfaceSVMType<Regressor>
- Returns:
- True if it's a regression algorithm.
-
isAnomaly
public boolean isAnomaly()Description copied from interface:SVMType
Is this an anomaly detection algorithm. -
isNu
public boolean isNu()Description copied from interface:SVMType
Is this a nu-SVM. -
getNativeType
public int getNativeType()Description copied from interface:SVMType
The LibSVM int id for the algorithm.- Specified by:
getNativeType
in interfaceSVMType<Regressor>
- Returns:
- The int id.
-
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>
-