InputType - The type of the input data for the learner.CategoryType - The type of the output categories.public static class WinnerTakeAllCategorizer.Learner<InputType,CategoryType> extends AbstractBatchLearnerContainer<BatchLearner<? super java.util.Collection<? extends InputOutputPair<? extends InputType,Vector>>,? extends Evaluator<? super InputType,? extends Vectorizable>>> implements SupervisedBatchLearner<InputType,CategoryType,WinnerTakeAllCategorizer<InputType,CategoryType>>, VectorFactoryContainer
| Modifier and Type | Field and Description |
|---|---|
protected VectorFactory<?> |
vectorFactory
The vector factory used.
|
learner| Constructor and Description |
|---|
Learner()
Creates a new learner adapter.
|
Learner(BatchLearner<? super java.util.Collection<? extends InputOutputPair<? extends InputType,Vector>>,Evaluator<? super InputType,? extends Vectorizable>> learner)
Creates a new learner adapter with the given internal learner.
|
| Modifier and Type | Method and Description |
|---|---|
VectorFactory<?> |
getVectorFactory()
Gets the vector factory.
|
WinnerTakeAllCategorizer<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. |
void |
setVectorFactory(VectorFactory<?> vectorFactory)
Sets the vector factory.
|
clone, getLearner, setLearnerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneprotected VectorFactory<?> vectorFactory
public Learner()
public Learner(BatchLearner<? super java.util.Collection<? extends InputOutputPair<? extends InputType,Vector>>,Evaluator<? super InputType,? extends Vectorizable>> learner)
learner - The learner to adapt.public WinnerTakeAllCategorizer<InputType,CategoryType> learn(java.util.Collection<? extends InputOutputPair<? extends InputType,CategoryType>> data)
BatchLearnerlearn 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>>,WinnerTakeAllCategorizer<InputType,CategoryType>>data - The data that the learning algorithm will use to create an
object of ResultType.public VectorFactory<?> getVectorFactory()
getVectorFactory in interface VectorFactoryContainerpublic void setVectorFactory(VectorFactory<?> vectorFactory)
vectorFactory - The vector factory.