heart-nom-rule.csv loader 1 28 268 ./data/heart-nom-rule.csv Ariane 1 1 note 2 100 151 encode the missing values with new items outputs also the col dictionary returns the max non-missing item mv encode macro-operator 3 163 258 1 2 filename 2 334 137 ./script/mv-code.awk false mv detection system 3 230 218 awk -F, $p $i > $o 1 1 1 sort system 4 313 261 sort -k1,1n $i > $o 1 1 mv-code system 5 375 207 awk -F, -f $p0 $i $p1 > $o 2 2 1 max item system 6 230 67 awk -F, $p $i > $o 1 1 1 setstatus setstatus 7 600 132 shell 1 setstatus setstatus.sh 2 159 101 shell 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 wc -l wc -l 8 625 251 shell 1 wc -l wc -l system 2 121 50 wc -l < $i > $o 1 1 setstatus setstatus 3 223 41 shell 1 setstatus setstatus.sh 2 159 101 shell 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 0 InSlotParameter 0 3 OutSlotResult 0 0 InSlotParameter 0 3 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 3 InSlotImage 0 2 OutSlotImage 0 shift system 9 611 326 awk $p > $o 3 1 0 InSlotImage 0 5 OutSlotImage 0 0 InSlotImage 1 9 OutSlotImage 0 0 InSlotImage 0 5 OutSlotImage 0 0 InSlotImage 1 9 OutSlotImage 0 0 InSlotParameter 0 7 OutSlotResult 0 0 InSlotParameter 0 7 OutSlotResult 0 3 InSlotImage 0 0 OutSlotImage 0 3 InSlotParameter 0 '{for(i=1;i<=NF;i++)if($i=="?")mv[i]=1}END{for(i in mv)print i}' 4 InSlotImage 0 3 OutSlotImage 0 5 InSlotImage 0 0 OutSlotImage 0 true 0 15 86 1 187 86 2 187 253 3 374 253 5 InSlotImage 1 4 OutSlotImage 0 5 InSlotParameter 0 2 OutSlotResult 0 5 InSlotParameter 1 7 OutSlotResult 0 6 InSlotImage 0 0 OutSlotImage 0 6 InSlotParameter 0 '{if($NF!="?" && $NF>max)max=$NF}END{print max}' 7 InSlotImage 0 6 OutSlotImage 0 8 InSlotImage 0 4 OutSlotImage 0 9 InSlotParameter 0 'BEGIN{for(i=ARGV[1]+1;i<=ARGV[1]+ARGV[2];i++)print i}' 9 InSlotParameter 1 7 OutSlotResult 0 9 InSlotParameter 2 8 OutSlotResult 0 delta constant 4 422 77 0 false minsup constant 5 404 16 10 false for 6 384 245 3 5 1 sed system 2 206 295 sed 's/:.*//' $i > $o 1 1 mtsminer system 3 104 283 mtsminer $p 1000 $i > $o 1 3 1 extension system 4 303 295 extension $i > $o 2 1 awk system 5 135 64 awk $p0 $i $p1 > $o 1 2 1 setstatus setstatus 6 199 66 shell 1 setstatus setstatus.sh 2 159 101 shell 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 cat system 7 751 96 cat $i > $o 2 1 add target system 8 415 294 awk $p0 $i $p1 > $o 1 2 1 0 InSlotImage 0 7 OutSlotImage 0 0 InSlotImage 1 0 OutSlotImage 0 0 InSlotImage 2 0 OutSlotImage 1 0 InSlotImage 3 7 OutSlotImage 0 0 InSlotImage 0 7 OutSlotImage 0 0 InSlotImage 1 0 OutSlotImage 0 0 InSlotImage 2 0 OutSlotImage 1 0 InSlotImage 3 7 OutSlotImage 0 0 InSlotParameter 0 4 OutSlotResult 0 0 InSlotParameter 0 4 OutSlotResult 0 2 InSlotImage 0 3 OutSlotImage 0 3 InSlotImage 0 0 OutSlotImage 0 3 InSlotParameter 0 0 OutSlotResult 1 3 InSlotParameter 1 0 OutSlotResult 2 true 0 126 12 1 126 71 2 126 71 3 126 283 3 InSlotParameter 2 6 OutSlotResult 0 4 InSlotImage 0 2 OutSlotImage 0 4 InSlotImage 1 0 OutSlotImage 0 true 0 15 86 1 86 86 2 86 352 3 302 352 5 InSlotImage 0 0 OutSlotImage 1 5 InSlotParameter 0 'BEGIN{line=ARGV[2];ARGC--}NR==line{print;exit}' 5 InSlotParameter 1 0 OutSlotResult 0 6 InSlotImage 0 5 OutSlotImage 0 7 InSlotImage 0 0 OutSlotImage 2 7 InSlotImage 1 8 OutSlotImage 0 8 InSlotImage 0 4 OutSlotImage 0 8 InSlotParameter 0 'BEGIN{target=ARGV[2];ARGC--}{print target " : " $0}' 8 InSlotParameter 1 6 OutSlotResult 0 touch touch 7 268 281 shell 1 touch echo -n eval101 2 155 155 eval 1 1 0 InSlotImage 0 2 OutSlotImage 0 0 InSlotImage 0 2 OutSlotImage 0 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotParameter 0 echo -n wc -l wc -l 8 397 158 shell 1 wc -l wc -l system 2 121 50 wc -l < $i > $o 1 1 setstatus setstatus 3 223 41 shell 1 setstatus setstatus.sh 2 159 101 shell 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 0 InSlotParameter 0 3 OutSlotResult 0 0 InSlotParameter 0 3 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 3 InSlotImage 0 2 OutSlotImage 0 mapper system 9 484 279 awk $p $i > $o 1 1 1 sort system 10 530 291 sort -k1,1n $i > $o 1 1 header system 11 579 148 awk $p $i > $o 1 1 1 2 cols system 12 621 148 awk $p $i > $o 1 1 1 sortitem system 13 314 269 sortitem $i > $o 1 1 note 14 353 360 compute the explanations wc -l wc -l 15 677 149 shell 1 wc -l wc -l system 2 121 50 wc -l < $i > $o 1 1 setstatus setstatus 3 223 41 shell 1 setstatus setstatus.sh 2 159 101 shell 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 0 InSlotParameter 0 3 OutSlotResult 0 0 InSlotParameter 0 3 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 3 InSlotImage 0 2 OutSlotImage 0 for 16 673 256 3 3 1 iterate system 2 183 69 awk $p0 $i $p1 > $o 1 2 1 setstatus setstatus 3 268 71 shell 1 setstatus setstatus.sh 2 159 101 shell 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 part system 4 278 175 awk $p0 $i $p1 > $o 1 2 1 page rank system 5 388 187 pagerank $i > $o 1 1 for 6 466 269 2 3 1 impute system 2 214 123 awk $p0 $i $p1 > $o 1 2 1 awk system 3 93 29 awk $p0 $i $p1 > $o 1 2 1 setstatus setstatus 4 157 31 shell 1 setstatus setstatus.sh 2 159 101 shell 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 0 InSlotImage 0 2 OutSlotImage 0 0 InSlotImage 1 2 OutSlotImage 0 0 InSlotImage 2 0 OutSlotImage 1 0 InSlotImage 0 2 OutSlotImage 0 0 InSlotImage 1 2 OutSlotImage 0 0 InSlotImage 2 0 OutSlotImage 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 2 InSlotParameter 0 'BEGIN{line=ARGV[2];mv=ARGV[4];explanation=ARGV[6];ARGC=2}NR==line{for(i=1;i<=NF;i++)if($i==mv)printf("%d ",explanation);else printf("%d ",$i);printf("\n");next}{print}' 2 InSlotParameter 1 4 OutSlotResult 0 3 InSlotImage 0 0 OutSlotImage 1 3 InSlotParameter 0 'BEGIN{line=ARGV[2];ARGC--}NR==line{print;exit}' 3 InSlotParameter 1 0 OutSlotResult 0 4 InSlotImage 0 3 OutSlotImage 0 wc -l wc -l 7 470 177 shell 1 wc -l wc -l system 2 121 50 wc -l < $i > $o 1 1 setstatus setstatus 3 223 41 shell 1 setstatus setstatus.sh 2 159 101 shell 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 0 InSlotParameter 0 3 OutSlotResult 0 0 InSlotParameter 0 3 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 3 InSlotImage 0 2 OutSlotImage 0 note 8 447 121 impute the mv 0 InSlotImage 0 6 OutSlotImage 0 0 InSlotImage 1 0 OutSlotImage 0 0 InSlotImage 2 0 OutSlotImage 1 0 InSlotImage 3 6 OutSlotImage 0 0 InSlotImage 0 6 OutSlotImage 0 0 InSlotImage 1 0 OutSlotImage 0 0 InSlotImage 2 0 OutSlotImage 1 0 InSlotImage 3 6 OutSlotImage 0 0 InSlotParameter 0 6 OutSlotResult 0 0 InSlotParameter 0 6 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 2 InSlotParameter 0 'BEGIN{line=ARGV[2];ARGC--}NR==line{print;exit}' 2 InSlotParameter 1 0 OutSlotResult 0 3 InSlotImage 0 2 OutSlotImage 0 4 InSlotImage 0 0 OutSlotImage 1 4 InSlotParameter 0 'BEGIN{first=ARGV[2];last=ARGV[3];ARGC-=2}first<=NR && NR<last{print}' 4 InSlotParameter 1 3 OutSlotResult 0 5 InSlotImage 0 4 OutSlotImage 0 6 InSlotImage 0 0 OutSlotImage 2 6 InSlotImage 1 5 OutSlotImage 0 6 InSlotParameter 0 1 6 InSlotParameter 1 7 OutSlotResult 0 6 InSlotParameter 2 1 7 InSlotImage 0 5 OutSlotImage 0 note 17 606 369 iterate over the lines and replace mv with their explanations head -1 system 18 746 233 head -1 $i > $o 1 1 setstatus setstatus 19 808 223 shell 1 setstatus setstatus.sh 2 159 101 shell 1 0 InSlotParameter 0 2 OutSlotResult 0 0 InSlotParameter 0 2 OutSlotResult 0 2 InSlotImage 0 0 OutSlotImage 0 rename system 20 818 290 awk $p0 $i $p1 > $o 1 2 1 note 21 787 376 renaming the alea mv to ? heart-nom-rule-rule.csv saver 22 1203 292 ./data/heart-nom-rule-rule.csv 1 1 1 heart-nom.col loader 23 33 316 ./data/heart-nom.col Ariane 1 1 dictionary system 24 949 251 dictionary $i > $o 2 1 dictionary system 25 215 375 dictionary $i > $o 2 1 note 26 964 398 generating new items for the mv imputations awk system 27 1035 291 awk -f $p $i > $o 3 1 1 filename 28 951 172 ./script/segmentation.awk false toCSV system 29 1121 289 sed $p $i > $o 1 1 1 sed system 30 1141 379 sed $p $i > $o 1 1 1 heart-nom-rule-rule.bin saver 31 1203 380 ./data/heart-nom-rule-rule.bin 1 1 1 1 InSlotParameter 0 3 InSlotImage 0 1 OutSlotImage 0 6 InSlotImage 0 13 OutSlotImage 0 6 InSlotImage 1 3 OutSlotImage 1 6 InSlotImage 2 7 OutSlotImage 0 6 InSlotParameter 0 1 6 InSlotParameter 1 8 OutSlotResult 0 6 InSlotParameter 2 1 6 InSlotParameter 3 5 OutSlotResult 0 6 InSlotParameter 4 4 OutSlotResult 0 8 InSlotImage 0 3 OutSlotImage 1 9 InSlotImage 0 6 OutSlotImage 0 9 InSlotParameter 0 'BEGIN{FS=" : "}{l=split($3,tab," ");for(i=1;i<=l;i++)print tab[i] " : " $1 " : " l " : " $2}' 10 InSlotImage 0 9 OutSlotImage 0 11 InSlotImage 0 10 OutSlotImage 0 11 InSlotParameter 0 '{if($1!=line){line=$1;print NR}}END{print NR+1}' 12 InSlotImage 0 11 OutSlotImage 0 12 InSlotParameter 0 'NR==1{first=$1}NR!=1{print first,$1;first=$1}' 13 InSlotImage 0 3 OutSlotImage 0 15 InSlotImage 0 12 OutSlotImage 0 16 InSlotImage 0 12 OutSlotImage 0 16 InSlotImage 1 10 OutSlotImage 0 true 0 561 337 1 615 337 2 615 327 3 672 327 16 InSlotImage 2 3 OutSlotImage 0 true 0 235 304 1 322 304 2 322 338 3 672 338 16 InSlotParameter 0 1 16 InSlotParameter 1 15 OutSlotResult 0 16 InSlotParameter 2 1 18 InSlotImage 0 3 OutSlotImage 1 true 0 235 315 1 250 315 2 250 279 3 745 279 19 InSlotImage 0 18 OutSlotImage 0 20 InSlotImage 0 16 OutSlotImage 0 20 InSlotParameter 0 'BEGIN{new=ARGV[2];ARGC--}{printf("%d",$1);for(i=2;i<=NF;i++)if($i>new)printf(",?");else printf(",%d",$i);printf("\n");}' 20 InSlotParameter 1 19 OutSlotResult 0 22 InSlotImage 0 29 OutSlotImage 0 22 InSlotParameter 0 23 InSlotParameter 0 24 InSlotImage 0 20 OutSlotImage 0 24 InSlotImage 1 23 OutSlotImage 0 25 InSlotImage 0 1 OutSlotImage 0 25 InSlotImage 1 23 OutSlotImage 0 27 InSlotImage 0 25 OutSlotImage 0 27 InSlotImage 1 24 OutSlotImage 0 27 InSlotImage 2 20 OutSlotImage 0 27 InSlotParameter 0 28 OutSlotResult 0 29 InSlotImage 0 27 OutSlotImage 0 29 InSlotParameter 0 's/ /,/g;s/,$//' 30 InSlotImage 0 22 OutSlotImage 0 30 InSlotParameter 0 's/,/ /g' 31 InSlotImage 0 30 OutSlotImage 0 31 InSlotParameter 0