#! /bin/bash # Example of running cocomost: simply give it the train and test file names. # It expects to have data preprocessed like this. # This is simply an example so I'm using the same file twice, but please try with others. MyRoot="../../../trunk/" cd .. if [ ! -d /tmp/$USER ] then mkdir /tmp/$USER fi Train="/tmp/$USER/nasa93_all.csv.numeric" Test="/tmp/$USER/nasa93_all.csv.numeric" # Preprocess the data echo "Preprocessing nasa93.csv" gawk -f $MyRoot"baker_lc/convertcsv.awk" Method="COC81" Style="precise" $MyRoot"data/nasa93.csv" > $Train echo "Preprocessed data stored at "$Train # Run cocomost ./cocomost $Train $Test