#! /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 "#File,Method,MMRE,Pred30,SdMre,AvgCostDrivers" for File in $Files do for Ranker in $RankerSet do combo=",1,"$Ranker"," echo -n $File",1-"$Ranker"," grep $File $Data | grep $combo | gawk -f analyzer.awk done done } > "analysis/ranker_with_horizon_1.csv" { echo "#File,Method,MMRE,Pred30,SdMre,AvgCostDrivers" for File in $Files do for Ranker in $RankerSet do combo=",0,"$Ranker"," echo -n $File",0-"$Ranker"," grep $File $Data | grep $combo | gawk -f analyzer.awk done done } > "analysis/ranker_with_horizon_0.csv"