-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy path__init__.py
57 lines (51 loc) · 1.24 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from contextlib import suppress
from adaptive._version import __version__
from adaptive.learner import (
AverageLearner,
AverageLearner1D,
BalancingLearner,
BaseLearner,
DataSaver,
IntegratorLearner,
Learner1D,
Learner2D,
LearnerND,
SequenceLearner,
make_datasaver,
)
from adaptive.notebook_integration import (
active_plotting_tasks,
live_plot,
notebook_extension,
)
from adaptive.runner import AsyncRunner, BlockingRunner, Runner
from adaptive import learner, runner, utils # isort:skip
__all__ = [
"learner",
"runner",
"utils",
"__version__",
"AverageLearner",
"BalancingLearner",
"BaseLearner",
"DataSaver",
"IntegratorLearner",
"Learner1D",
"Learner2D",
"LearnerND",
"AverageLearner1D",
"make_datasaver",
"SequenceLearner",
"active_plotting_tasks",
"live_plot",
"notebook_extension",
"AsyncRunner",
"BlockingRunner",
"Runner",
]
with suppress(ImportError):
# Only available if 'scikit-optimize' is installed
from adaptive.learner import SKOptLearner # noqa: F401
__all__.append("SKOptLearner")
# to avoid confusion with `notebook_extension`
del notebook_integration # type: ignore[name-defined] # noqa: F821