InputType
- The input to learn from and the input to the learned categorizer.CategoryType
- The type of categories to learn from.public static class BinaryVersusCategorizer.Learner<InputType,CategoryType> extends AbstractBatchLearnerContainer<BatchLearner<? super java.util.Collection<? extends InputOutputPair<? extends InputType,java.lang.Boolean>>,? extends Evaluator<? super InputType,java.lang.Boolean>>> implements SupervisedBatchLearner<InputType,CategoryType,BinaryVersusCategorizer<InputType,CategoryType>>
BinaryVersusCategorizer
. It learns a
binary categorizer for each pair of categories.learner
Constructor and Description |
---|
Learner()
Creates a new
BinaryVersusCategorizer.Learner with no
initial binary categorizer learner. |
Learner(BatchLearner<? super java.util.Collection<? extends InputOutputPair<? extends InputType,java.lang.Boolean>>,? extends Evaluator<? super InputType,java.lang.Boolean>> learner)
Creates a new
BinaryVersusCategorizer.Learner with an
binary categorizer learner to learn category versus category. |
Modifier and Type | Method and Description |
---|---|
BinaryVersusCategorizer<InputType,CategoryType> |
learn(java.util.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. |
clone, getLearner, setLearner
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public Learner()
BinaryVersusCategorizer.Learner
with no
initial binary categorizer learner.public Learner(BatchLearner<? super java.util.Collection<? extends InputOutputPair<? extends InputType,java.lang.Boolean>>,? extends Evaluator<? super InputType,java.lang.Boolean>> learner)
BinaryVersusCategorizer.Learner
with an
binary categorizer learner to learn category versus category.learner
- The binary categorizer learner to use to learn decision
functions between categories.public BinaryVersusCategorizer<InputType,CategoryType> learn(java.util.Collection<? extends InputOutputPair<? extends InputType,CategoryType>> data)
BatchLearner
learn
method creates an object of ResultType
using
data of type DataType
, using some form of "learning" algorithm.learn
in interface BatchLearner<java.util.Collection<? extends InputOutputPair<? extends InputType,CategoryType>>,BinaryVersusCategorizer<InputType,CategoryType>>
data
- The data that the learning algorithm will use to create an
object of ResultType
.