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

Quick Search    Search Deep

org.joone.samples.engine.scripting
Class ScriptValidationSample  view ScriptValidationSample download ScriptValidationSample.java

java.lang.Object
  extended byorg.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.


Field Summary
(package private)  org.joone.net.NeuralNet net
           
 
Constructor Summary
ScriptValidationSample()
          Creates a new instance of SampleScript
 
Method Summary
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)
           
private  void initialize(java.lang.String path)
           
static void main(java.lang.String[] args)
           
private  java.lang.String readFile(java.io.File p_file)
          Reads the content of the file.
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
Constructor Detail

ScriptValidationSample

public ScriptValidationSample()
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)

readFile

private java.lang.String readFile(java.io.File p_file)
Reads the content of the file.


start

private void start()