#! /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. # IMPORTANT - fastCocomin NEEDS TO BE UPDATED TO USE SCALE FACTORS # Create tmp directory if necessary if [ ! -d /tmp/$USER ] then mkdir "/tmp/$USER" fi cd .. g++ -Wall fastCocominExperimentDebug.cpp -o fastCocominExperimentDebug MyRoot="../../../trunk/" Train="/tmp/$USER/coc81_all.csv.numeric" Test="/tmp/$USER/coc81_all.csv.numeric" # Preprocess the data #echo "Preprocessing nasa93.csv" gawk -f $MyRoot"baker_lc/convertcsv.awk" Method="COC81" Style="precise" $MyRoot"data/coc81.csv" > $Train #echo "Preprocessed data stored at "$Train Base=$(basename $Train) ./rankAttributes $Train ./fastCocominExperimentDebug $Train $Base