diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-01-15 23:07:52 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2024-01-15 23:07:52 +0100 |
| commit | b512b2046e19012fc8c62d5b556b71e35f4832f6 (patch) | |
| tree | abfe663bc592ac2f630d25a87db3cf52866edf10 | |
| parent | b2b62ce33d320c0ca85d99a9023303fb7ebb0671 (diff) | |
machine-learning: Add python-keras-for-tensorflow.
* guix-science/packages/machine-learning.scm: New file.
| -rw-r--r-- | guix-science/packages/machine-learning.scm | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/guix-science/packages/machine-learning.scm b/guix-science/packages/machine-learning.scm new file mode 100644 index 0000000..b406f15 --- /dev/null +++ b/guix-science/packages/machine-learning.scm | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | ;;; Copyright © 2023, 2024 Ricardo Wurmus <rekado@elephly.net> | ||
| 2 | ;;; | ||
| 3 | ;;; This program is free software; you can redistribute it and/or modify it | ||
| 4 | ;;; under the terms of the GNU General Public License as published by | ||
| 5 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 6 | ;;; your option) any later version. | ||
| 7 | ;;; | ||
| 8 | ;;; This program is distributed in the hope that it will be useful, but | ||
| 9 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | ;;; GNU General Public License for more details. | ||
| 12 | ;;; | ||
| 13 | ;;; You should have received a copy of the GNU General Public License | ||
| 14 | ;;; along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | |||
| 16 | (define-module (guix-science packages machine-learning) | ||
| 17 | #:use-module ((guix licenses) #:prefix license:) | ||
| 18 | #:use-module (gnu packages check) | ||
| 19 | #:use-module (gnu packages machine-learning) | ||
| 20 | #:use-module (gnu packages python) | ||
| 21 | #:use-module (gnu packages python-build) | ||
| 22 | #:use-module (gnu packages python-science) | ||
| 23 | #:use-module (gnu packages python-xyz) | ||
| 24 | #:use-module (gnu packages) | ||
| 25 | #:use-module (guix build-system python) | ||
| 26 | #:use-module (guix build-system pyproject) | ||
| 27 | #:use-module (guix download) | ||
| 28 | #:use-module (guix git-download) | ||
| 29 | #:use-module (guix packages) | ||
| 30 | #:use-module (guix gexp) | ||
| 31 | #:use-module (guix utils) | ||
| 32 | #:use-module (guix-science packages python)) | ||
| 33 | |||
| 34 | ;; Keep in sync with tensorflow! | ||
| 35 | (define-public python-keras-for-tensorflow | ||
| 36 | (package | ||
| 37 | (name "python-keras") | ||
| 38 | (version "2.13.1") | ||
| 39 | (source | ||
| 40 | (origin | ||
| 41 | (method url-fetch) | ||
| 42 | (uri (pypi-uri "keras" version)) | ||
| 43 | (sha256 | ||
| 44 | (base32 "0s6ciib94x5qinj4pdfr4774yx5jxv055d6xclds25d08712rwax")))) | ||
| 45 | (build-system pyproject-build-system) | ||
| 46 | (arguments | ||
| 47 | (list | ||
| 48 | #:tests? #false ;needs tensorflow | ||
| 49 | #:phases | ||
| 50 | ;; We need this for tensorflow, so we can't have tensorflow | ||
| 51 | ;; here, and this causes the sanity check to fail. That fine, | ||
| 52 | ;; because this is not sane. | ||
| 53 | '(modify-phases %standard-phases | ||
| 54 | (delete 'sanity-check)))) | ||
| 55 | (propagated-inputs (list python-absl-py | ||
| 56 | python-dm-tree | ||
| 57 | python-h5py | ||
| 58 | python-namex | ||
| 59 | python-numpy | ||
| 60 | python-rich)) | ||
| 61 | (home-page "https://github.com/keras-team/keras") | ||
| 62 | (synopsis "Deep learning API") | ||
| 63 | (description "Keras is a deep learning API written in Python, | ||
| 64 | running on top of the machine learning platform TensorFlow. It was | ||
| 65 | developed with a focus on enabling fast experimentation and providing | ||
| 66 | a delightful developer experience.") | ||
| 67 | (license license:asl2.0))) | ||
