#!/bin/sh

# performance (just go forward)
echo "Performance Test..."
time iris -d train.df -f 100000

# learn
echo ""
echo "Learn..."
time iris -l -d train.df -a 0.001 -N -s 100000 -I 1000000
 
# test
echo ""
echo "Test on training set..."
iris Network.save -d train.df -E -P 0.8

echo ""
echo "Test on testing set..."
iris Network.save -d test.df -E -P 0.8

# dump weights'n stuff
iris Network.save -AsciiDump

# produce files for plotting Hidden layer and Output space - train
iris -d train.df < iris.train.cmd

# plot with gnuplot 3.0
gnuplot iris.gnu

# produce files for plotting Hidden layer and Output space - test
iris -d test.df < iris.test.cmd

# plot with gnuplot 3.0
gnuplot iris.gnu

