Commit 793a83b4 authored by Ryan Gutenkunst's avatar Ryan Gutenkunst
Browse files

Fix bug in perturb_params

parent 51d90205
......@@ -109,7 +109,7 @@ def perturb_params(params, fold=1, lower_bound=None, upper_bound=None):
upper_bound: If not None, the resulting parameter set is adjusted to have
all value less than upper_bound.
pnew = params * 2**(fold * (2*numpy.random.uniform(len(params))-1))
pnew = params * 2**(fold * (2*numpy.random.uniform(size=len(params))-1))
if lower_bound is not None:
for ii,bound in enumerate(lower_bound):
if bound is None:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment