From 4790d637016f4e482ae8bafa6cb711b66e26b99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20P=2E=20D=C3=BCrholt?= Date: Tue, 27 Feb 2024 11:38:18 +0100 Subject: [PATCH] Fix bug that samples generated by the random strategy may have the wrong ordering of keys (#359) --- bofire/strategies/random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bofire/strategies/random.py b/bofire/strategies/random.py index 6297d06fb..98e806a37 100644 --- a/bofire/strategies/random.py +++ b/bofire/strategies/random.py @@ -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()]