You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run any example configuration using iCEM as action optimizer, e.g. python -m mbrl.examples.main algorithm=mbpo overrides=pets_icem_cartpole
Observed Results
After sampling according to a powerlaw PSD in iCEM, the population is centered on the mean, scaled to the variance and clamped to be within the action space. This process uses the dummy variable population2. However, it appears that the result is not assigned back to the population variable, and it is hence ignored during the rest of the optimization procedure. As a result, I believe that the population is not correctly sampled, and the objective function can be evaluated on actions that potentially do not belong to the action space.
Expected Results
Centering, scaling and clamping should be applied directly to population instead of population2.
Relevant Code
The relevant lines are L438-L441 in mbrl/planning/trajectory_opt.py
Steps to reproduce
python -m mbrl.examples.main algorithm=mbpo overrides=pets_icem_cartpole
Observed Results
After sampling according to a powerlaw PSD in iCEM, the population is centered on the mean, scaled to the variance and clamped to be within the action space. This process uses the dummy variable
population2
. However, it appears that the result is not assigned back to thepopulation
variable, and it is hence ignored during the rest of the optimization procedure. As a result, I believe that the population is not correctly sampled, and the objective function can be evaluated on actions that potentially do not belong to the action space.Expected Results
Centering, scaling and clamping should be applied directly to
population
instead ofpopulation2
.Relevant Code
The relevant lines are L438-L441 in
mbrl/planning/trajectory_opt.py
mbrl-lib/mbrl/planning/trajectory_opt.py
Lines 438 to 441 in f90a297
which I believe could be changed to
The text was updated successfully, but these errors were encountered: