about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-08-11 09:55:42 -0500
committerFrederick Muriuki Muriithi2025-08-11 11:04:46 -0500
commit781d73a5194f615292d8df5ad7a960ec11369d7b (patch)
treea96e1d15194af98be7ca44330b709efcf7d16001
parentd1f56624fc23f31ddf2428d7ee26fc96ba0b66d9 (diff)
downloadguix-bioinformatics-781d73a5194f615292d8df5ad7a960ec11369d7b.tar.gz
python-keras-preprocessing: New variable
* gn/packages/machine-learning.scm: Copy over
  `python-keras-preprocessing` from main-line guix since it was
  removed there.
-rw-r--r--gn/packages/machine-learning.scm34
1 files changed, 33 insertions, 1 deletions
diff --git a/gn/packages/machine-learning.scm b/gn/packages/machine-learning.scm
index 3e51132..6a8bf33 100644
--- a/gn/packages/machine-learning.scm
+++ b/gn/packages/machine-learning.scm
@@ -4,7 +4,8 @@
   #:use-module (guix utils)
   #:use-module (gnu packages machine-learning)
   #:use-module (guix download)
-  #:use-module (guix build-system python))
+  #:use-module (guix build-system python)
+  #:use-module (gnu packages python-xyz))
 
 (define-public tensorflow-native
   (package
@@ -23,6 +24,37 @@
   (package-input-rewriting/spec `(("tensorflow" . ,(const tensorflow-native)))))
 
 
+
+(define-public python-keras-preprocessing
+  (package
+    (name "python-keras-preprocessing")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "Keras_Preprocessing" version))
+       (sha256
+        (base32
+         "1r98nm4k1svsqjyaqkfk23i31bl1kcfcyp7094yyj3c43phfp3as"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     (list python-numpy python-six))
+    (native-inputs
+     (list python-pandas
+           python-pillow
+           python-pytest
+           python-pytest-cov
+           python-pytest-xdist
+           tensorflow))
+    (home-page "https://github.com/keras-team/keras-preprocessing/")
+    (synopsis "Data preprocessing and augmentation for deep learning models")
+    (description
+     "Keras Preprocessing is the data preprocessing and data augmentation
+module of the Keras deep learning library.  It provides utilities for working
+with image data, text data, and sequence data.")
+    (license license:expat)))
+
+
 (define-public python-keras-no-tests
   (package
     (name "python-keras-no-tests")