Skip to content

Commit

Permalink
Fix bug that samples generated by the random strategy may have the wr…
Browse files Browse the repository at this point in the history
…ong ordering of keys (#359)
  • Loading branch information
jduerholt authored Feb 27, 2024
1 parent 3fb7eef commit 4790d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bofire/strategies/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,4 @@ def _sample_from_polytope(
for key, value in fixed_features.items():
samples[key] = value

return samples
return samples[domain.inputs.get_keys()]

0 comments on commit 4790d63

Please sign in to comment.