Class MLPTrainerExample


  • public class MLPTrainerExample
    extends java.lang.Object
    Example of using distributed MultilayerPerceptron.

    Code in this example launches Ignite grid and fills the cache with simple test data.

    After that it defines a layered architecture and a neural network trainer, trains neural network and obtains multilayer perceptron model.

    Finally, this example loops over the test set, applies the trained model to predict the value and compares prediction to expected outcome.

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

    Remote nodes should always be started with special configuration file which enables P2P class loading: 'ignite.{sh|bat} examples/config/example-ignite.xml'.

    Alternatively you can run ExampleNodeStartup in another JVM which will start node with examples/config/example-ignite.xml configuration.

    • 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

      • MLPTrainerExample

        public MLPTrainerExample()
    • Method Detail

      • main

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