#! /bin/bash #FILENAME,I,LEARNER,ESTIMATE,ACTUAL,MRE Data="../results.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" # use this to aggregate over all files Files="_" IterationsSet="5 10 15 20 25 30 35 40 45 50" AmountSet="0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95" echo "#File,Learner,MMRE,Pred30,SdMre" for File in $Files do # First LC strawman echo -n $File",LC," grep $File $Data | grep ",LC," | gawk -f analyzer.awk for Iterations in $IterationsSet do for Amount in $AmountSet do learner="LC_Boost:"$Iterations"_Subsample:"$Amount echo -n $File","$learner"," grep $File $Data | grep $learner | gawk -f analyzer.awk done done # Basic Cocomin echo -n $File",Cocomin," grep $File $Data | grep ",Cocomin," | gawk -f analyzer.awk for Iterations in $IterationsSet do for Amount in $AmountSet do learner="Cocomin_Boost:"$Iterations"_Subsample:"$Amount echo -n $File","$learner"," grep $File $Data | grep $learner | gawk -f analyzer.awk done done done