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 TypeMethodDescriptionvoid
void
addItemAlpha
(Object item, double alpha) double
void
clear()
void
removeItem
(Object item) void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
setAlpha
in interfaceSVMClassifierModel
- Throws:
UnsupportedOperationException
-
addItem
- Specified by:
addItem
in interfaceSVMClassifierModel
- Throws:
UnsupportedOperationException
-
addItemAlpha
- Specified by:
addItemAlpha
in interfaceSVMClassifierModel
- Throws:
UnsupportedOperationException
-
removeItem
- Specified by:
removeItem
in interfaceSVMClassifierModel
- Throws:
UnsupportedOperationException
-
clear
- Specified by:
clear
in interfaceSVMClassifierModel
- Throws:
UnsupportedOperationException
-
classify
- Specified by:
classify
in interfaceSVMClassifierModel
-