#! /bin/bash #FILENAME,I,LEARNER,ESTIMATE,ACTUAL,MRE Data="../results4_march7.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" IterationsSet="5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100" AmountSet="0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45" 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"_Oversample:"$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"_Oversample:"$Amount echo -n $File","$learner"," grep $File $Data | grep $learner | gawk -f analyzer.awk done done done