#! /bin/bash Path=$1 Filename=$2 #Output looks like: #FILENAME,I,LEARNER,TIME,SUBSET,ESTIMATE,ACTUAL,MRE ConvertedFile=$Path"/data/"$Filename".numeric" Iterations=$(gawk 'END{print NR}' $ConvertedFile) for ((i=1;i<=$Iterations;i++)) do TestFile=$Path"/data/test/"$Filename".numeric."$i TrainFile=$Path"/data/train/"$Filename".numeric."$i gawk -f separate.awk -v Target=$i -v TrainFile=$TrainFile -v TestFile=$TestFile $ConvertedFile # Committee StartTime=$(./seconds) SeedFile=$Path"/log/"$Filename".committee."$i echo -n $Filename","$i",committee_boost_3_50," Result=$(./committee $TrainFile $TestFile $SeedFile) EndTime=$(./seconds) ((SpentTime=EndTime-StartTime)) echo -n $SpentTime",N/A," echo $Result # Add a boosted committee here, or change committee and simply run this again. It's comparable because of nfold. done