Skip to content

Commit

Permalink
Moved cache_root to propery place under noisy aqs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Stone committed Sep 17, 2024
1 parent 17965cd commit 8831fa3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions obsidian/optimizer/bayesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ def _parse_aq_kwargs(self,
# Noisy aqs require X_train reference
if aq in ['NEI', 'NEHVI', 'NParEGO']:
aq_kwargs['X_baseline'] = X_baseline

if any(isinstance(m, EnsembleModel) for m in model.models):
aq_kwargs['cache_root'] = False

# Hypervolume requires reference point
if aq in ['EHVI', 'NEHVI']:

Expand Down Expand Up @@ -571,8 +573,8 @@ def _parse_aq_kwargs(self,
w = w/torch.sum(torch.abs(w))
aq_kwargs['scalarization_weights'] = w

if any(isinstance(m, EnsembleModel) for m in model.models):
aq_kwargs['cache_root'] = False
if aq == 'SF':
aq_kwargs['X_baseline'] = X_baseline

return aq_kwargs

Expand Down

0 comments on commit 8831fa3

Please sign in to comment.