Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions adaptive/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from contextlib import suppress

from adaptive._version import __version__
from adaptive.learner import (
AverageLearner,
Expand Down Expand Up @@ -47,11 +45,5 @@
"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
8 changes: 0 additions & 8 deletions adaptive/learner/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from contextlib import suppress

from adaptive.learner.average_learner import AverageLearner
from adaptive.learner.average_learner1D import AverageLearner1D
from adaptive.learner.balancing_learner import BalancingLearner
Expand All @@ -24,9 +22,3 @@
"AverageLearner1D",
"SequenceLearner",
]

with suppress(ImportError):
# Only available if 'scikit-optimize' is installed
from adaptive.learner.skopt_learner import SKOptLearner # noqa: F401

__all__.append("SKOptLearner")
185 changes: 0 additions & 185 deletions adaptive/learner/skopt_learner.py

This file was deleted.

10 changes: 0 additions & 10 deletions adaptive/tests/test_learners.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@
from adaptive.learner.learner1D import with_pandas
from adaptive.runner import simple

try:
from adaptive.learner.skopt_learner import SKOptLearner
except (ModuleNotFoundError, ImportError):
# XXX: catch the ImportError because of https://github.com/scikit-optimize/scikit-optimize/issues/902
SKOptLearner = None # type: ignore[assignment,misc]


LOSS_FUNCTIONS = {
Learner1D: (
"loss_per_interval",
Expand Down Expand Up @@ -574,7 +567,6 @@ def test_balancing_learner(learner_type, f, learner_kwargs):
LearnerND,
AverageLearner,
AverageLearner1D,
maybe_skip(SKOptLearner),
IntegratorLearner,
SequenceLearner,
with_all_loss_functions=False,
Expand Down Expand Up @@ -607,7 +599,6 @@ def test_saving(learner_type, f, learner_kwargs):
LearnerND,
AverageLearner,
AverageLearner1D,
maybe_skip(SKOptLearner),
IntegratorLearner,
SequenceLearner,
with_all_loss_functions=False,
Expand Down Expand Up @@ -646,7 +637,6 @@ def fname(learner):
LearnerND,
AverageLearner,
AverageLearner1D,
maybe_skip(SKOptLearner),
IntegratorLearner,
with_all_loss_functions=False,
)
Expand Down
48 changes: 0 additions & 48 deletions adaptive/tests/test_skopt_learner.py

This file was deleted.

2 changes: 0 additions & 2 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ channels:
dependencies:
- python=3.10
- sortedcollections=2.1.0
- scikit-optimize=0.9.0
- scikit-learn=1.2.2
- scipy=1.10.1
- holoviews=1.18.3
- bokeh=3.3.4
Expand Down
8 changes: 0 additions & 8 deletions docs/source/reference/adaptive.learner.skopt_learner.md

This file was deleted.

71 changes: 0 additions & 71 deletions docs/source/tutorial/tutorial.SKOptLearner.md

This file was deleted.

Loading