Class Step_6_KNN


  • public class Step_6_KNN
    extends java.lang.Object
    Change classification algorithm that was used in Step_5_Scaling from 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 Evaluator functionality 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 void main​(java.lang.String[] args)
      Run example.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Step_6_KNN

        public Step_6_KNN()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Run example.