Class DecisionTreeClassificationExportImportExample


  • public class DecisionTreeClassificationExportImportExample
    extends java.lang.Object
    Example of using distributed DecisionTreeClassificationTrainer.

    Code in this example launches Ignite grid and fills the cache with pseudo random training data points.

    After that it creates classification trainer and uses it to train the model on the training set.

    Finally, this example loops over the pseudo randomly generated test set of data points, applies the trained model, and compares prediction to expected outcome.

    You can change the test data used in this example and re-run it to explore this algorithm further.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Executes example.
      • Methods inherited from class java.lang.Object

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

      • DecisionTreeClassificationExportImportExample

        public DecisionTreeClassificationExportImportExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Executes example.
        Parameters:
        args - Command line arguments, none required.
        Throws:
        java.io.IOException