public abstract class AbstractSVMClassifierModel extends Object implements SVMClassifierModel
Abstract implementation of SVMClassifierModel.
To implement a read-only implementation, you need only implement getThreshold and getAlpha.
Constructor and Description |
---|
AbstractSVMClassifierModel() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(Object item) |
void |
addItemAlpha(Object item,
double alpha) |
double |
classify(Object item) |
void |
clear() |
void |
removeItem(Object item) |
void |
setAlpha(Object item,
double alpha) |
void |
setThreshold() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlpha, getKernel, getThreshold, itemAlphas, items, setThreshold
public AbstractSVMClassifierModel()
public void setThreshold() throws UnsupportedOperationException
UnsupportedOperationException
public void setAlpha(Object item, double alpha) throws UnsupportedOperationException
setAlpha
in interface SVMClassifierModel
UnsupportedOperationException
public void addItem(Object item) throws UnsupportedOperationException
addItem
in interface SVMClassifierModel
UnsupportedOperationException
public void addItemAlpha(Object item, double alpha) throws UnsupportedOperationException
addItemAlpha
in interface SVMClassifierModel
UnsupportedOperationException
public void removeItem(Object item) throws UnsupportedOperationException
removeItem
in interface SVMClassifierModel
UnsupportedOperationException
public void clear() throws UnsupportedOperationException
clear
in interface SVMClassifierModel
UnsupportedOperationException
public double classify(Object item)
classify
in interface SVMClassifierModel
Copyright © 2014 BioJava. All rights reserved.