# Example use: # this probably isn't current, note to self: check # gawk -f simpleLCdisplay.awk Name=$5 Train="?" Test=$TestSets Method=$2 Numbers=$3 Learn=$6 /tmp/effort/stats.tmp BEGIN { FS = ","; # Initialize the field separator. OFS = FS; Name = "?"; Train = -1; Test = -1; Method = "?" Numbers = "precise"; Subset = "?"; Learn = "LC"; Pred30 = -1; Mmre = -1; Sd = -1; Columns = "default"; AvgCorr = -1; } NR==1 { Mmre = $1; Sd = $2; Pred30 = $3; AvgCorr = $4; } END { #print AvgCorr "\t" Name "\t" Train "\t" Test "\t" Method "\t" Numbers "\t" Subset "\t" Learn "\t" Pred30 "\t\t" Mmre "\t\t" Sd "\t\t" Columns #print Columns,AvgCorr,"variance","entropy",Mmre,Sd,Pred30 #print Columns,AvgCorr,"variance","entropy" print Mmre,Sd,Pred30,Columns }