-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for v8.6 in addition to 9.0. For compatibility, print functio…
…n in analyze_wvector fixed. test_install script to perform test upon installation.
- Loading branch information
Showing
8 changed files
with
150 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
#!/bin/bash | ||
|
||
#Install CoMIK | ||
|
||
chmod +x mkl.py | ||
export PATH=".:$PATH" | ||
|
||
#Check dependenciespython -c "import modshogun" | ||
|
||
if python -c "import modshogun"; | ||
then | ||
echo "You can now run the test_install.sh script." | ||
else | ||
echo "You need to install SHOGUN. Once done, you can run the test_install.sh script." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
# script for execution of deployed applications | ||
# | ||
# Sets up the MATLAB Runtime environment for the current $ARCH and executes | ||
# the specified command. | ||
# | ||
exe_name=$0 | ||
exe_dir=`dirname "$0"` | ||
echo "------------------------------------------" | ||
if [ "x$1" = "x" ]; then | ||
echo Usage: | ||
echo $0 \<deployedMCRroot\> args | ||
else | ||
echo Setting up environment variables | ||
MCRROOT="$1" | ||
echo --- | ||
LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ; | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ; | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64; | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/opengl/lib/glnxa64; | ||
export LD_LIBRARY_PATH; | ||
echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH}; | ||
shift 1 | ||
args= | ||
while [ $# -gt 0 ]; do | ||
token=$1 | ||
args="${args} \"${token}\"" | ||
shift | ||
done | ||
eval "\"${exe_dir}/CoMIK_v86\"" $args | ||
fi | ||
exit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
# script for execution of deployed applications | ||
# | ||
# Sets up the MATLAB Runtime environment for the current $ARCH and executes | ||
# the specified command. | ||
# | ||
exe_name=$0 | ||
exe_dir=`dirname "$0"` | ||
echo "------------------------------------------" | ||
if [ "x$1" = "x" ]; then | ||
echo Usage: | ||
echo $0 \<deployedMCRroot\> args | ||
else | ||
echo Setting up environment variables | ||
MCRROOT="$1" | ||
echo --- | ||
LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ; | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ; | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64; | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/opengl/lib/glnxa64; | ||
export LD_LIBRARY_PATH; | ||
echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH}; | ||
shift 1 | ||
args= | ||
while [ $# -gt 0 ]; do | ||
token=$1 | ||
args="${args} \"${token}\"" | ||
shift | ||
done | ||
eval "\"${exe_dir}/CoMIK_v90\"" $args | ||
fi | ||
exit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
|
||
echo 'Preparing for testing ...' | ||
cp config-comik.txt config-comik-test.txt | ||
|
||
sed -i 's/OUTPUT_FOLDER=comik_run_simulated_dataset1/OUTPUT_FOLDER=test_comik_run_simulated_dataset1/g' config-comik-test.txt | ||
|
||
sed -i 's/NUMBER_OF_CLUSTERS=\[2 5 7]/NUMBER_OF_CLUSTERS=\[7\]/g' config-comik-test.txt | ||
sed -i 's/SIGMA_VALUES=10\.\^\[1\:1\:2\]/SIGMA_VALUES=10\.\^\[1\]/g' config-comik-test.txt | ||
sed -i 's/COST_VALUES=10\.\^\[-3\:1\:3\]/COST_VALUES=10\.\^\[1\]/g' config-comik-test.txt | ||
|
||
sed -i 's/NUMBER_OF_INNER_FOLDS=5/NUMBER_OF_INNER_FOLDS=2/g' config-comik-test.txt | ||
sed -i 's/NUMBER_OF_OUTER_FOLDS=5/NUMBER_OF_OUTER_FOLDS=3/g' config-comik-test.txt | ||
|
||
|
||
if [ "$1" = "executable" ] | ||
then | ||
echo "Only testing the executable ... this might take some time" | ||
if [ "$3" = "v86" ]; | ||
then | ||
if [ -f "run_CoMIK_v86.sh" ]; | ||
then | ||
./run_CoMIK_v86.sh $2 config-comik-test.txt | ||
fi | ||
elif [ "$3" = "v90" ]; | ||
then | ||
if [ -f "run_CoMIK_v90.sh" ]; | ||
then | ||
./run_CoMIK_v90.sh $2 config-comik-test.txt | ||
fi | ||
else | ||
echo 'No file to run.' | ||
fi | ||
elif [ "$1" = "matlab" ] | ||
then | ||
echo 'Only testing inside MATLAB ... this might take some time' | ||
matlab -nodesktop -nodisplay -nosplash -r "comik_wrapper('config-comik-test.txt'); exit;" | ||
else | ||
echo 'Testing both executable and from inside matlab ... this might take some time' | ||
fi | ||
|
||
if [ -d "$test_comik_run_simulated_dataset1"]; then | ||
rm -rf test_comik_run_simulated_dataset1/ | ||
rm config-comik-test.txt | ||
fi | ||
echo "Done." | ||
|
||
|