Skip to content
Snippets Groups Projects
Commit 8437aca1 authored by Sylvia Biscoveanu's avatar Sylvia Biscoveanu Committed by Moritz
Browse files

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

parent 17d1f42c
No related branches found
No related tags found
1 merge request!332Resolve "Introduce conditional prior sets"
......@@ -284,6 +284,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]
......@@ -309,6 +310,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