public static class GaussianContextRecognizer.Learner extends AnytimeAlgorithmWrapper<GaussianContextRecognizer,AnytimeBatchLearner<java.util.Collection<? extends Vector>,java.util.Collection<GaussianCluster>>> implements AnytimeBatchLearner<java.util.Collection<? extends Vector>,GaussianContextRecognizer>, MeasurablePerformanceAlgorithm
DEFAULT_ITERATION, iteration
Constructor and Description |
---|
Learner()
Creates a new
Learner . |
Learner(KMeansClusterer<Vector,GaussianCluster> algorithm)
Creates a new instance of Learner
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends Vector> |
getData()
Gets the data to use for learning.
|
boolean |
getKeepGoing()
Gets the keep going value, which indicates if the algorithm should
continue on to another step.
|
NamedValue<? extends java.lang.Number> |
getPerformance()
Gets the name-value pair that describes the current performance of the
algorithm.
|
GaussianContextRecognizer |
getResult()
Gets the current result of the algorithm.
|
GaussianContextRecognizer |
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
getMaxIterations, setMaxIterations
addIterativeAlgorithmListener, getIteration, removeIterativeAlgorithmListener
isResultValid, stop
clone
public Learner()
Learner
.public Learner(KMeansClusterer<Vector,GaussianCluster> algorithm)
algorithm
- Clustering algorithm to create the GaussianContextRecognizer frompublic GaussianContextRecognizer 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>,GaussianContextRecognizer>
data
- The data that the learning algorithm will use to create an
object of ResultType
.public GaussianContextRecognizer getResult()
AnytimeAlgorithm
getResult
in interface AnytimeAlgorithm<GaussianContextRecognizer>
public NamedValue<? extends java.lang.Number> getPerformance()
MeasurablePerformanceAlgorithm
getPerformance
in interface MeasurablePerformanceAlgorithm
public boolean getKeepGoing()
AnytimeBatchLearner
getKeepGoing
in interface AnytimeBatchLearner<java.util.Collection<? extends Vector>,GaussianContextRecognizer>
public java.util.Collection<? extends Vector> getData()
AnytimeBatchLearner
getData
in interface AnytimeBatchLearner<java.util.Collection<? extends Vector>,GaussianContextRecognizer>