Class ANNClassificationExample
- java.lang.Object
-
- org.apache.ignite.examples.ml.knn.ANNClassificationExample
-
public class ANNClassificationExample extends java.lang.ObjectRun ANN multi-class classification trainer (ANNClassificationTrainer) over distributed dataset.Code in this example launches Ignite grid and fills the cache with test data points (based on the Iris dataset).
After that it trains the model based on the specified data using kNN algorithm.
Finally, this example loops over the test set of data points, applies the trained model to predict what cluster does this point belong to, and compares prediction to expected outcome (ground truth).
You can change the test data used in this example and re-run it to explore this algorithm further.
-
-
Constructor Summary
Constructors Constructor Description ANNClassificationExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run example.
-