|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.OnlineClassifierLearner edu.cmu.minorthird.classify.OnlineBinaryClassifierLearner edu.cmu.minorthird.classify.algorithms.linear.VitorBalancedWinnow
public class VitorBalancedWinnow
Created on Sep 22, 2005
Nested Class Summary | |
---|---|
class |
VitorBalancedWinnow.MyClassifier
|
Constructor Summary | |
---|---|
VitorBalancedWinnow()
Constructor |
|
VitorBalancedWinnow(boolean voted)
Constructor: voted="true" (more stable) or "false"(more aggressive) |
|
VitorBalancedWinnow(double alpha,
double beta,
boolean voted)
|
Method Summary | |
---|---|
void |
addExample(Example example2)
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. |
void |
reset()
'forget' everything about the last learning task, and start a new task. |
java.lang.String |
toString()
|
void |
updateVotedHyperplane(int 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 VitorBalancedWinnow()
public VitorBalancedWinnow(boolean voted)
voted
- public VitorBalancedWinnow(double alpha, double beta, boolean voted)
Method Detail |
---|
public void reset()
OnlineClassifierLearner
reset
in interface ClassifierLearner
reset
in class OnlineClassifierLearner
public void addExample(Example example2)
OnlineClassifierLearner
addExample
in interface ClassifierLearner
addExample
in class OnlineClassifierLearner
public void updateVotedHyperplane(int count)
public Classifier getClassifier()
OnlineClassifierLearner
getClassifier
in interface ClassifierLearner
getClassifier
in class OnlineClassifierLearner
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |