Skip to content

Commit 2ecd8a9

Browse files
committed
bug fix
1 parent fe3aa26 commit 2ecd8a9

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

autointent/custom_types/_types.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,5 @@ class Split:
115115
- `filter`: drop incompatible modules from search space
116116
"""
117117

118-
SearchSpacePreset = Literal["light", "light_extra", "heavy", "heavy_moderate"]
119-
"""Some presets that our library supports from lightest to heaviest:
120-
121-
- `light_extra`: just like `light` but tuned with :py:class:`optuna.samplers.RandomSampler`
122-
- `light`: only light-weight modules tuned with :py:class:`optuna.samplers.TPESampler`
123-
- `heavy_moderate`: just like `heavy` but tuned with :py:class:`optuna.samplers.RandomSampler`
124-
- `light`: light-weight modules accompanied with heavy-weight ones tuned with :py:class:`optuna.samplers.TPESampler`
125-
"""
118+
SearchSpacePreset = Literal["light", "heavy"]
119+
"""Some presets that our library supports from lightest to heaviest"""

tests/callback/test_callback.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from autointent import Context, Pipeline
77
from autointent._callbacks import CallbackHandler, OptimizerCallback
8-
from autointent.configs import DataConfig, LoggingConfig
8+
from autointent.configs import DataConfig, HPOConfig, LoggingConfig
99
from tests.conftest import setup_environment
1010

1111

@@ -87,8 +87,9 @@ def test_pipeline_callbacks(dataset):
8787
context.configure_logging(LoggingConfig(run_name="dummy_run_name", project_dir=project_dir, dump_modules=False))
8888
context.callback_handler = CallbackHandler([DummyCallback])
8989
context.set_dataset(dataset, DataConfig(scheme="ho"))
90+
context.configure_hpo(HPOConfig(n_trials=10))
9091

91-
pipeline_optimizer._fit(context, "tpe")
92+
pipeline_optimizer._fit(context)
9293

9394
dummy_callback = context.callback_handler.callbacks[0]
9495

0 commit comments

Comments
 (0)