Closed hoang6k closed 5 months ago
According to the running command you have provided, it seems that the --problem
setting is set wrongly to bbob
which should be bbob-torch
for RNN-OI
style approach. ...-torch
dataset is designed for gradient-required scenario that will be operated under Pytorch Tensor
environment that will record gradient automatically.
code reference: https://github.com/GMC-DRL/MetaBox/blob/bb1177df130c4c0eb80892758c82cc83a109425c/src/config.py#L56
Thank you for raising this discussion, we will update the user guide doc to elaborate the particularity of RNN-OI
usage to make MetaBox work more smoothly.
Thank you for getting back to me promptly, I appreciate it. The repository is really convenient for trying things out, nicely done!
Hi, I tried to run the l2l code with:
python main.py --train --problem bbob --difficulty easy --train_agent L2L_Agent --train_optimizer L2L_Optimizer --max_learning_step 150000
but it returned error:The line number might differ a little bit since I added some comment code. According to the suggestion, I replace
x = np.array(x)
byx = x.detach().numpy()
but it returned another error:What did I do wrong here?