File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 8
8
from sortedcontainers import SortedDict , SortedSet
9
9
10
10
from adaptive .learner .base_learner import BaseLearner
11
- from adaptive .utils import assign_defaults , partial_function_from_dataframe
11
+ from adaptive .utils import (
12
+ assign_defaults ,
13
+ cache_latest ,
14
+ partial_function_from_dataframe ,
15
+ )
12
16
13
17
try :
14
18
import pandas
@@ -113,6 +117,7 @@ def ask(
113
117
114
118
return points , loss_improvements
115
119
120
+ @cache_latest
116
121
def loss (self , real : bool = True ) -> float :
117
122
if not (self ._to_do_indices or self .pending_points ):
118
123
return 0.0
Original file line number Diff line number Diff line change 17
17
# -- Project information -----------------------------------------------------
18
18
19
19
project = "adaptive"
20
- copyright = "2018-2022 , Adaptive Authors"
20
+ copyright = "2018-2023 , Adaptive Authors"
21
21
author = "Adaptive Authors"
22
22
23
23
# The short X.Y version
You can’t perform that action at this time.
0 commit comments