gnu: python-imbalanced-learn: Update to 0.11.0.
* gnu/packages/machine-learning.scm (python-imbalanced-learn): Update to 0.11.0. [arguments]<#:test-flags>: Move broken tests from "unbreak-tests" phase to here. <#:phases>: Add back some deleted python-keras and tensorflow tests. [native-inputs]: Add python-keras, python-numpydoc and tensorflow. Change-Id: Ibc2827e27ee23e0ffb491cb791bba4d1a3f1109d Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>master
parent
ee49611771
commit
d20ece07db
|
@ -1663,39 +1663,38 @@ and forecasting.")
|
||||||
(define-public python-imbalanced-learn
|
(define-public python-imbalanced-learn
|
||||||
(package
|
(package
|
||||||
(name "python-imbalanced-learn")
|
(name "python-imbalanced-learn")
|
||||||
(version "0.9.1")
|
(version "0.11.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "imbalanced-learn" version))
|
(uri (pypi-uri "imbalanced-learn" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0qnrmysnqpc8ii1w5n8mci20gcjhmjr7khvk7f2apdbqc2pgf52f"))))
|
(base32 "1p4gdgc8nsq0vjmw4y4d2bp9g0m1c23d0zgrzs90pnz6b24ax0km"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:test-flags '(list "-k"
|
||||||
|
;; Although we cannot satify the Tensorflow and Keras requirements
|
||||||
|
;; (python-keras >= 2.4.3 and tensorflow >= 2.4.3), all tests
|
||||||
|
;; besides these pass.
|
||||||
|
"not balanced_batch_generator and not BalancedBatchGenerator")
|
||||||
#:phases '(modify-phases %standard-phases
|
#:phases '(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'unbreak-tests
|
(add-after 'unpack 'unbreak-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
;; The doctests require tensorflow
|
|
||||||
(substitute* "setup.cfg"
|
|
||||||
(("--doctest-modules")
|
|
||||||
""))
|
|
||||||
;; Some tests require a home directory
|
;; Some tests require a home directory
|
||||||
(setenv "HOME"
|
(setenv "HOME"
|
||||||
(getcwd))
|
(getcwd)))))))
|
||||||
;; We don't have keras
|
|
||||||
(delete-file "imblearn/keras/tests/test_generator.py")
|
|
||||||
;; We don't have tensorflow
|
|
||||||
(delete-file
|
|
||||||
"imblearn/tensorflow/tests/test_generator.py"))))))
|
|
||||||
(propagated-inputs (list python-joblib python-numpy python-scikit-learn
|
(propagated-inputs (list python-joblib python-numpy python-scikit-learn
|
||||||
python-scipy python-threadpoolctl))
|
python-scipy python-threadpoolctl))
|
||||||
(native-inputs (list python-black
|
(native-inputs (list python-black
|
||||||
python-flake8
|
python-flake8
|
||||||
|
python-keras
|
||||||
python-mypy
|
python-mypy
|
||||||
|
python-numpydoc
|
||||||
python-pandas
|
python-pandas
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-cov))
|
python-pytest-cov
|
||||||
|
tensorflow))
|
||||||
(home-page "https://github.com/scikit-learn-contrib/imbalanced-learn")
|
(home-page "https://github.com/scikit-learn-contrib/imbalanced-learn")
|
||||||
(synopsis "Toolbox for imbalanced dataset in machine learning")
|
(synopsis "Toolbox for imbalanced dataset in machine learning")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue