Class CompoundNaiveBayesExample
- java.lang.Object
-
- org.apache.ignite.examples.ml.naivebayes.CompoundNaiveBayesExample
-
public class CompoundNaiveBayesExample extends java.lang.ObjectRun naive Compound Bayes classification model based on Nnaive Bayes classifier algorithm (GaussianNaiveBayesTrainer)and Discrete naive Bayes classifier algorithm (DiscreteNaiveBayesTrainer) over distributed cache.Code in this example launches Ignite grid and fills the cache with test data points.
After that it trains the naive Bayes classification model based on the specified data.
Finally, this example loops over the test set of data points, applies the trained model to predict the target value, compares prediction to expected outcome (ground truth), and builds confusion matrix.
You can change the test data used in this example and re-run it to explore this algorithm further.
-
-
Constructor Summary
Constructors Constructor Description CompoundNaiveBayesExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run example.
-