Class Step_6_KNN
- java.lang.Object
-
- org.apache.ignite.examples.ml.tutorial.Step_6_KNN
-
public class Step_6_KNN extends java.lang.ObjectChange classification algorithm that was used inStep_5_Scalingfrom decision tree to kNN (KNNClassificationTrainer) because sometimes this can be beneficial.Code in this example launches Ignite grid and fills the cache with test data (based on Titanic passengers data).
After that it defines preprocessors that extract features from an upstream data and perform other desired changes over the extracted data.
Then, it trains the model based on the processed data using kNN classification.
Finally, this example uses
Evaluatorfunctionality to compute metrics from predictions.
-
-
Constructor Summary
Constructors Constructor Description Step_6_KNN()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run example.
-