#!/bin/sh


# Note: The data is Type1 files of IEEE single precision
# floats (32 bits) generated on a Sun workstation. This
# example MAY not run on your platform


echo "Big Network"

# performance (just go forward)
echo "Performance Test..."
time abcd/abcd -d characters.df -f 1000

# learn
echo ""
echo "Learn..."
time abcd/abcd -l -s 1000 -t 200 500 0.2 -d characters.df -F abcd

# test
echo "Test..."
abcd/abcd abcd.Finished -d characters.df -E -P 0.4

# produce files for plotting weights
abcd/abcd < abcd/abcd.cmd

# plot with gnuplot 3.0
gnuplot abcd/abcd.gnu

echo "Simple Network"

# performance (just go forward)
echo "Performance Test..."
time simple/simple -d characters.df -f 1000

# learn
echo ""
echo "Learn..."
time simple/simple -l -s 1000 -t 200 500 0.2 -d characters.df -F simple

# test
echo "Test..."
simple/simple simple.Finished -d characters.df -E -P 0.4

# produce files for plotting weights
simple/simple < simple/simple.cmd

# plot with gnuplot 3.0
gnuplot simple/simple.gnu