Skip to content

Commit 120e78f

Browse files
committed
added comment
1 parent 58dd411 commit 120e78f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pynumdiff/optimize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def optimize(func, x, dt, dxdt_truth=None, tvgamma=1e-2, search_space_updates={}
231231
_minimize = partial(scipy.optimize.minimize, _obj_fun, method=opt_method, bounds=bounds, options={'maxiter':maxiter})
232232
results += pool.map(_minimize, starting_points) # returns a bunch of OptimizeResult objects
233233
else: # For experiments, where I want to parallelize optimization calls and am not allowed to have each spawn further processes
234-
cache = {}
234+
cache = {} # dict
235235
for categorical_combo in categorical_combos:
236236
_obj_fun = partial(_objective_function, func=func, x=x, dt=dt, singleton_params=singleton_params,
237237
categorical_params=categorical_combo, search_space_types=search_space_types, dxdt_truth=dxdt_truth,

0 commit comments

Comments
 (0)