#! /bin/bash # Example of running cocomin: 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 MyRoot="../../../trunk/" cd .. 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 cocomin ./cocomin $Train $Test