public class SimpleSVMClassifierModel extends AbstractSVMClassifierModel
Constructor and Description |
---|
SimpleSVMClassifierModel(SVMKernel kernel) |
SimpleSVMClassifierModel(SVMKernel kernel,
Collection items) |
SimpleSVMClassifierModel(SVMKernel kernel,
SVMTarget target) |
Modifier and Type | Method and 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) |
classify, setThreshold
public SimpleSVMClassifierModel(SVMKernel kernel)
public SimpleSVMClassifierModel(SVMKernel kernel, Collection items)
public SimpleSVMClassifierModel(SVMKernel kernel, SVMTarget target)
public void setThreshold(double threshold)
public double getThreshold()
public Set itemAlphas()
public void setAlpha(Object item, double alpha)
setAlpha
in interface SVMClassifierModel
setAlpha
in class AbstractSVMClassifierModel
public void addItem(Object item)
addItem
in interface SVMClassifierModel
addItem
in class AbstractSVMClassifierModel
public void addItemAlpha(Object item, double alpha)
addItemAlpha
in interface SVMClassifierModel
addItemAlpha
in class AbstractSVMClassifierModel
public void removeItem(Object item)
removeItem
in interface SVMClassifierModel
removeItem
in class AbstractSVMClassifierModel
public void clear()
clear
in interface SVMClassifierModel
clear
in class AbstractSVMClassifierModel
Copyright © 2014 BioJava. All rights reserved.