KeyType
- Type of Key in the distributionpublic static class DefaultDataDistribution.WeightedEstimator<KeyType> extends AbstractBatchAndIncrementalLearner<WeightedValue<? extends KeyType>,DefaultDataDistribution.PMF<KeyType>> implements DistributionWeightedEstimator<KeyType,DefaultDataDistribution.PMF<KeyType>>
Constructor and Description |
---|
WeightedEstimator()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
DefaultDataDistribution.PMF<KeyType> |
createInitialLearnedObject()
Creates a new initial learned object, before any data is given.
|
void |
update(DefaultDataDistribution.PMF<KeyType> target,
WeightedValue<? extends KeyType> data)
The
update method updates an object of ResultType using
the given new data of type DataType , using some form of
"learning" algorithm. |
clone, learn, learn, update
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
learn
clone
public DefaultDataDistribution.PMF<KeyType> createInitialLearnedObject()
IncrementalLearner
createInitialLearnedObject
in interface IncrementalLearner<WeightedValue<? extends KeyType>,DefaultDataDistribution.PMF<KeyType>>
public void update(DefaultDataDistribution.PMF<KeyType> target, WeightedValue<? extends KeyType> data)
IncrementalLearner
update
method updates an object of ResultType
using
the given new data of type DataType
, using some form of
"learning" algorithm.update
in interface IncrementalLearner<WeightedValue<? extends KeyType>,DefaultDataDistribution.PMF<KeyType>>
target
- The object to update.data
- The new data for the learning algorithm to use to update
the object.