#!/bin/sh

# This reads from stdin the backprop data files
# from the MIGRAINES interface, converts them to
# Mathematica lists (am2math) and plots them.

# NOTE: Nothing may happen until you execute 'pclose'
#       in the MIGRAINES interface (the data gets buffered)

MATH=/usr/local/mathematica2.0/math

am2math -s | sed 's/{/ListPlot\[{/' |  sed 's/}/}, PlotJoined -> True\]/' | $MATH





