edu.udo.cs.yale.operator.learner.lazy
Class AverageLearner

java.lang.Object
  extended by edu.udo.cs.yale.operator.Operator
      extended by edu.udo.cs.yale.operator.learner.AbstractLearner
          extended by edu.udo.cs.yale.operator.learner.lazy.AverageLearner
All Implemented Interfaces:
ConfigurationListener, Learner

public class AverageLearner
extends AbstractLearner

AverageLearner is very lazy. Actually it does not learn at all but creates an AverageModel. This model simply calculates the average of the attributes as prediction. AverageLearner is especially useful if it is used on an example set created by a meta learning scheme. This approach can be combined with an approach to weight the features (predictions / models).

Version:
$Id: AverageLearner.java,v 1.14 2006/10/02 22:35:50 ingomierswa Exp $
Author:
Ingo Mierswa

Constructor Summary
AverageLearner(OperatorDescription description)
           
 
Method Summary
 Model learn(ExampleSet exampleSet)
          Trains a model.
 boolean supportsCapability(LearnerCapability lc)
          Checks for Learner capabilities.
 
Methods inherited from class edu.udo.cs.yale.operator.learner.AbstractLearner
apply, checkLearnerCapabilities, getEstimatedPerformance, getInputClasses, getInputDescription, getOptimizationPerformance, getOutputClasses, getWeights, shouldCalculateWeights, shouldDeliverOptimizationPerformance, shouldEstimatePerformance
 
Methods inherited from class edu.udo.cs.yale.operator.Operator
addError, addValue, addWarning, apply, checkDeprecations, checkIO, checkProperties, clearErrorList, cloneOperator, createExperimentTree, createExperimentTree, createFromXML, createMarkedExperimentTree, delete, experimentFinished, experimentStarts, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getErrorList, getExperiment, getInnerOperatorsXML, getInput, getInput, getInput, getIOContainerForInApplyLoopBreakpoint, getName, getNumberOfSteps, getOperatorClassName, getOperatorDescription, getParameter, getParameterAsBoolean, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsInt, getParameterAsString, getParameterList, getParameters, getParameterType, getParameterTypes, getParent, getStartTime, getStatus, getUserDescription, getValue, getValues, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isEnabled, isParameterSet, logMessage, performAdditionalChecks, register, remove, rename, resume, setBreakpoint, setEnabled, setExperiment, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.udo.cs.yale.operator.learner.Learner
getName
 

Constructor Detail

AverageLearner

public AverageLearner(OperatorDescription description)
Method Detail

supportsCapability

public boolean supportsCapability(LearnerCapability lc)
Description copied from interface: Learner
Checks for Learner capabilities. Should return true if the given capability is supported.


learn

public Model learn(ExampleSet exampleSet)
Description copied from interface: Learner
Trains a model. This method should be called by apply() and is implemented by subclasses.



Copyright © 2001-2006