|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.minorthird.classify.OnlineClassifierLearner
edu.cmu.minorthird.classify.OnlineBinaryClassifierLearner
edu.cmu.minorthird.classify.algorithms.linear.Winnow
public class Winnow
Created on Sep 21, 2005
| Nested Class Summary | |
|---|---|
static class |
Winnow.MyClassifier
|
| Constructor Summary | |
|---|---|
Winnow()
|
|
Winnow(boolean voted)
Constructor: voted="true" (more stable) or "false"(more aggressive) |
|
Winnow(double a,
double b,
boolean voted)
|
|
| Method Summary | |
|---|---|
void |
addExample(Example example1)
Subclasses should use this method to perform whatever incremental update is needed after in response to a new example. |
Classifier |
getClassifier()
Subclasses should use this method to return the current classifier. |
static Example |
normalizeWeights(Example ex,
boolean dummy)
1- adds a dummy feature(optional) 2- Divides the weights of features by the sum of the norm of of all features in Example |
void |
reset()
'forget' everything about the last learning task, and start a new task. |
java.lang.String |
toString()
|
void |
updateVotedHyperplane(double count)
|
| Methods inherited from class edu.cmu.minorthird.classify.OnlineBinaryClassifierLearner |
|---|
getBinaryClassifier, getSchema, setSchema |
| Methods inherited from class edu.cmu.minorthird.classify.OnlineClassifierLearner |
|---|
completeTraining, copy, hasNextQuery, nextQuery, setInstancePool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.cmu.minorthird.classify.ClassifierLearner |
|---|
completeTraining, copy, hasNextQuery, nextQuery, setInstancePool |
| Constructor Detail |
|---|
public Winnow()
public Winnow(boolean voted)
voted -
public Winnow(double a,
double b,
boolean voted)
| Method Detail |
|---|
public void reset()
OnlineClassifierLearner
reset in interface ClassifierLearnerreset in class OnlineClassifierLearnerpublic void addExample(Example example1)
OnlineClassifierLearner
addExample in interface ClassifierLearneraddExample in class OnlineClassifierLearnerpublic void updateVotedHyperplane(double count)
public Classifier getClassifier()
OnlineClassifierLearner
getClassifier in interface ClassifierLearnergetClassifier in class OnlineClassifierLearnerpublic java.lang.String toString()
toString in class java.lang.Object
public static Example normalizeWeights(Example ex,
boolean dummy)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||