#! /bin/bash #FILENAME,I,LEARNER,SEARCH,HORIZON,RANKER,EVAL,ESTIMATE,ACTUAL,MRE,COST_DRIVERS Data="cocomin_experiment_1-15-07.csv" Files="coc81_all nasa93_all" #Files="coc81_all nasa93_all coc81_kind_min coc81_lang_ftn coc81_mode_e coc81_kind_max coc81_mode_org coc81_lang_mol nasa93_project_gro nasa93_cat2_missionplanning nasa93_cat2_avionicsmonitoring nasa93_mode_semidetached nasa93_project_sts nasa93_forg_g nasa93_center_5 nasa93_year_1975 nasa93_year_1980 nasa93_mode_embedded nasa93_center_2" SearchSet="forward backward both" HorizonSet="0 1 2 4 8 16" RankerSet="native cor_hi cor_lo var_hi var_lo ent_hi ent_lo" EvalSet="mmre sd(mre) pred30 corr" #echo "#File,Search,Horizon,Ranker,Eval,MMRE,Pred30,SdMre,AvgCostDrivers" #echo "#This output shows differences within each method (everything else is included)" #echo "#For example grepping on the SearchSet of forward, backward, or both but everything else is averaged in" { echo "#File,Method,MMRE,Pred30,SdMre,AvgCostDrivers" for File in $Files do for Search in $SearchSet do combo=","$Search"," echo -n $File","$Search"," grep $File $Data | grep $combo | gawk -f analyzer.awk done done } > "analysis/search.csv" { echo "#File,Method,MMRE,Pred30,SdMre,AvgCostDrivers" for File in $Files do for Horizon in $HorizonSet do combo=","$Horizon"," echo -n $File","$Horizon"," grep $File $Data | grep $combo | gawk -f analyzer.awk done done } > "analysis/horizon.csv" { echo "#File,Method,MMRE,Pred30,SdMre,AvgCostDrivers" for File in $Files do for Eval in $EvalSet do combo=","$Eval"," echo -n $File","$Eval"," grep $File $Data | grep $combo | gawk -f analyzer.awk done done } > "analysis/eval.csv" { echo "#File,Method,MMRE,Pred30,SdMre,AvgCostDrivers" for File in $Files do for Ranker in $RankerSet do combo=","$Ranker"," echo -n $File","$Ranker"," grep $File $Data | grep $combo | gawk -f analyzer.awk done done } > "analysis/ranker.csv"