public class BWinnowClassifier extends Object implements Classifier<Boolean>
http://www.cs.cmu.edu/~vitor/papers/kdd06_final.pdf,
Serialized Form| Constructor and Description |
|---|
BWinnowClassifier() |
BWinnowClassifier(double promotion,
double demotion,
double threshold) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
classify(double[] features) |
double |
getDemotion() |
double |
getPromotion() |
double |
getThreshold() |
double[] |
getU() |
double[] |
getV() |
protected void |
init(int featureSize) |
void |
reset() |
void |
setDemotion(double demotion) |
void |
setPromotion(double promotion) |
void |
setThreshold(double threshold) |
void |
setU(double[] u) |
void |
setV(double[] v) |
String |
toString() |
void |
update(Boolean label,
double[] features) |
public BWinnowClassifier()
public BWinnowClassifier(double promotion,
double demotion,
double threshold)
public Boolean classify(double[] features)
classify in interface Classifier<Boolean>public void update(Boolean label, double[] features)
update in interface Classifier<Boolean>protected void init(int featureSize)
public void reset()
reset in interface Classifier<Boolean>public double[] getU()
public void setU(double[] u)
public double[] getV()
public void setV(double[] v)
public double getPromotion()
public void setPromotion(double promotion)
public double getDemotion()
public void setDemotion(double demotion)
public double getThreshold()
public void setThreshold(double threshold)
Copyright © 2013. All Rights Reserved.