|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DataType - The type of the data that the algorithm uses to perform
the learning. For example, a
Collection<InputOutputPair<Vector, Double>> or
String.ResultType - The type of object created by the learning algorithm.
For example, a FeedforwardNeuralNetwork.@CodeReview(reviewer="Kevin R. Dixon",
date="2008-07-22",
changesNeeded=false,
comments="Interface looks fine.")
public interface BatchLearner<DataType,ResultType>
The BatchLearner interface defines the general functionality
of an object that is the implementation of a data-driven, batch machine
learning algorithm. It unifies the interfaces for both supervised and
unsupervised learning, but as such is extremely general. The interface
defines that a learning algorithm takes in some type of data and produces
some type of object as output from the data.
Typically the input to the learning algorithm will be some collection of
data (training data) and the output will be some form of pattern recognizer
(classifier/categorizer).
The design pattern for machine learning algorithms is to have all the
parameters and configuration of the algorithm set on the BatchLearner
object (usually as a Java Bean) and then the data is passed in using the
learn method to create the result object of the learning algorithm.
The interface is for a "batch" machine learning algorithm because the call
to the learn method is expected to create a usable object from scratch using
the provided data.
If you implement this without really using a learning algorithm you will
make the authors very sad (especially Justin).
IncrementalLearner| Method Summary | |
|---|---|
ResultType |
learn(DataType data)
The learn method creates an object of ResultType using
data of type DataType, using some form of "learning" algorithm. |
| Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable |
|---|
clone |
| Method Detail |
|---|
ResultType learn(DataType data)
learn method creates an object of ResultType using
data of type DataType, using some form of "learning" algorithm.
data - The data that the learning algorithm will use to create an
object of ResultType.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||