Package org.biojava.stats.svm
Class AbstractSVMClassifierModel
java.lang.Object
org.biojava.stats.svm.AbstractSVMClassifierModel
- All Implemented Interfaces:
SVMClassifierModel
- Direct Known Subclasses:
SimpleSVMClassifierModel
Abstract implementation of SVMClassifierModel.
To implement a read-only implementation, you need only implement getThreshold and getAlpha.
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddItemAlpha(Object item, double alpha) doublevoidclear()voidremoveItem(Object item) voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.biojava.stats.svm.SVMClassifierModel
getAlpha, getKernel, getThreshold, itemAlphas, items, setThreshold
-
Constructor Details
-
AbstractSVMClassifierModel
public AbstractSVMClassifierModel()
-
-
Method Details
-
setThreshold
- Throws:
UnsupportedOperationException
-
setAlpha
- Specified by:
setAlphain interfaceSVMClassifierModel- Throws:
UnsupportedOperationException
-
addItem
- Specified by:
addItemin interfaceSVMClassifierModel- Throws:
UnsupportedOperationException
-
addItemAlpha
- Specified by:
addItemAlphain interfaceSVMClassifierModel- Throws:
UnsupportedOperationException
-
removeItem
- Specified by:
removeItemin interfaceSVMClassifierModel- Throws:
UnsupportedOperationException
-
clear
- Specified by:
clearin interfaceSVMClassifierModel- Throws:
UnsupportedOperationException
-
classify
- Specified by:
classifyin interfaceSVMClassifierModel
-