HpBandSter icon indicating copy to clipboard operation
HpBandSter copied to clipboard

The bash file from Sphinx documentation of hpbandster used in example 4 does not work properly.

Open gmatilde opened this issue 7 years ago • 2 comments

# submit via qsub -t 1-4 -q test_core.q example_4_cluster_submit_me.sh

#$ -cwd
#$ -o $JOB_ID-$TASK_ID.o
#$ -e $JOB_ID-$TASK_ID.e

# enter the virtual environment
source ~sfalkner/virtualenvs/HpBandSter_tests/bin/activate


if [ $SGE_TASK_ID -eq 1]
   then python3 example_4_cluster.py --run_id $JOB_ID --nic_name eth0 --working_dir .
else
   python3 example_4_cluster.py --run_id $JOB_ID --nic_name eth0  --working_dir . --worker
fi

gmatilde avatar Oct 26 '18 11:10 gmatilde

Hey Matilde, I assume, that the jobs fail because they cannot source the virtual environment, as this is hard coded to my setup. It also has the nic_names for our cluster hard coded in, so it isn't as general as it could be. Do you think it would be enough to emphasize in the documentation that this script is only meant as a reference, but won't actually work for anybody out of the box?

sfalkner avatar Oct 30 '18 22:10 sfalkner

Hey Stefan,

of course I was not using your virtual environment but the one for my setup, so that can not be the problem. Indeed the jobs were failing because no worker could be found and not because it could not source the virtual environment. I think it is quite clear that the documentation is just a reference and has to be adapted to your setup, but adding a warning statement does not hurt in general.

gmatilde avatar Oct 31 '18 09:10 gmatilde