addNet read -i 10 -t 5 CONTINUOUS #Add the unit groups (layers) addGroup word 22 INPUT addGroup hidden 6 addGroup spelling 9 OUTPUT #Connect the groups connectGroups word hidden -m 0 -r 0.05 connectGroups hidden spelling -bidirectional connectGroups hidden hidden connectGroups spelling spelling #plot the network in the unit viewer autoPlot 3 #Set the learning rate setObj learningRate 0.01 #Set the number of training updates setObj numUpdates 5000 #Set the criterion to move from event to event #during training (ie model will move to #next event when all output units are within #0.2 of their target values setObj trainGroupCrit 0.2 #Set the same criterion for testing the model setObj testGroupCrit 0.2 #Load example set for training and testing loadExamples read.ex -set train -exmode PER loadExamples read.ex -set test -exmode ORD #Load additional procedures for writing data source my_procs.tcl