java.lang.Object
org.joone.samples.engine.scripting.ScriptValidationSample
- public class ScriptValidationSample
- extends java.lang.Object
This example shows how to use the joone's scripting engine to
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.util.MacroPlugin
- org.joone.util.NormalizerPlugIn
This program shows how to build the same neural net 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
ScriptValidationSample
public ScriptValidationSample()
- 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)
readFile
private java.lang.String readFile(java.io.File p_file)
- Reads the content of the file.
start
private void start()