@CodeReview(reviewer="Kevin R. Dixon", date="2008-07-22", changesNeeded=false, comments={"Fixed a few typos in javadoc.","Removed implements Serializeable, as BatchLearner already does that.","I don\'t particularly like this class... I just don\'t think it\'s useful.","However, the code looks fine."}) public class WeightedMeanLearner extends AbstractCloneableSerializable implements SupervisedBatchLearner<java.lang.Object,java.lang.Double,ConstantEvaluator<java.lang.Double>>
WeightedMeanLearner class implements a baseline learner that
computes the weighted mean output value.| Constructor and Description |
|---|
WeightedMeanLearner()
Creates a new
MeanLearner. |
| Modifier and Type | Method and Description |
|---|---|
ConstantEvaluator<java.lang.Double> |
learn(java.util.Collection<? extends InputOutputPair<?,java.lang.Double>> data)
Creates a constant evaluator for the weighted mean output value of the
given dataset.
|
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonepublic ConstantEvaluator<java.lang.Double> learn(java.util.Collection<? extends InputOutputPair<?,java.lang.Double>> data)
learn in interface BatchLearner<java.util.Collection<? extends InputOutputPair<? extends java.lang.Object,java.lang.Double>>,ConstantEvaluator<java.lang.Double>>data - The dataset of input-output pairs to use.