[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/15: gnu: Add python-imbalanced-learn.
From: |
guix-commits |
Subject: |
04/15: gnu: Add python-imbalanced-learn. |
Date: |
Sat, 10 Dec 2022 08:59:03 -0500 (EST) |
rekado pushed a commit to branch wip-python-graphviz
in repository guix.
commit 21eca4d873b2eec5f27af184ad84b4fc22fc08b6
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Dec 7 10:48:06 2022 +0100
gnu: Add python-imbalanced-learn.
* gnu/packages/machine-learning.scm (python-imbalanced-learn): New variable.
---
gnu/packages/machine-learning.scm | 46 +++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index 21a1ae0f61..fc8de01066 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1181,6 +1181,52 @@ number of threads used in the threadpool-backed of
common native libraries used
for scientific computing and data science (e.g. BLAS and OpenMP).")
(license license:bsd-3)))
+(define-public python-imbalanced-learn
+ (package
+ (name "python-imbalanced-learn")
+ (version "0.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "imbalanced-learn" version))
+ (sha256
+ (base32
+ "0qnrmysnqpc8ii1w5n8mci20gcjhmjr7khvk7f2apdbqc2pgf52f"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'unbreak-tests
+ (lambda _
+ ;; The doctests require tensorflow
+ (substitute* "setup.cfg"
+ (("--doctest-modules") ""))
+ ;; Some tests require a home directory
+ (setenv "HOME" (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
+ python-scipy
+ python-threadpoolctl))
+ (native-inputs
+ (list python-black
+ python-flake8
+ python-mypy
+ python-pandas
+ python-pytest
+ python-pytest-cov))
+ (home-page "https://github.com/scikit-learn-contrib/imbalanced-learn")
+ (synopsis "Toolbox for imbalanced dataset in machine learning")
+ (description "This is a Python package offering a number of re-sampling
+techniques commonly used in datasets showing strong between-class imbalance.
+It is compatible with @code{scikit-learn}.")
+ (license license:expat)))
+
(define-public python-pynndescent
(package
(name "python-pynndescent")
- branch wip-python-graphviz created (now 3120a6c467), guix-commits, 2022/12/10
- 04/15: gnu: Add python-imbalanced-learn.,
guix-commits <=
- 05/15: gnu: Add python-py4j., guix-commits, 2022/12/10
- 01/15: gnu: bioperl-minimal: Remove trailing #T from build phase., guix-commits, 2022/12/10
- 03/15: gnu: Add python-cleanlab-1., guix-commits, 2022/12/10
- 07/15: gnu: python-graphviz: Update to 0.20.1., guix-commits, 2022/12/10
- 10/15: gnu: python-hicmatrix: Update to 16., guix-commits, 2022/12/10
- 13/15: gnu: python-dna-features-viewer: Update to 3.1.1., guix-commits, 2022/12/10
- 02/15: gnu: Add python-cleanlab., guix-commits, 2022/12/10
- 06/15: gnu: Add python-fit-nbinom., guix-commits, 2022/12/10
- 08/15: gnu: python-hyperopt: Update to 0.2.7., guix-commits, 2022/12/10
- 12/15: gnu: python-hicexplorer: Update to 3.7.2., guix-commits, 2022/12/10