org.neuroph.samples
Class PerceptronSample

java.lang.Object
  extended by org.neuroph.samples.PerceptronSample

public class PerceptronSample
extends java.lang.Object

This sample shows how to create, train, save and load simple Perceptron neural network

Author:
Zoran Sevarac

Constructor Summary
PerceptronSample()
           
 
Method Summary
static void main(java.lang.String[] args)
          Runs this sample
static void testNeuralNetwork(NeuralNetwork neuralNet, TrainingSet trainingSet)
          Prints network output for the each element from the specified training set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerceptronSample

public PerceptronSample()
Method Detail

main

public static void main(java.lang.String[] args)
Runs this sample


testNeuralNetwork

public static void testNeuralNetwork(NeuralNetwork neuralNet,
                                     TrainingSet trainingSet)
Prints network output for the each element from the specified training set.

Parameters:
neuralNet - neural network
trainingSet - training set