Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920439 - sci-libs/scikit-optimize-0.9.0-r1 fails tests: sklearn.utils._param_validation.InvalidParameterError
Summary: sci-libs/scikit-optimize-0.9.0-r1 fails tests: sklearn.utils._param_validatio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: 906565
  Show dependency tree
 
Reported: 2023-12-21 02:27 UTC by matoro
Modified: 2024-04-11 14:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (file_920439.txt,37.29 KB, text/plain)
2023-12-21 02:28 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2023-12-21 02:27:21 UTC
Using sci-libs/scikit-learn-1.3.2-r1.  build.log and emerge --info in attachment.

___________________________________________________________ [doctest] skopt.utils.use_named_args ___________________________________________________________
702     >>> # `my_objective_function(x)` where `x` is a list of unnamed arguments,
703     >>> # which then wraps your objective function that is callable as
704     >>> # `my_objective_function(foo, bar, baz)`.
705     >>> # The conversion from a list `x` to named parameters `foo`,
706     >>> # `bar`, `baz`
707     >>> # is done automatically.
708     >>>
709     >>> # Run the optimizer on the wrapped objective function which is called
710     >>> # as `my_objective_function(x)` as expected by `forest_minimize()`.
711     >>> result = forest_minimize(func=my_objective_function,
UNEXPECTED EXCEPTION: InvalidParameterError("The 'max_features' parameter of ExtraTreesRegressor must be an int in the range [1, inf), a float in the range
(0.0, 1.0], a str among {'log2', 'sqrt'} or None. Got 'auto' instead.")
Traceback (most recent call last):
  File "/usr/lib/python3.11/doctest.py", line 1351, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest skopt.utils.use_named_args[8]>", line 1, in <module>
  File "/var/tmp/portage/sci-libs/scikit-optimize-0.9.0-r1/work/scikit-optimize-0.9.0/skopt/optimizer/forest.py", line 186, in forest_minimize
    return base_minimize(func, dimensions, base_estimator,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/tmp/portage/sci-libs/scikit-optimize-0.9.0-r1/work/scikit-optimize-0.9.0/skopt/optimizer/base.py", line 300, in base_minimize
    result = optimizer.tell(next_x, next_y)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/tmp/portage/sci-libs/scikit-optimize-0.9.0-r1/work/scikit-optimize-0.9.0/skopt/optimizer/optimizer.py", line 493, in tell
    return self._tell(x, y, fit=fit)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/tmp/portage/sci-libs/scikit-optimize-0.9.0-r1/work/scikit-optimize-0.9.0/skopt/optimizer/optimizer.py", line 536, in _tell
    est.fit(self.space.transform(self.Xi), self.yi)
  File "/usr/lib/python3.11/site-packages/sklearn/base.py", line 1145, in wrapper
    estimator._validate_params()
  File "/usr/lib/python3.11/site-packages/sklearn/base.py", line 638, in _validate_params
    validate_parameter_constraints(
  File "/usr/lib/python3.11/site-packages/sklearn/utils/_param_validation.py", line 96, in validate_parameter_constraints
    raise InvalidParameterError(
sklearn.utils._param_validation.InvalidParameterError: The 'max_features' parameter of ExtraTreesRegressor must be an int in the range [1, inf), a float in
the range (0.0, 1.0], a str among {'log2', 'sqrt'} or None. Got 'auto' instead.
/var/tmp/portage/sci-libs/scikit-optimize-0.9.0-r1/work/scikit-optimize-0.9.0/skopt/utils.py:711: UnexpectedException
================================================================= short test summary info ==================================================================
FAILED skopt/utils.py::skopt.utils.use_named_args
========================================================== 1 failed, 5 passed in 96.44s (0:01:36) ==========================================================

Reproducible: Always
Comment 1 matoro archtester 2023-12-21 02:28:35 UTC
Created attachment 880103 [details]
build.log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-03-10 15:57:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6acfec7fbcfe9ecde26afffcf1fbf6cc962fc170

commit 6acfec7fbcfe9ecde26afffcf1fbf6cc962fc170
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-03-10 15:56:36 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-03-10 15:56:36 +0000

    profiles: mask sci-libs/scikit-optimize for removal
    
    Bug: https://bugs.gentoo.org/920439
    Bug: https://bugs.gentoo.org/906565
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-04-11 14:36:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=716a22e8cfcc8db49e96b764405648a6be1cc3a6

commit 716a22e8cfcc8db49e96b764405648a6be1cc3a6
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-04-11 14:36:00 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-04-11 14:36:00 +0000

    sci-libs/scikit-optimize: treeclean
    
    Closes: https://bugs.gentoo.org/920439
    Closes: https://bugs.gentoo.org/906565
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 profiles/package.mask                              |   6 --
 sci-libs/scikit-optimize/Manifest                  |   1 -
 .../files/scikit-optimize-0.9.0-numpy-1.24.patch   |  22 -----
 .../scikit-optimize-0.9.0-scikit-learn-1.2.0.patch | 104 ---------------------
 sci-libs/scikit-optimize/metadata.xml              |  12 ---
 .../scikit-optimize-0.9.0-r1.ebuild                |  39 --------
 .../scikit-optimize/scikit-optimize-0.9.0.ebuild   |  31 ------
 7 files changed, 215 deletions(-)