#!/bin/sh

# This is the recurrent network (small, scalable)
echo "Learning (ar2)...1000 epochs"
time ar2 -l -a 0.1 -i 0.0 -d rand_train.df -I 549000 -s 40000 -N -A -F ar2

echo "Testing ar2 on training data..."
ar2 ar2.save -d train.df -E -p | tee ar2.train.log

echo "Testing ar2 on testing data..."
ar2 ar2.save -d test.df -E -p | tee ar2.test.log

# This is the feedforward network (larger, less scalable)
echo "Learning (ff)...1000 epochs"
time ff -l -a 0.1 -i 0.0 -d rand_train.df -I 549000 -s 40000 -N -A -F ff

echo "Testing ff on training data..."
ff ff.save -d train.df -E -p | tee ff.train.log

echo "Testing ff on testing data..."
ff ff.save -d test.df -E -p | tee 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

