public static class MixtureOfGaussians.Learner extends AnytimeAlgorithmWrapper<MixtureOfGaussians.PDF,KMeansClusterer<Vector,GaussianCluster>> implements DistributionEstimator<Vector,MixtureOfGaussians.PDF>, MeasurablePerformanceAlgorithm
DEFAULT_ITERATION, iteration
Constructor and Description |
---|
Learner(KMeansClusterer<Vector,GaussianCluster> algorithm)
Creates a new Learner
|
Modifier and Type | Method and Description |
---|---|
NamedValue<? extends java.lang.Number> |
getPerformance()
Gets the name-value pair that describes the current performance of the
algorithm.
|
MixtureOfGaussians.PDF |
getResult()
Gets the current result of the algorithm.
|
MixtureOfGaussians.PDF |
learn(java.util.Collection<? extends Vector> data)
The
learn method creates an object of ResultType using
data of type DataType , using some form of "learning" algorithm. |
algorithmEnded, algorithmStarted, clone, getAlgorithm, getIteration, getMaxIterations, isResultValid, readResolve, setAlgorithm, setMaxIterations, stepEnded, stepStarted, stop
addIterativeAlgorithmListener, fireAlgorithmEnded, fireAlgorithmStarted, fireStepEnded, fireStepStarted, getListeners, removeIterativeAlgorithmListener, setIteration, setListeners
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
addIterativeAlgorithmListener, removeIterativeAlgorithmListener
public Learner(KMeansClusterer<Vector,GaussianCluster> algorithm)
algorithm
- KMeansClusterer to wrap.public MixtureOfGaussians.PDF getResult()
AnytimeAlgorithm
getResult
in interface AnytimeAlgorithm<MixtureOfGaussians.PDF>
public MixtureOfGaussians.PDF learn(java.util.Collection<? extends Vector> 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 Vector>,MixtureOfGaussians.PDF>
data
- The data that the learning algorithm will use to create an
object of ResultType
.public NamedValue<? extends java.lang.Number> getPerformance()
MeasurablePerformanceAlgorithm
getPerformance
in interface MeasurablePerformanceAlgorithm