Package org.biojava.stats.svm
Interface SVMClassifierModel
-
- All Known Implementing Classes:
AbstractSVMClassifierModel
,SimpleSVMClassifierModel
public interface SVMClassifierModel
An SVM classifier model.This is the interface for objects that contain the model for a binary classification task.
- Author:
- Matthew Pocock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addItem(java.lang.Object item)
void
addItemAlpha(java.lang.Object item, double alpha)
double
classify(java.lang.Object item)
void
clear()
double
getAlpha(java.lang.Object item)
SVMKernel
getKernel()
double
getThreshold()
java.util.Set
itemAlphas()
java.util.Set
items()
void
removeItem(java.lang.Object item)
void
setAlpha(java.lang.Object item, double alpha)
void
setThreshold(double threshold)
-
-
-
Method Detail
-
getKernel
SVMKernel getKernel()
-
setThreshold
void setThreshold(double threshold) throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
-
getThreshold
double getThreshold()
-
items
java.util.Set items()
-
itemAlphas
java.util.Set itemAlphas()
-
getAlpha
double getAlpha(java.lang.Object item)
-
setAlpha
void setAlpha(java.lang.Object item, double alpha) throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
-
addItem
void addItem(java.lang.Object item) throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
-
addItemAlpha
void addItemAlpha(java.lang.Object item, double alpha) throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
-
removeItem
void removeItem(java.lang.Object item) throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
-
clear
void clear() throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
-
classify
double classify(java.lang.Object item)
-
-