Currently, BatchSimulate and Optimizer require a set_params() function which accepts a Network object, and a dictionary called param_values which is used to update different parameter values in the network during batch simulation or optimization.
The BatchSimulate class expects the function to be:
def set_params(param_values, net):
Whereas the Optmizer class expects a different order of the arguments:
def set_params(net, param_values):
I propose changing the BatchSimulate class to expect set_params(net, param_values). I think this makes the most sense, and I believe was the original intention since the documentation incorrectly describes the argument in this way:
|
``set_params(net, params) -> None`` |
This will require changing the internals of BatchSimulate, as well as updating the tests and associated code tutorial
Currently,
BatchSimulateandOptimizerrequire aset_params()function which accepts aNetworkobject, and a dictionary calledparam_valueswhich is used to update different parameter values in the network during batch simulation or optimization.The
BatchSimulateclass expects the function to be:Whereas the
Optmizerclass expects a different order of the arguments:I propose changing the
BatchSimulateclass to expectset_params(net, param_values). I think this makes the most sense, and I believe was the original intention since the documentation incorrectly describes the argument in this way:hnn-core/hnn_core/batch_simulate.py
Line 26 in e27afa9
This will require changing the internals of
BatchSimulate, as well as updating the tests and associated code tutorial