mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: python-cleanlab: Disable test_aux_inputs, enable other tests.
* gnu/packages/machine-learning.scm (python-cleanlab)[arguments]: Remove 'disable-bad-tests phase and ignore test files in #:test-flags instead; disable test_aux_inputs test, but re-enable tests from test_multilabel_classification.py. [native-inputs]: Add python-pytest-lazy-fixture. Change-Id: I77a16768ff61215e918c98bccd3efa216fb30d7f
This commit is contained in:
parent
447876fa0d
commit
2c94760dcb
1 changed files with 8 additions and 9 deletions
|
@ -1928,16 +1928,14 @@ (define-public python-cleanlab
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:phases
|
#:test-flags
|
||||||
'(modify-phases %standard-phases
|
;; This test fails because the newer version of scikit learn returns one
|
||||||
(add-after 'unpack 'disable-bad-tests
|
;; more classification result than expected. This should be harmless.
|
||||||
(lambda _
|
'(list "-k" "not test_aux_inputs"
|
||||||
;; XXX This requires pytest lazy_fixture
|
;; Requires Tensorflow
|
||||||
(delete-file "tests/test_multilabel_classification.py")
|
"--ignore=tests/test_frameworks.py"
|
||||||
;; Requires tensorflow
|
|
||||||
(delete-file "tests/test_frameworks.py")
|
|
||||||
;; Tries to download datasets from the internet at runtime.
|
;; Tries to download datasets from the internet at runtime.
|
||||||
(delete-file "tests/test_dataset.py"))))))
|
"--ignore=tests/test_dataset.py")))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-numpy
|
(list python-numpy
|
||||||
python-pandas
|
python-pandas
|
||||||
|
@ -1946,6 +1944,7 @@ (define-public python-cleanlab
|
||||||
python-tqdm))
|
python-tqdm))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest
|
(list python-pytest
|
||||||
|
python-pytest-lazy-fixture
|
||||||
python-pytorch
|
python-pytorch
|
||||||
python-torchvision))
|
python-torchvision))
|
||||||
(home-page "https://cleanlab.ai")
|
(home-page "https://cleanlab.ai")
|
||||||
|
|
Loading…
Reference in a new issue