Package org.tribuo.anomaly.libsvm
Class SVMAnomalyType
java.lang.Object
org.tribuo.anomaly.libsvm.SVMAnomalyType
- 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<Event>
The carrier type for LibSVM anomaly detection modes.
Supports ONE_CLASS. Yes it's a single value enum.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Valid SVM modes for anomaly detection. -
Constructor Summary
ConstructorDescriptionConstructs an SVM anomaly type wrapping the SVM algorithm choice. -
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
-
SVMAnomalyType
Constructs an SVM anomaly type wrapping the SVM algorithm choice.- Parameters:
type
- The svm algorithm type.
-
-
Method Details
-
isClassification
public boolean isClassification()Description copied from interface:SVMType
Is this a classification algorithm.- Specified by:
isClassification
in interfaceSVMType<Event>
- 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<Event>
- 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<Event>
- 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>
-