Skip to content

Commit c3e92b0

Browse files
committed
add 'data' to the SKOptLearner
1 parent 6e4b8c9 commit c3e92b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adaptive/learner/skopt_learner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ class SKOptLearner(Optimizer, BaseLearner):
2626
def __init__(self, function, **kwargs):
2727
self.function = function
2828
self.pending_points = set()
29+
self.data = {}
2930
super().__init__(**kwargs)
3031

3132
def tell(self, x, y, fit=True):
3233
self.pending_points.discard(x)
34+
self.data[x] = y
3335
super().tell([x], y, fit)
3436

3537
def tell_pending(self, x):

0 commit comments

Comments
 (0)