#! /bin/bash Learners="cocomost LC committee oversample_3_50" DataSets="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" #DataSets="coc81_all nasa93_all" cp nfoldCocomostExperimentSep28.csv /tmp/mydata.csv cat committee_Oct11.csv >> /tmp/mydata.csv cat committee_boost_Oct16.out >> /tmp/mydata.csv #Make the temporary files for learner in $Learners do for data in $DataSets do #grep $learner nfoldCocomostExperimentSep28.csv | grep $data | gawk -F, '{print $NF}' | sort -n | gawk '{print NR,$1}' > "/tmp/mre_"$learner"_"$data".tmp" grep $learner /tmp/mydata.csv | grep $data | gawk -F, '{print $NF}' | sort -n | gawk '{print NR,$1}' > "/tmp/mre_"$learner"_"$data".tmp" done done # This part assumes Learners="cocomost LC" #data=nasa93_center_2 for data in $DataSets do #OutFile="mre_"$data".pdf" #OutFile="static_mre_"$data".pdf" OutFile="static_mre_"$data".png" Input1="/tmp/mre_cocomost_"$data".tmp" Input2="/tmp/mre_LC_"$data".tmp" Input3="/tmp/mre_committee_"$data".tmp" Input4="/tmp/mre_oversample_3_50_"$data".tmp" gnuplot<