418831c50506840b10bce58960b1ffd75080381e,elfi/methods/bo/utils.py,,minimize,#Any#Any#Any#Any#Any#Any#Any#,64
Before Change
else:
// Sample priors for initialization points
prior_names = [p.name for p in priors]
inits_dict = priors[0].model.generate(n_inits, outputs=prior_names)
for ii, n in enumerate(prior_names):
inits[:, ii] = inits_dict[n]
inits[:, ii] = np.clip(inits[:, ii], *bounds[ii])
locs = []
vals = np.empty(n_inits)
// Run optimization from each initialization point
After Change
for i in range(ndim):
start_points[:, i] = random_state.uniform(*bounds[i], n_start_points)
else:
start_points = prior.rvs(n_start_points)
for i in range(ndim):
start_points[:, i] = np.clip(start_points[:, i], *bounds[i])
locs = []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: elfi-dev/elfi
Commit Name: 418831c50506840b10bce58960b1ffd75080381e
Time: 2017-06-19
Author: jarno.lintusaari@aalto.fi
File Name: elfi/methods/bo/utils.py
Class Name:
Method Name: minimize
Project Name: scipy/scipy
Commit Name: d430e92f1bc58b28567439a1028bc1697e7a7869
Time: 2020-08-04
Author: 44255917+swallan@users.noreply.github.com
File Name: benchmarks/benchmarks/stats.py
Class Name: ContinuousFitAnalyticalMLEOverride
Method Name: setup
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 705d7ff759a0b76ddf1b30ab8ef135c0b67efa8b
Time: 2020-04-23
Author: M.N.Tran@ibm.com
File Name: art/attacks/evasion/projected_gradient_descent/projected_gradient_descent_pytorch.py
Class Name: ProjectedGradientDescentPytorch
Method Name: generate