Skip to content

Commit 23dce51

Browse files
committed
Fix doctest
1 parent 47a903c commit 23dce51

File tree

7 files changed

+8
-30
lines changed

7 files changed

+8
-30
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def __init__(self, src_dir):
289289
self.regex = re.compile(r"^([\w ]+)\n-", re.MULTILINE)
290290

291291
def __repr__(self):
292-
return f'<{self.__class__.__name__}>'
292+
return '<%s: %s>' % (self.__class__.__name__, self.src_dir)
293293

294294
def __call__(self, directory):
295295
src_path = os.path.normpath(os.path.join(self.src_dir, directory))

doc/modules/benchmarks.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

doc/modules/learning.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

doc/modules/sampler.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

doc/modules/transformers.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

doc/whats_new/v0.10.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
.. _changes_0_10_1:
66

77
Version 0.10.1
8-
=============
8+
==============
99
**March 2024**
1010

1111
- |Fix| Typo in skopt/space/space.py
1212

1313
.. _changes_0_10:
1414

1515
Version 0.10.0
16-
=============
16+
==============
1717
**March 2024**
18+
1819
- |Feature| Add support for multimetric scoring to :obj:`skopt.searchcv.BayesSearchCV`.
1920
- |Feature| Evaluate random point instead of using point twice in :obj:`skopt.optimizer.Optimizer`.
2021
- |Feature| :obj:`skopt.callback.CheckpointSaver` can now recycle previous function evaluations
@@ -47,4 +48,3 @@ Version 0.10.0
4748
would change under the new scheme.
4849
- Minor documentation improvements.
4950
- Various small bugs and fixes.
50-

skopt/searchcv.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,17 @@ class BayesSearchCV(BaseSearchCV):
8787
the test set. If ``None``, the ``score`` method of the estimator is
8888
used.
8989
If `scoring` represents a single score, one can use:
90+
9091
- a single string (see :ref:`scoring_parameter`);
9192
- a callable (see :ref:`scoring`) that returns a single value.
93+
9294
If `scoring` represents multiple scores, one can use:
95+
9396
- a list or tuple of unique strings;
9497
- a callable returning a dictionary where the keys are the metric
9598
names and the values are the metric scores;
9699
- a dictionary with metric names as keys and callables a values.
100+
97101
Callables must have the signature ``scorer(estimator, X, y=None)``
98102
99103
fit_params : dict, optional

0 commit comments

Comments
 (0)