#!/bin/sh

echo 'This is the recurrent network (small, scalable, slower learning)'
echo 'Learning (ar2)...2000 epochs'
time ar2 -l -a 0.25 -i 0.1 -d rand_train.df -I 1098000 -s 100000 -N -A -F ar2

echo 'Testing ar2 on training data => ar2.train.log'
ar2 ar2.save -d train.df -E -p > ar2.train.log

echo 'Testing ar2 on testing data => ar2.test.log'
ar2 ar2.save -d test.df -E -p > ar2.test.log

echo 'This is the feedforward network (larger, less scalable, faster learning)'
echo 'Learning (ff)...2000 epochs'
time ff -l -a 0.25 -i 0.1 -d rand_train.df -I 109800 -s 100000 -N -A -F ff

echo 'Testing ff on training data => ff.train.log'
ff ff.save -d train.df -E -p > ff.train.log

echo 'Testing ff on testing data => ff.test.log'
ff ff.save -d test.df -E -p > ff.test.log

echo Testing ar2 on training data
ar2 ar2.save -d train.df < train.cmd
gnuplot sequence.gnu

echo Testing ff on training data
ff ff.save -d train.df < train.cmd
gnuplot sequence.gnu

echo Testing ar2 on testing data
ar2 ar2.save -d test.df < test.cmd
gnuplot sequence.gnu

echo Testing ff on testing data
ff ff.save -d test.df < test.cmd
gnuplot sequence.gnu

