Package org.biojava.stats.svm
Interface SVMClassifierModel
-
- All Known Implementing Classes:
AbstractSVMClassifierModel,SimpleSVMClassifierModel
public interface SVMClassifierModelAn 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 voidaddItem(java.lang.Object item)voidaddItemAlpha(java.lang.Object item, double alpha)doubleclassify(java.lang.Object item)voidclear()doublegetAlpha(java.lang.Object item)SVMKernelgetKernel()doublegetThreshold()java.util.SetitemAlphas()java.util.Setitems()voidremoveItem(java.lang.Object item)voidsetAlpha(java.lang.Object item, double alpha)voidsetThreshold(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)
-
-