From: Vinicius Monego <monego@posteo.net>
To: 64289@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#64289] [PATCH] gnu: Add python-deepxde.
Date: Sun, 25 Jun 2023 22:29:16 +0000 [thread overview]
Message-ID: <20230625222916.82599-1-monego@posteo.net> (raw)
* gnu/packages/machine-learning.scm (python-deepxde): New variable.
---
gnu/packages/machine-learning.scm | 33 +++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 8fbb0274d4..ddb773b8ce 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1936,6 +1936,39 @@ (define-public python-hyperopt
discrete, and conditional dimensions.")
(license license:bsd-3)))
+(define-public python-deepxde
+ (package
+ (name "python-deepxde")
+ (version "1.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "DeepXDE" version))
+ (sha256
+ (base32
+ "0gibr0nz8xfhxwi2rgfypm653fy912n49161vqaqgpxlm2pb3bhb"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f ; there are no tests
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'sanity-check 'writable-home
+ ;; sanity-check writes ~/.deepxde/config.json to set
+ ;; the default backend.
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
+ ;; DeepXDE supported backends are TensorFlow (v1 and v2), PyTorch, JAX and
+ ;; PaddlePaddle. We test with PyTorch because we have it up to date.
+ (native-inputs (list python-pytorch python-setuptools-scm))
+ (propagated-inputs (list python-matplotlib python-numpy
+ python-scikit-learn python-scikit-optimize
+ python-scipy))
+ (home-page "https://deepxde.readthedocs.io/en/latest/")
+ (synopsis "Library for scientific machine learning")
+ (description "DeepXDE is a library for scientific machine learning and
+physics-informed learning. It includes implementations for the PINN
+(physics-informed neural networks), DeepONet (deep operator network) and
+MFNN (multifidelity neural network) algorithms.")
+ (license license:lgpl2.1)))
+
;; There have been no proper releases yet.
(define-public kaldi
(let ((commit "be22248e3a166d9ec52c78dac945f471e7c3a8aa")
base-commit: 41e8726c8924e9f5b79a9f44fad94ab5586bfc50
--
2.34.1
next reply other threads:[~2023-06-25 22:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-25 22:29 Vinicius Monego [this message]
2023-07-18 11:42 ` [bug#64289] [PATCH] gnu: Add python-deepxde Ludovic Courtès
2023-07-29 18:42 ` bug#64289: " Vinicius Monego
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230625222916.82599-1-monego@posteo.net \
--to=monego@posteo.net \
--cc=64289@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.