Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.joone.samples.engine.validation
Class SimpleValidationSample  view SimpleValidationSample download SimpleValidationSample.java

java.lang.Object
  extended byorg.joone.samples.engine.validation.SimpleValidationSample
All Implemented Interfaces:
java.util.EventListener, org.joone.engine.NeuralNetListener, org.joone.net.NeuralValidationListener

public class SimpleValidationSample
extends java.lang.Object
implements org.joone.engine.NeuralNetListener, org.joone.net.NeuralValidationListener

This example shows how to check the training level of the net using a validation data source. In this example we will learn to use the following objects: - org.joone.util.LearningSwitch - org.joone.net.NeuralNetValidator - org.joone.util.NormalizerPlugIn This program shows how to build the same kind of neural net as that contained into the org/joone/samples/editor/scripting/ValidationSample.ser file using only java code and the core engine's API. Open that net in the GUI editor to see the architecture of the net built in this example.


Field Summary
(package private)  org.joone.net.NeuralNet net
           
(package private)  long startms
           
 
Constructor Summary
SimpleValidationSample()
          Creates a new instance of SampleScript
 
Method Summary
 void cicleTerminated(org.joone.engine.NeuralNetEvent e)
           
private  void connect(org.joone.engine.Layer ly1, org.joone.engine.Synapse syn, org.joone.engine.Layer ly2)
          Connects two Layers with a Synapse
private  org.joone.io.FileInputSynapse createInput(java.lang.String name, int firstRow, int firstCol, int lastCol)
          Creates a FileInputSynapse
private  org.joone.util.LearningSwitch createSwitch(org.joone.io.StreamInputSynapse IT, org.joone.io.StreamInputSynapse IV)
           
 void errorChanged(org.joone.engine.NeuralNetEvent e)
           
private  void initialize(java.lang.String path)
           
static void main(java.lang.String[] args)
           
 void netStarted(org.joone.engine.NeuralNetEvent e)
           
 void netStopped(org.joone.engine.NeuralNetEvent e)
           
 void netStoppedError(org.joone.engine.NeuralNetEvent e, java.lang.String error)
           
 void netValidated(org.joone.net.NeuralValidationEvent event)
           
private  void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

net

org.joone.net.NeuralNet net

startms

long startms
Constructor Detail

SimpleValidationSample

public SimpleValidationSample()
Creates a new instance of SampleScript

Method Detail

main

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

initialize

private void initialize(java.lang.String path)

createInput

private org.joone.io.FileInputSynapse createInput(java.lang.String name,
                                                  int firstRow,
                                                  int firstCol,
                                                  int lastCol)
Creates a FileInputSynapse


connect

private void connect(org.joone.engine.Layer ly1,
                     org.joone.engine.Synapse syn,
                     org.joone.engine.Layer ly2)
Connects two Layers with a Synapse


createSwitch

private org.joone.util.LearningSwitch createSwitch(org.joone.io.StreamInputSynapse IT,
                                                   org.joone.io.StreamInputSynapse IV)

start

private void start()

netValidated

public void netValidated(org.joone.net.NeuralValidationEvent event)
Specified by:
netValidated in interface org.joone.net.NeuralValidationListener

cicleTerminated

public void cicleTerminated(org.joone.engine.NeuralNetEvent e)
Specified by:
cicleTerminated in interface org.joone.engine.NeuralNetListener

errorChanged

public void errorChanged(org.joone.engine.NeuralNetEvent e)
Specified by:
errorChanged in interface org.joone.engine.NeuralNetListener

netStarted

public void netStarted(org.joone.engine.NeuralNetEvent e)
Specified by:
netStarted in interface org.joone.engine.NeuralNetListener

netStopped

public void netStopped(org.joone.engine.NeuralNetEvent e)
Specified by:
netStopped in interface org.joone.engine.NeuralNetListener

netStoppedError

public void netStoppedError(org.joone.engine.NeuralNetEvent e,
                            java.lang.String error)
Specified by:
netStoppedError in interface org.joone.engine.NeuralNetListener