Getting Started

 
If you prefer an interactive guide click the Getting Started button on the EasyNN-plus Tip of the Day dialog.
 
This exercise is a step by step guide resulting in a neural network that is trained to produce the secondary color from pairs of the three primary colors.  The primary light colors are used (red, green and blue) rather than primary pigment colors (red, yellow and blue).  The guide is mainly about using the keyboard to navigate and enter data in the Grid however it is possible to navigate using the mouse if you prefer.  The first few steps are described in detail.  The process gets easier as you complete each stage.
 
Press the New toolbar button or use the File > New menu command to produce a new neural network Grid.
 
An empty Grid with a vertical line, a horizontal line and an underline marker will appear.  The marker shows the position where a column and row will be produced.
 
Press the enter key and you will be asked "Create new Example row?" - answer Yes.
You will then be asked "Create new Input/Output column?" - answer Yes.
You have now created a training example with one input.  The example has no name and no value.
The example will be labeled "T:0" for training row 0.  The input/output column will be labeled "I:0" for input column 0.
 
Press the enter key again and you will open the Edit Grid dialog.  This dialog is used to enter or edit all of the information in the Grid.
Enter "1" in the Value edit box and then tab
Enter "Pair 1" in the Example row edit box and then tab.
The Type is already set to Training so just tab again.
Enter "Red" in the Input/Output column edit box and then press OK.
You now have an example named "Pair 1" with an input named "Red" with the value set to 1.0000
 
Press the right arrow key and then press enter.
You will be asked "Create new Input/Output column?" - answer Yes.
 
Press enter and you will open the Edit Grid dialog again.
Enter "1" in the Value edit box and then tab three times.
Enter "Green" in the Input/Output column edit box and then press OK.
 
Press the right arrow key and then press enter.
You will be asked "Create new Input/Output column?" - answer Yes.
 
Press enter and you will open the Edit Grid dialog again.
Enter "0" in the Value edit box and then tab three times.
Enter "Blue" in the Input/Output column edit box and then press OK.
 
Press the right arrow key and then press enter.
You will be asked "Create new Input/Output column?" - answer Yes.
 
Press enter and you will open the Edit Grid dialog again.
Enter "1" in the Value edit box and then tab three times.
Enter "Yellow" in the Input/Output column edit box.
Click the Output and the Bool radio buttons and then press OK.
 
Press the right arrow key and then press enter.
You will be asked "Create new Input/Output column?" - answer Yes.
 
Press enter and you will open the Edit Grid dialog again.
Enter "0" in the Value edit box and then tab three times.
Enter "Cyan" in the Input/Output column edit box.
Click the Output and the Bool radio buttons and then press OK.
 
Press the right arrow key and then press enter.
You will be asked "Create new Input/Output column?" - answer Yes.
 
Press enter and you will open the Edit Grid dialog again.
Enter "0" in the Value edit box and then tab three times.
Enter "Magenta" in the Input/Output column edit box.
Click the Output and the Bool radio buttons and then press OK.
The first training example "Pair 1" is now complete along with all the inputs and outputs.
Two more training examples need to be created called "Pair 2" and "Pair 3". 
Use the arrow keys to move to the Grid location below the 1.0000 in the "Red" column.
 
Press the enter key and you will be asked "Create new Example row?" - answer Yes.
 
Press enter again and you will open the Edit Grid dialog.
In the Input/Output column the name "Red" and the type Input are already in the Edit Grid dialog. 
Enter the value "0" and example row name "Pair 2" then press OK.
Move to each Input/Output column in turn and press the enter key.
Enter the following values followed by OK.
Input column "Green" enter the value "1"
Input column "Blue" enter the value "1"
Output column "Yellow" enter the value "0"
Output column "Cyan" enter the value "1"
Output column "Magenta" enter the value "0"
 
Repeat the process again for "Pair 3" but this time use the following values.
Input column "Red" enter the value "1"
Input column "Green" enter the value "0"
Input column "Blue" enter the value "1"
Output column "Yellow" enter the value "0"
Output column "Cyan" enter the value "0"
Output column "Magenta" enter the value "1"
 
You now have all the data that is required to create and train the neural network.
 
Press the save toolbar button or use the File > Save menu command to save the Grid before continuing.  Call it "Network".  The name could be anything but this exercise assumes it will be "Network".
 
To create the neural network press the Grow new network toolbar button or use the Action > New Network menu command.  If the toolbar button is not enabled make sure that you have set the first three Input/Output columns to Input and the last three Input/Output columns to Output.
 
This will open the "New Network" dialog.
Check Grow layer number 1 and press OK.
If you get a "Generating new network will reset learning." warning message answer Yes.
The neural network will be produced from the data you entered into the Grid. 
 
Answer Yes to the message "Do you want to set the controls?".
 
Check Optimize for both Learning Rate and Momentum and then press OK.
Answer Yes if you get the "Optimizing controls will reset learning." warning message.
The controls will be set and the neural network will be ready to learn.
 
Answer Yes to the message "Do you want Network.tvq to start learning?".
 
Press the View network toolbar button or use the View > Network menu command to see the new neural network.
 
Press the View learning graph toolbar button or use the View > Graph > Learning Progress menu command to see how the error reduced to the target level.
 
Press the Query network toolbar button or use the Query > Query menu command to open the Query dialog.
 
Press the Add Query button and then answer OK to the Example Presets dialog.  An example named "Query" with unknown values will be generated and selected.
 
Select a name or value from the Input lists and press the Max button.  Select another name or value from the Input lists and press the Max button.  Select the last name or value from the Input lists and press the Min button.
Notice that the correct secondary color in the Output Names list is set to "true".
Select a name from the Output lists and press the Seek High button and then the Start/Stop Cycle button.  The seek cycle will stop automatically.
Notice that the correct pair of primary colors have the values set to 1.0000 in the Inputs list.
Press the Close button.
 
Press the View grid toolbar button or use use the View > Grid menu command to return to the Grid view.
 
Notice that the example named "Query" has been added to the Grid.  This example can be edited using the same Edit dialog you used to produce the Training examples.  The Grid will be updated to show the edited values and the results. 
 
Set any pair of primary colors to 1 and notice that the corresponding secondary color is set to "true".
 
You have now used all the basic functions in EasyNN-plus.
 
You should have no difficulty converting the neural network to produce secondary pigment colors from the primary pigments.  You could then try to modify the pigments network to produce a "Black" output when all three primary pigment inputs are present and a "White" output when all three are absent.
 
 

Created with help of DrExplain