java.lang.Object
org.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
net
org.joone.net.NeuralNet net
startms
long startms
SimpleValidationSample
public SimpleValidationSample()
- Creates a new instance of SampleScript
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