public class PerceptronClassifier extends Object implements IClassifier
| Modifier and Type | Field and Description |
|---|---|
protected PerceptronModel |
model |
| Constructor and Description |
|---|
PerceptronClassifier() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
onlineTrain(double[] x,
int labelIndex) |
Map<String,Double> |
predict(Tuple predict) |
void |
setParameter(Map<String,String> paraMap) |
IClassifier |
train(List<Tuple> trainingData) |
protected PerceptronModel model
public void onlineTrain(double[] x,
int labelIndex)
public IClassifier train(List<Tuple> trainingData)
train in interface IClassifierpublic Map<String,Double> predict(Tuple predict)
predict in interface IClassifierpublic void setParameter(Map<String,String> paraMap)
setParameter in interface IClassifierpublic static void main(String[] args) throws FileNotFoundException
FileNotFoundExceptionCopyright © 2015. All rights reserved.