org.biojava.stats.svm
Interface SVMClassifierModel
- All Known Implementing Classes:
- AbstractSVMClassifierModel
- 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
getKernel
public SVMKernel getKernel()
setThreshold
public void setThreshold(double threshold)
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
getThreshold
public double getThreshold()
items
public Set items()
itemAlphas
public Set itemAlphas()
getAlpha
public double getAlpha(Object item)
setAlpha
public void setAlpha(Object item,
double alpha)
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
addItem
public void addItem(Object item)
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
addItemAlpha
public void addItemAlpha(Object item,
double alpha)
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
removeItem
public void removeItem(Object item)
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
clear
public void clear()
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
classify
public double classify(Object item)