Skip to content

Commit fe1263f

Browse files
committed
sort missing_bounds to ensure reproducibility
1 parent 1be63d8 commit fe1263f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adaptive/learner/learner1D.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def _missing_bounds(self) -> List[Real]:
614614
self.__missing_bounds.remove(b)
615615
elif b not in self.pending_points:
616616
missing_bounds.append(b)
617-
return missing_bounds
617+
return sorted(missing_bounds)
618618

619619
def _ask_points_without_adding(self, n: int) -> Tuple[List[float], List[float]]:
620620
"""Return 'n' points that are expected to maximally reduce the loss.

0 commit comments

Comments
 (0)