public class NaiveBayesLearner extends AbstractOnlineLearner<BayesianProbabilityModel>
featureDimension, numOutcomeClasses, outcomeDimension, streamSupplier| Constructor and Description |
|---|
NaiveBayesLearner()
Default constructor to construct this classifier.
|
NaiveBayesLearner(boolean verbose)
Pass true if this classifier should output some progress information to the
logger.
|
| Modifier and Type | Method and Description |
|---|---|
BayesianProbabilityModel |
train(java.util.function.Supplier<java.util.stream.Stream<de.jungblut.online.ml.FeatureOutcomePair>> streamSupplier)
Trains a new model using the supplied streams.
|
init, peekDimensions, setVerbose, verbosepublic NaiveBayesLearner()
public NaiveBayesLearner(boolean verbose)
public BayesianProbabilityModel train(java.util.function.Supplier<java.util.stream.Stream<de.jungblut.online.ml.FeatureOutcomePair>> streamSupplier)
OnlineLearnerstreamSupplier - the supplier that creates a new stream that can be
consumed.Copyright © 2015. All rights reserved.