Class MLPTrainerExample
- java.lang.Object
-
- org.apache.ignite.examples.ml.nn.MLPTrainerExample
-
public class MLPTrainerExample extends java.lang.ObjectExample of using distributedMultilayerPerceptron.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
ExampleNodeStartupin another JVM which will start node withexamples/config/example-ignite.xmlconfiguration.
-
-
Constructor Summary
Constructors Constructor Description MLPTrainerExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Executes example.
-