Open catevlog opened 1 year ago
The way to test that the python script is working correctly is to put the initial point coordinates (2 6 5 1 0 1 16 5 1 0 1 2 128 84 128 3 0.1 0.9 0.0005 0 0.2 1, that is, just the value, no "(" or ")") into a X0.txt file and run on the command line
python /mnt/c/Users/calessi/Desktop/HyperNomad_linux/src/blackbox/pytorch_bb.py MNIST X0.txt
it gives caterina99@pc0425:~$ python /mnt/c/Users/calessi/Desktop/HyperNomad_linux/src/blackbox/pytorch_bb.py MNIST /mnt/c/Users/calessi/Desktop/HyperNomad_linux/src/blackbox/X0.txt -88.310
I just saw in the log that when running HyperNomad you have the following message: "sh: 1: python: not found". This means the python interpreter is not found when running the command. But when running a single evaluation on the command line it works.
Maybe you can try to provide the full path to the python interpreter into HyperNomad parameter file.
For the example you tried, this can be done by adding
BB_EXE $/full/path/to/python /mnt/c/Users/calessi/Desktop/HyperNomad_linux/src/blackbox/pytorch_bb.py
in the file examples/mnist_x0.txt
If I try to use HyperNOMAD I have the following problem
caterina99@pc0425:/mnt/c/Users/calessi/Desktop/HyperNomad_linux/examples$ hypernomad.exe mnist_x0.txt
WARNING: hyperparameters explicitely set by name are superseded by settings done using X0, LOWER_BOUND and UPPER_BOUND.
BLOCKS OF HYPERPARAMETERS Each block has a head hyperparameters and possibly several groups of associated hyperameters.
Convolutionnal layers {
Head of block NUM_CON_LAYERS -> x0=2, lb=0, ub=100, is VARIABLE Multiple times associated hyperparameters: 2 groups Group #0 NUM_OUTPUT_LAYERS -> x0=6, lb=1, ub=1000, is VARIABLE KERNELS -> x0=5, lb=1, ub=20, is FIXED STRIDES -> x0=1, lb=1, ub=3, is VARIABLE PADDINGS -> x0=0, lb=0, ub=2, is VARIABLE POOLING_SIZE -> x0=1, lb=1, ub=5, is VARIABLE Group #1 NUM_OUTPUT_LAYERS -> x0=16, lb=1, ub=1000, is VARIABLE KERNELS -> x0=5, lb=1, ub=20, is FIXED STRIDES -> x0=1, lb=1, ub=3, is VARIABLE PADDINGS -> x0=0, lb=0, ub=2, is VARIABLE POOLING_SIZE -> x0=1, lb=1, ub=5, is VARIABLE }
Full layers {
Head of block NUM_FC_LAYERS -> x0=2, lb=0, ub=500, is VARIABLE Multiple times associated hyperparameters: 2 groups Group #0 SIZE_FC_LAYER -> x0=128, lb=1, ub=1000, is VARIABLE Group #1 SIZE_FC_LAYER -> x0=84, lb=1, ub=1000, is VARIABLE }
Batch size {
Head of block BATCH_SIZE -> x0=128, lb=1, ub=400, is VARIABLE No associated hyperparameters }
Optimizer {
Head of block OPTIMIZER_CHOICE -> x0=3, lb=1, ub=4, is VARIABLE One time associated hyperparameters (always 1 group) Group #0 OPT_PARAM_1 -> x0=0.1, lb=0, ub=1, is VARIABLE OPT_PARAM_2 -> x0=0.9, lb=0, ub=1, is VARIABLE OPT_PARAM_3 -> x0=0.0005, lb=0, ub=1, is VARIABLE OPT_PARAM_4 -> x0=0, lb=0, ub=1, is VARIABLE }
Dropout rate {
Head of block DROPOUT_RATE -> x0=0.2, lb=0, ub=0.95, is FIXED No associated hyperparameters }
Activation function {
Head of block ACTIVATION_FUNCTION -> x0=1, lb=1, ub=3, is VARIABLE No associated hyperparameters }
Warning: { Model use is disabled for problem with categorical variables. } Warning: { Setting granularity different than 0 is disabled for problem with categorical variables. } Warning: { Default anisotropic mesh is disabled with categorical and binary variables. }
HyperNomad - version 1.0
Using Nomad version 3.9.1 - www.gerad.ca/nomad
Nomad parameters {
}
MADS run {
sh: 1: python: not found
} end of run (problem with starting point evaluation)
NOMAD final display {
}
The starting point cannot be evaluated. Please verify that the Pytorch script is available and runs correctly. The default setting for bbExe is $python /mnt/c/Users/calessi/Desktop/HyperNomad_linux/src/blackbox/pytorch_bb.py MNIST. Make sure it works correctly on its own.