#!/bin/bash # $1 - The stem of the arff file that contains the data. f="../c45/changes/Data/arffData/mdp/"$1".arff"; b=10; run=1; ../c45/changes/Src/play/rand $f | ../c45/changes/Src/play/xval f=$1 bins=$b for ((i=1;i<=$b;i++)); do for f in train test; do file=$1"-"$i"-"$f".arff"; ./lognums $file > xxx; mv xxx $file; done done for ((i=1;i<=$b;i++)); do train=$1"-"$i"-train.arff"; test=$1"-"$i"-test.arff"; #w=`./weka $train $test | ./abcd` which=`./which -t $train -T $test -rep 1 -score effort -ssize -1 -imp .2 -picks 2000 -check 200 -loc 0 -bins 10 -stat` #echo $run","$w; #","$which; #echo $w; #","$which; echo $which; run=$(($run+1)); done rm -f *.arff;