gov.sandia.cognition.learning.algorithm.bayes
Class DiscreteNaiveBayesCategorizer.Learner<InputType,CategoryType>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.algorithm.bayes.DiscreteNaiveBayesCategorizer.Learner<InputType,CategoryType>
Type Parameters:
InputType - Type of inputs to the categorizer.
CategoryType - Type of the categories of the categorizer.
All Implemented Interfaces:
BatchLearner<Collection<? extends InputOutputPair<? extends Collection<InputType>,CategoryType>>,DiscreteNaiveBayesCategorizer<InputType,CategoryType>>, SupervisedBatchLearner<Collection<InputType>,CategoryType,DiscreteNaiveBayesCategorizer<InputType,CategoryType>>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
DiscreteNaiveBayesCategorizer<InputType,CategoryType>

public static class DiscreteNaiveBayesCategorizer.Learner<InputType,CategoryType>
extends AbstractCloneableSerializable
implements SupervisedBatchLearner<Collection<InputType>,CategoryType,DiscreteNaiveBayesCategorizer<InputType,CategoryType>>

Learner for a DiscreteNaiveBayesCategorizer.

See Also:
Serialized Form

Constructor Summary
DiscreteNaiveBayesCategorizer.Learner()
          Default constructor.
 
Method Summary
 DiscreteNaiveBayesCategorizer<InputType,CategoryType> learn(Collection<? extends InputOutputPair<? extends Collection<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.util.AbstractCloneableSerializable
clone
 
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

DiscreteNaiveBayesCategorizer.Learner

public DiscreteNaiveBayesCategorizer.Learner()
Default constructor.

Method Detail

learn

public DiscreteNaiveBayesCategorizer<InputType,CategoryType> learn(Collection<? extends InputOutputPair<? extends Collection<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 Collection<InputType>,CategoryType>>,DiscreteNaiveBayesCategorizer<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.