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 88from sortedcontainers import SortedDict , SortedSet
99
1010from 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+ )
1216
1317try :
1418 import pandas
@@ -113,6 +117,7 @@ def ask(
113117
114118 return points , loss_improvements
115119
120+ @cache_latest
116121 def loss (self , real : bool = True ) -> float :
117122 if not (self ._to_do_indices or self .pending_points ):
118123 return 0.0
Original file line number Diff line number Diff line change 1717# -- Project information -----------------------------------------------------
1818
1919project = "adaptive"
20- copyright = "2018-2022 , Adaptive Authors"
20+ copyright = "2018-2023 , Adaptive Authors"
2121author = "Adaptive Authors"
2222
2323# The short X.Y version
You can’t perform that action at this time.
0 commit comments