Skip to content
Snippets Groups Projects
Commit ce06eb61 authored by Sylvia Biscoveanu's avatar Sylvia Biscoveanu
Browse files

Change the calls to sample() to use the method of the CorrelatedPriorDict intead of each key

parent a76f32cc
No related branches found
No related tags found
2 merge requests!598Correlated priors update,!332Resolve "Introduce conditional prior sets"
......@@ -276,6 +276,7 @@ class Sampler(object):
self._check_if_priors_can_be_sampled()
if isinstance(self.priors, CorrelatedPriorDict):
theta = self.priors.sample()
theta = theta.values()
else:
theta = [self.priors[key].sample()
for key in self._search_parameter_keys]
......@@ -301,6 +302,7 @@ class Sampler(object):
for _ in range(n_evaluations):
if isinstance(self.priors, CorrelatedPriorDict):
theta = self.priors.sample()
theta = theta.values()
else:
theta = [self.priors[key].sample()
for key in self._search_parameter_keys]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment