summaryrefslogtreecommitdiff
path: root/gnu/packages/machine-learning.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r--gnu/packages/machine-learning.scm79
1 files changed, 7 insertions, 72 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 4f3f740745..13890adfb3 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1703,11 +1703,11 @@ an extensible computation graph model, as well as definitions of built-in
operators and standard data types.")
(license license:expat)))
-(define-public python-onnx
- ;; This used to be called "python-onnx" because it provided nothing but
- ;; Python bindings. The package now provides shared libraries and C++
- ;; headers, hence the name change.
- (deprecated-package "python-onnx" onnx))
+;; This used to be called "python-onnx" because it provided nothing but
+;; Python bindings. The package now provides shared libraries and C++
+;; headers, hence the name change.
+(define-deprecated-package python-onnx
+ onnx)
(define-public onnx-optimizer
(package
@@ -2117,7 +2117,7 @@ computing environments.")
(native-inputs
(list gfortran
meson-python
- python-cython-3
+ python-cython
python-pandas
python-pytest
python-pytest-xdist))
@@ -2176,71 +2176,6 @@ data analysis.")
;; (<...>/_cython_blas.cpython-311-x86_64-linux-gnu.so)
(delete-file-recursively "sklearn/utils/tests/test_cython_blas.py")))))))))
-(define-public python-scikit-learn-extra
- ;; This commit fixes an incompatibility with newer versions of scikit-learn
- (let ((commit "0f95d8dda4c69f9de4fb002366041adcb1302f3b")
- (revision "1"))
- (package
- (name "python-scikit-learn-extra")
- (version (git-version "0.3.0" revision commit))
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/scikit-learn-contrib/scikit-learn-extra")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0a248sff1psfwzmngj465gzyisq20d83nzpwpq2cspxhih51m6j9"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- ;; ignore tests that require network
- '(list "--pyargs" "sklearn_extra"
- "-k" (string-append "not test_build"
- ;; The error message format has changed,
- ;; but the behavior itself is still the
- ;; same.
- " and not test_parameter_validation"
- ;; exceptions must be derived from Warning,
- ;; not <class 'NoneType'>
- " and not test_seuclidean"))
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'build 'build-ext
- (lambda _
- (invoke "python" "setup.py" "build_ext"
- "--inplace")))
- (replace 'check
- (lambda* (#:key tests? test-flags #:allow-other-keys)
- (when tests?
- ;; Restrict OpenBLAS threads to prevent segfaults while testing!
- (setenv "OPENBLAS_NUM_THREADS" "1")
-
- ;; Some tests require write access to $HOME.
- (setenv "HOME" "/tmp")
-
- ;; Step out of the source directory to avoid interference;
- ;; we want to run the installed code with extensions etc.
- (with-directory-excursion "/tmp"
- (apply invoke "pytest" "-vv" test-flags))))))))
- (propagated-inputs
- (list python-numpy
- python-scikit-learn
- python-scipy
- python-packaging))
- (native-inputs (list python-pytest python-pytest-cov python-cython
- python-setuptools python-wheel))
- (home-page "https://github.com/scikit-learn-contrib/scikit-learn-extra")
- (synopsis "Set of tools for scikit-learn")
- (description
- "This package provides a Python module for machine learning that extends
-scikit-learn. It includes algorithms that are useful but do not satisfy the
-scikit-learn inclusion criteria, for instance due to their novelty or lower
-citation number.")
- (license license:bsd-3))))
-
(define-public python-mord
(package
(name "python-mord")
@@ -2425,7 +2360,7 @@ for k-neighbor-graph construction and approximate nearest neighbor search.")
(setenv "NUMBA_CACHE_DIR" "/tmp")
;; Rebuild extensions to run tests.
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
- (native-inputs (list python-cython-3 python-pytest python-setuptools
+ (native-inputs (list python-cython python-pytest python-setuptools
python-wheel))
(inputs (list fftw))
(propagated-inputs (list python-numpy python-pynndescent