Documentation of 'org.neuroph.samples.XorMultiLayerPerceptronSample' Java class
XorMultiLayerPerceptronSample
org.neuroph.samples

Class XorMultiLayerPerceptronSample

  • All Implemented Interfaces:
    java.util.EventListener, LearningEventListener


    public class XorMultiLayerPerceptronSample
    extends java.lang.Object
    implements LearningEventListener
    This sample shows how to create, train, save and load simple Multi Layer Perceptron for the XOR problem. This sample shows basics of Neuroph API.
    • Constructor Detail

      • XorMultiLayerPerceptronSample

        public XorMultiLayerPerceptronSample()
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
      • run

        public void run()
        Runs this sample
      • testNeuralNetwork

        public static void testNeuralNetwork(NeuralNetwork neuralNet,
                                             DataSet testSet)
        Prints network output for the each element from the specified training set.
        Parameters:
        neuralNet - neural network
        testSet - test set
      • handleLearningEvent

        public void handleLearningEvent(LearningEvent event)
        Description copied from interface: LearningEventListener
        This method gets executed when LearningRule fires LearningEvent which some class is listening to. For example, if you want to print current iteration, error etc.
        Specified by:
        handleLearningEvent in interface LearningEventListener
        Parameters:
        event - holds the information about event tha occured

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.