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>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumValid SVM modes for anomaly detection. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an SVM anomaly type wrapping the SVM algorithm choice. -
Method Summary
Modifier and TypeMethodDescriptionintThe LibSVM int id for the algorithm.com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenancebooleanIs this an anomaly detection algorithm.booleanIs this a classification algorithm.booleanisNu()Is this a nu-SVM.booleanIs this 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
-
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:SVMTypeIs this a classification algorithm.- Specified by:
isClassificationin interfaceSVMType<Event>- Returns:
- True if it's a classification algorithm.
-
isRegression
public boolean isRegression()Description copied from interface:SVMTypeIs this a regression algorithm.- Specified by:
isRegressionin interfaceSVMType<Event>- Returns:
- True if it's a regression algorithm.
-
isAnomaly
-
isNu
-
getNativeType
public int getNativeType()Description copied from interface:SVMTypeThe LibSVM int id for the algorithm.- Specified by:
getNativeTypein interfaceSVMType<Event>- Returns:
- The int id.
-
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>
-