Package org.biojava.stats.svm
Class SimpleSVMClassifierModel
- java.lang.Object
-
- org.biojava.stats.svm.AbstractSVMClassifierModel
-
- org.biojava.stats.svm.SimpleSVMClassifierModel
-
- All Implemented Interfaces:
SVMClassifierModel
public class SimpleSVMClassifierModel extends AbstractSVMClassifierModel
A no-frills implementation of an SVM classifier model.- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description SimpleSVMClassifierModel(SVMKernel kernel)
SimpleSVMClassifierModel(SVMKernel kernel, Collection items)
SimpleSVMClassifierModel(SVMKernel kernel, SVMTarget target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(Object item)
void
addItemAlpha(Object item, double alpha)
void
clear()
double
getAlpha(Object item)
SVMKernel
getKernel()
double
getThreshold()
Set
itemAlphas()
Set
items()
void
removeItem(Object item)
void
setAlpha(Object item, double alpha)
void
setThreshold(double threshold)
-
Methods inherited from class org.biojava.stats.svm.AbstractSVMClassifierModel
classify, setThreshold
-
-
-
-
Constructor Detail
-
SimpleSVMClassifierModel
public SimpleSVMClassifierModel(SVMKernel kernel)
-
SimpleSVMClassifierModel
public SimpleSVMClassifierModel(SVMKernel kernel, Collection items)
-
SimpleSVMClassifierModel
public SimpleSVMClassifierModel(SVMKernel kernel, SVMTarget target)
-
-
Method Detail
-
setThreshold
public void setThreshold(double threshold)
-
getThreshold
public double getThreshold()
-
itemAlphas
public Set itemAlphas()
-
setAlpha
public void setAlpha(Object item, double alpha)
- Specified by:
setAlpha
in interfaceSVMClassifierModel
- Overrides:
setAlpha
in classAbstractSVMClassifierModel
-
addItem
public void addItem(Object item)
- Specified by:
addItem
in interfaceSVMClassifierModel
- Overrides:
addItem
in classAbstractSVMClassifierModel
-
addItemAlpha
public void addItemAlpha(Object item, double alpha)
- Specified by:
addItemAlpha
in interfaceSVMClassifierModel
- Overrides:
addItemAlpha
in classAbstractSVMClassifierModel
-
removeItem
public void removeItem(Object item)
- Specified by:
removeItem
in interfaceSVMClassifierModel
- Overrides:
removeItem
in classAbstractSVMClassifierModel
-
clear
public void clear()
- Specified by:
clear
in interfaceSVMClassifierModel
- Overrides:
clear
in classAbstractSVMClassifierModel
-
-