org.apache.spark.streamdm.classifiers
Gets the current Model used for the Learner.
Gets the current Model used for the Learner.
the Model object used for training
Init the model based on the algorithm implemented in the learner.
Init the model based on the algorithm implemented in the learner.
the ExampleSpecification of the input stream.
Train the model based on the algorithm implemented in the learner, from the stream of Examples given for training.
Train the model based on the algorithm implemented in the learner, from the stream of Examples given for training.
a stream of Examples
The PerceptronLearner trains a LinearModel which is a perceptron. It currently is implemented as an SGDLearner with a PerceptronLoss function. The lambda learning rate parameter, and the number of features need to be specified in the associated Task configuration file.