#!/bin/bash #usages: nntest stem # -where stem indicates the set of train/test sets to analyze # -output is sent to stem.out outFile=$1.out rm $outFile for trainFile in $1*train.data do testFile=${trainFile/"train.data"/"-test.data"} #outFile=${trainFile/"train.data"/"-anom.out"} test_era 100 150 $trainFile $testFile >> $outFile echo $trainFile $testFile done