Skip to content
Permalink
ffcdac3187
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 52 lines (43 sloc) 1.41 KB
#!/bin/bash
if [ "$DATA_DIR" = "" ] ; then
echo "Define the environemnt variable DATA_DIR, which contains data files."
exit 1
fi
if [ ! -d "$DATA_DIR" ] ; then
echo "DATA_DIR='$DATA_DIR' is not a directory"
exit 1
fi
RecallList="0.99 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2"
BucketSize="50"
for K in 1 ; do
../../TuneOneMeth.sh "$RecallList" $DATA_DIR/unif64.txt l2 64 9 9 $K ResultsL2/OutFile.unif64.$K $BucketSize
if [ "$?" != "0" ] ; then
echo "Tunning failed!"
exit 1
fi
../../TuneOneMeth.sh "$RecallList" $DATA_DIR/colors112.txt l2 112 9 9 $K ResultsL2/OutFile.colors112.$K $BucketSize
if [ "$?" != "0" ] ; then
echo "Tunning failed!"
exit 1
fi
../../TuneOneMeth.sh "$RecallList" $DATA_DIR/final128.txt l2 128 9 9 $K ResultsL2/OutFile.final128.$K $BucketSize
if [ "$?" != "0" ] ; then
echo "Tunning failed!"
exit 1
fi
../../TuneOneMeth.sh "$RecallList" $DATA_DIR/sig10k.txt l2 1111 9 9 $K ResultsL2/OutFile.sig10k.$K $BucketSize
if [ "$?" != "0" ] ; then
echo "Tunning failed!"
exit 1
fi
../../TuneOneMeth.sh "$RecallList" $DATA_DIR/final256.txt l2 256 9 9 $K ResultsL2/OutFile.final256.$K $BucketSize
if [ "$?" != "0" ] ; then
echo "Tunning failed!"
exit 1
fi
../../TuneOneMeth.sh "$RecallList" $DATA_DIR/final32.txt l2 32 9 9 $K ResultsL2/OutFile.final32.$K $BucketSize
if [ "$?" != "0" ] ; then
echo "Tunning failed!"
exit 1
fi
done