Closed nghi-truyen closed 4 months ago
Should not be simpler to sort the bounds after standardizing it ? You just move the line that you wrote in
_standardize_simulation_optimize_options_net
to_standardize_simulation_optimize_options_bounds
, just before returningbounds = {key: bounds[key] for key in parameters}
Then, no need to change anything in_standardize_simulation_optimize_options_net
J'avais hésité entre les deux solutions, mais oui, il me semble que changer _standardize_simulation_optimize_options_bounds est plus logique !
This PR would fix the issue arising in the scaling layer of net when the keys of bounds are not in the same order as parameters when the bounds argument is specified within the optimize_options. This discrepancy occurs because the standardize function for net does not appropriately adjust the order of bounds according to the order of parameters.