gov.sandia.cognition.learning.function.categorization
Class BinaryVersusCategorizer.Learner<InputType,CategoryType>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.algorithm.AbstractBatchLearnerContainer<BatchLearner<? super Collection<? extends InputOutputPair<? extends InputType,Boolean>>,? extends Evaluator<? super InputType,Boolean>>>
          extended by gov.sandia.cognition.learning.function.categorization.BinaryVersusCategorizer.Learner<InputType,CategoryType>
Type Parameters:
InputType - The input to learn from and the input to the learned categorizer.
CategoryType - The type of categories to learn from.
All Implemented Interfaces:
BatchLearner<Collection<? extends InputOutputPair<? extends InputType,CategoryType>>,BinaryVersusCategorizer<InputType,CategoryType>>, BatchLearnerContainer<BatchLearner<? super Collection<? extends InputOutputPair<? extends InputType,Boolean>>,? extends Evaluator<? super InputType,Boolean>>>, SupervisedBatchLearner<InputType,CategoryType,BinaryVersusCategorizer<InputType,CategoryType>>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
BinaryVersusCategorizer<InputType,CategoryType>

public static class BinaryVersusCategorizer.Learner<InputType,CategoryType>
extends AbstractBatchLearnerContainer<BatchLearner<? super Collection<? extends InputOutputPair<? extends InputType,Boolean>>,? extends Evaluator<? super InputType,Boolean>>>
implements SupervisedBatchLearner<InputType,CategoryType,BinaryVersusCategorizer<InputType,CategoryType>>

A learner for the BinaryVersusCategorizer. It learns a binary categorizer for each pair of categories.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.sandia.cognition.learning.algorithm.AbstractBatchLearnerContainer
learner
 
Constructor Summary
BinaryVersusCategorizer.Learner()
          Creates a new BinaryVersusCategorizer.Learner with no initial binary categorizer learner.
BinaryVersusCategorizer.Learner(BatchLearner<? super Collection<? extends InputOutputPair<? extends InputType,Boolean>>,? extends Evaluator<? super InputType,Boolean>> learner)
          Creates a new BinaryVersusCategorizer.Learner with an binary categorizer learner to learn category versus category.
 
Method Summary
 BinaryVersusCategorizer<InputType,CategoryType> learn(Collection<? extends InputOutputPair<? extends InputType,CategoryType>> data)
          The learn method creates an object of ResultType using data of type DataType, using some form of "learning" algorithm.
 
Methods inherited from class gov.sandia.cognition.learning.algorithm.AbstractBatchLearnerContainer
clone, getLearner, setLearner
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

BinaryVersusCategorizer.Learner

public BinaryVersusCategorizer.Learner()
Creates a new BinaryVersusCategorizer.Learner with no initial binary categorizer learner.


BinaryVersusCategorizer.Learner

public BinaryVersusCategorizer.Learner(BatchLearner<? super Collection<? extends InputOutputPair<? extends InputType,Boolean>>,? extends Evaluator<? super InputType,Boolean>> learner)
Creates a new BinaryVersusCategorizer.Learner with an binary categorizer learner to learn category versus category.

Parameters:
learner - The binary categorizer learner to use to learn decision functions between categories.
Method Detail

learn

public BinaryVersusCategorizer<InputType,CategoryType> learn(Collection<? extends InputOutputPair<? extends InputType,CategoryType>> data)
Description copied from interface: BatchLearner
The learn method creates an object of ResultType using data of type DataType, using some form of "learning" algorithm.

Specified by:
learn in interface BatchLearner<Collection<? extends InputOutputPair<? extends InputType,CategoryType>>,BinaryVersusCategorizer<InputType,CategoryType>>
Parameters:
data - The data that the learning algorithm will use to create an object of ResultType.
Returns:
The object that is created based on the given data using the learning algorithm.