#!/bin/sh

# performance (just go forward)
echo "Performance Test..."
time encode -d encode.df -f 10000

# learn
echo ""
echo "Learn..."
time encode -l -t 500 8 0.3 -d encode.df

# test
echo "Test..."
encode Network.Finished -d encode.df -E -P 0.9

# dump weights'n stuff
encode Network.Finished -AsciiDump

# Let's dump the hidden layer values for plotting
encode -d encode.df < encode.cmd

# plot it with gnuplot3.0
echo This may not work if you do not have gnuplot 3.0
gnuplot encode.gnu