#! /bin/bash #FILENAME,I,LEARNER,ESTIMATE,ACTUAL,MRE Data="../results_march4.csv" #Data="../results3.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" Files="_" #IterationsSet="5 10 15 20 25 30" #AmountSet="0.05 0.10 0.15 0.20 0.25 0.30" 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" { for File in $Files do echo "#File,Learner,MMRE,Pred30,SdMre" for Iterations in $IterationsSet do # for Amount in $AmountSet # do learner="Boost:"$Iterations echo -n $File","$learner"," grep $File $Data | grep $learner | gawk -f analyzer.awk # done done done } > "analysis_boost_iterations.csv" { for File in $Files do echo "#File,Learner,MMRE,Pred30,SdMre" # for Iterations in $IterationsSet # do for Amount in $AmountSet do learner="Oversample:"$Amount echo -n $File","$learner"," grep $File $Data | grep $learner | gawk -f analyzer.awk done # done done } > "analysis_boost_amount.csv" { for File in $Files do echo "#File,Learner,MMRE,Pred30,SdMre" learner="LC_Boost" echo -n $File","$learner"," grep $File $Data | grep $learner | gawk -f analyzer.awk learner="Cocomin_Boost" echo -n $File","$learner"," grep $File $Data | grep $learner | gawk -f analyzer.awk done } > "analysis_boost_learner.csv"