#! /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. # Create tmp directory if necessary if [ ! -d /tmp/$USER ] then mkdir "/tmp/$USER" fi cd .. Train="/tmp/$USER/nasa93_all.csv.numeric" Test="/tmp/$USER/nasa93_all.csv.numeric" # Preprocess the data echo "Preprocessing nasa93.csv" gawk -f ../baker_lc/convertcsv.awk Method="COC81" Style="precise" "../data/nasa93.csv" > $Train echo "Preprocessed data stored at "$Train # Run cocomost ./cocomost $Train $Test