mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: python-cleanlab: Update to 2.9.0.
* gnu/packages/machine-learning.scm (python-cleanlab): Update to 2.9.0. [arguments]: Use G-Expressions; remove ’relax-requirements #:phase. Change-Id: Icf1bfe7cfb902acbf1bb28ef0e13e68cad45fd45
This commit is contained in:
parent
edec1d4f6a
commit
0c81d4aee1
1 changed files with 21 additions and 27 deletions
|
|
@ -2689,7 +2689,7 @@ standard feature selection algorithms.")
|
||||||
(define-public python-cleanlab
|
(define-public python-cleanlab
|
||||||
(package
|
(package
|
||||||
(name "python-cleanlab")
|
(name "python-cleanlab")
|
||||||
(version "2.7.1")
|
(version "2.9.0")
|
||||||
;; The version on pypi does not come with tests.
|
;; The version on pypi does not come with tests.
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
|
@ -2699,7 +2699,7 @@ standard feature selection algorithms.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"073w45azq496x4bhrh8mdywcrg3gk33n13w1pqh1kiykw826ld9b"))))
|
"1fks57i3a297fcm1k4bs48x9cc7rs0jp4ij92r42pd1n0x60jznh"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
|
@ -2707,32 +2707,26 @@ standard feature selection algorithms.")
|
||||||
#:test-flags
|
#:test-flags
|
||||||
;; This test fails because the newer version of scikit learn returns one
|
;; This test fails because the newer version of scikit learn returns one
|
||||||
;; more classification result than expected. This should be harmless.
|
;; more classification result than expected. This should be harmless.
|
||||||
'(list "-k" "not test_aux_inputs"
|
#~(list "-k" "not test_aux_inputs"
|
||||||
;; Requires Tensorflow
|
;; Requires Tensorflow
|
||||||
"--ignore=tests/test_frameworks.py"
|
"--ignore=tests/test_frameworks.py"
|
||||||
;; These need datasets, which needs jax, so it could only live in
|
;; These need datasets, which needs jax, so it could only live in
|
||||||
;; the guix-science channel.
|
;; the guix-science channel.
|
||||||
"--ignore-glob=tests/datalab/**"
|
"--ignore-glob=tests/datalab/**"
|
||||||
;; Tries to download datasets from the internet at runtime.
|
;; Tries to download datasets from the internet at runtime.
|
||||||
"--ignore=tests/test_dataset.py"
|
"--ignore=tests/test_dataset.py"
|
||||||
;; Test requiring not packaged dataset.
|
;; Test requiring not packaged dataset.
|
||||||
"--ignore=tests/spurious_correlation/test_correlation_visualizer.py"
|
"--ignore=tests/spurious_correlation/test_correlation_visualizer.py"
|
||||||
"--ignore=tests/spurious_correlation/test_spurious_correlation.py"
|
"--ignore=tests/spurious_correlation/test_spurious_correlation.py"
|
||||||
;; AssertionError: assert 'Annotators [1] did not label any
|
;; AssertionError: assert 'Annotators [1] did not label any
|
||||||
;; examples.' in 'labels_multiannotator cannot have columns with
|
;; examples.' in 'labels_multiannotator cannot have columns with
|
||||||
;; all NaN, each annotator must annotator at least one example.
|
;; all NaN, each annotator must annotator at least one example.
|
||||||
"--deselect=tests/test_multiannotator.py::test_label_quality_scores_multiannotator")
|
"--deselect=tests/test_multiannotator.py::test_label_quality_scores_multiannotator")
|
||||||
#:phases
|
#:phases
|
||||||
'(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'relax-requirements
|
(add-after 'unpack 'remove-datasets
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "pyproject.toml"
|
(delete-file "tests/datalab/conftest.py"))))))
|
||||||
;; See: <https://github.com/cleanlab/cleanlab/issues/1258> and
|
|
||||||
;; <https://github.com/cleanlab/cleanlab/issues/1151>.
|
|
||||||
(("numpy~=1.22") "numpy>=1.22"))))
|
|
||||||
(add-after 'unpack 'remove-datasets
|
|
||||||
(lambda _
|
|
||||||
(delete-file "tests/datalab/conftest.py"))))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-numpy
|
(list python-numpy
|
||||||
python-pandas
|
python-pandas
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue