gov.sandia.cognition.learning.algorithm
Class AbstractAnytimeSupervisedBatchLearner<InputType,OutputType,ResultType extends Evaluator<? super InputType,? extends OutputType>>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.algorithm.AbstractIterativeAlgorithm
          extended by gov.sandia.cognition.algorithm.AbstractAnytimeAlgorithm<ResultType>
              extended by gov.sandia.cognition.learning.algorithm.AbstractAnytimeBatchLearner<Collection<? extends InputOutputPair<? extends InputType,OutputType>>,ResultType>
                  extended by gov.sandia.cognition.learning.algorithm.AbstractAnytimeSupervisedBatchLearner<InputType,OutputType,ResultType>
Type Parameters:
InputType - The type of input data in the input-output pair that the learner can learn from. The Evaluator learned from the algorithm also takes this as the input parameter.
OutputType - The type of output data in the input-output pair that the learner can learn from. The Evaluator learned from the algorithm also produces this as its output.
ResultType - The type of object created by the learning algorithm. For example, a FeedforwardNeuralNetwork.
All Implemented Interfaces:
AnytimeAlgorithm<ResultType>, IterativeAlgorithm, StoppableAlgorithm, AnytimeBatchLearner<Collection<? extends InputOutputPair<? extends InputType,OutputType>>,ResultType>, BatchLearner<Collection<? extends InputOutputPair<? extends InputType,OutputType>>,ResultType>, SupervisedBatchLearner<InputType,OutputType,ResultType>, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
AbstractBaggingLearner, AbstractParameterCostMinimizer, AdaBoost, BatchMultiPerceptron, IVotingCategorizerLearner, KernelAdatron, KernelBasedIterativeRegression, KernelPerceptron, KernelWeightedRobustRegression, LogisticRegression, MultiCategoryAdaBoost, Perceptron, PrimalEstimatedSubGradient, SequentialMinimalOptimization, SuccessiveOverrelaxation

@CodeReview(reviewer="Kevin R. Dixon",
            date="2008-07-22",
            changesNeeded=false,
            comments={"Reformatted the rather long class-generic parameterization.","Code looks fine."})
public abstract class AbstractAnytimeSupervisedBatchLearner<InputType,OutputType,ResultType extends Evaluator<? super InputType,? extends OutputType>>
extends AbstractAnytimeBatchLearner<Collection<? extends InputOutputPair<? extends InputType,OutputType>>,ResultType>
implements SupervisedBatchLearner<InputType,OutputType,ResultType>

The AbstractAnytimeSupervisedBatchLearner abstract class extends the AbstractAnytimeBatchLearner to implement the SupervisedBatchLearner interface. It does this to simplify the use of the standard generics that a batch supervised learning algorithm uses.

Since:
2.1
Author:
Justin Basilico, Kevin R. Dixon
See Also:
BatchLearner, AnytimeAlgorithm, SupervisedBatchLearner, Serialized Form

Field Summary
 
Fields inherited from class gov.sandia.cognition.learning.algorithm.AbstractAnytimeBatchLearner
data, keepGoing
 
Fields inherited from class gov.sandia.cognition.algorithm.AbstractAnytimeAlgorithm
maxIterations
 
Fields inherited from class gov.sandia.cognition.algorithm.AbstractIterativeAlgorithm
DEFAULT_ITERATION, iteration
 
Constructor Summary
AbstractAnytimeSupervisedBatchLearner(int maxIterations)
          Creates a new instance of AbstractAnytimeSupervisedBatchLearner.
 
Method Summary
 
Methods inherited from class gov.sandia.cognition.learning.algorithm.AbstractAnytimeBatchLearner
cleanupAlgorithm, clone, getData, getKeepGoing, initializeAlgorithm, learn, setData, setKeepGoing, step, stop
 
Methods inherited from class gov.sandia.cognition.algorithm.AbstractAnytimeAlgorithm
getMaxIterations, isResultValid, setMaxIterations
 
Methods inherited from class gov.sandia.cognition.algorithm.AbstractIterativeAlgorithm
addIterativeAlgorithmListener, fireAlgorithmEnded, fireAlgorithmStarted, fireStepEnded, fireStepStarted, getIteration, getListeners, removeIterativeAlgorithmListener, setIteration, setListeners
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.learning.algorithm.BatchLearner
learn
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 
Methods inherited from interface gov.sandia.cognition.algorithm.AnytimeAlgorithm
getMaxIterations, getResult, setMaxIterations
 
Methods inherited from interface gov.sandia.cognition.algorithm.IterativeAlgorithm
addIterativeAlgorithmListener, getIteration, removeIterativeAlgorithmListener
 
Methods inherited from interface gov.sandia.cognition.algorithm.StoppableAlgorithm
isResultValid
 

Constructor Detail

AbstractAnytimeSupervisedBatchLearner

public AbstractAnytimeSupervisedBatchLearner(int maxIterations)
Creates a new instance of AbstractAnytimeSupervisedBatchLearner.

Parameters:
maxIterations - Maximum number of iterations before stopping. Must be greater than zero.