edu.cmu.minorthird.classify.algorithms.linear
Class ROMMALearner
java.lang.Object
edu.cmu.minorthird.classify.OnlineClassifierLearner
edu.cmu.minorthird.classify.OnlineBinaryClassifierLearner
edu.cmu.minorthird.classify.algorithms.linear.ROMMALearner
- All Implemented Interfaces:
- BinaryClassifierLearner, ClassifierLearner, java.io.Serializable, java.lang.Cloneable
public class ROMMALearner
- extends OnlineBinaryClassifierLearner
- implements java.io.Serializable
Created on Sep 27, 2005
- Author:
- Vitor R. Carvalho
ROMMA (Relaxed Online Maximum Margin Algorithm) algorithm as described in
"The Relaxed Online Maximum Margin Algorithm", by Yi Li and Philip M. Long,
Machine Learning, 46(1-3):361-387,2002.
Additionally, it implements the Aggressive version(Aggressive ROMMA). (parameter aggressive)
Additionally, it implements optionally a voting scheme. (voted parameter)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ROMMALearner
public ROMMALearner()
ROMMALearner
public ROMMALearner(boolean agg,
boolean voted)
reset
public void reset()
- Description copied from class:
OnlineClassifierLearner
- 'forget' everything about the last learning task, and
start a new task. Subclasses need to implement this
method
- Specified by:
reset
in interface ClassifierLearner
- Specified by:
reset
in class OnlineClassifierLearner
addExample
public void addExample(Example example)
- Description copied from class:
OnlineClassifierLearner
- Subclasses should use this method to perform whatever
incremental update is needed after in response to a new
example.
- Specified by:
addExample
in interface ClassifierLearner
- Specified by:
addExample
in class OnlineClassifierLearner
getNormSquared
public double getNormSquared(Instance ins)
getHyperplaneNormSquared
public double getHyperplaneNormSquared(Hyperplane hyp)
getClassifier
public Classifier getClassifier()
- Description copied from class:
OnlineClassifierLearner
- Subclasses should use this method to return the current
classifier.
- Specified by:
getClassifier
in interface ClassifierLearner
- Specified by:
getClassifier
in class OnlineClassifierLearner
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)