diff options
| author | ziejd2 | 2021-10-11 16:00:02 -0500 |
|---|---|---|
| committer | ziejd2 | 2021-10-11 16:00:02 -0500 |
| commit | 566a4de3fcc9b90da036dbf385044319c11a2b6a (patch) | |
| tree | 15c23be0643f41128f11cf9bb378ed505e259a6b /sourcecodes/k-best/src/data2netk_poster.sh | |
| parent | a20784bad5cfa214ce23d16695d0064571bae9c3 (diff) | |
| parent | 73ba58868451b5fc6611e1feaa9b63f17b6cd19d (diff) | |
| download | BNW-566a4de3fcc9b90da036dbf385044319c11a2b6a.tar.gz | |
Resolved merge conflict
Diffstat (limited to 'sourcecodes/k-best/src/data2netk_poster.sh')
| -rw-r--r-- | sourcecodes/k-best/src/data2netk_poster.sh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/sourcecodes/k-best/src/data2netk_poster.sh b/sourcecodes/k-best/src/data2netk_poster.sh deleted file mode 100644 index 6b3a34ca..00000000 --- a/sourcecodes/k-best/src/data2netk_poster.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -binpath=`dirname $0` - -if [ $# -ne 4 ]; then - echo Usage: data2net.sh datafile resultdir k 1>&2 - exit 1 -fi - -datafile=$1; shift -#score=$1; shift -rdir=$1; shift -k=$1;shift -n=$1;shift - -nof_vars=`head -1 $datafile|wc -w` -echo "The number of variables is $nof_vars." - -#HR: -if [ "$n" -eq 0 ] -then - maxindegree=`expr $nof_vars - 1` -else - maxindegree=$n -fi - -#maxindegree=`expr $nof_vars - 1` -echo "maxindegree is $maxindegree." - -#HR: -nof_instances=`cat $datafile | wc -l` -#delete the header and type -nof_instances=`expr $nof_instances - 2` -echo "The number of instances is $nof_instances." - - -START=$(date +%s%N) -$binpath/get_kbest_parents $nof_vars ${rdir} $k -#HR -END=$(date +%s%N) -#DIFF=$(( $END - $START )) -DIFF2=$(( $END - $START )) -echo "get_kbest_parents is done." -echo "get_kbest_parents took $DIFF2 n-seconds." - -START=$(date +%s%N) -$binpath/get_kbest_nets $nof_vars ${rdir} $k -#HR -END=$(date +%s%N) -#DIFF=$(( $END - $START )) -DIFF3=$(( $END - $START )) -echo "get_kbest_nets is done." -echo "get_kbest_nets took $DIFF3 n-seconds." - -DIFF=`expr $DIFF1 + $DIFF2 + $DIFF3` -echo "The total process took $DIFF n-seconds." |
