Skip to content

Commit 94f8eb2

Browse files
authored
Added the packages PyTUQ and QUiNN (uqinn on PyPI) (spack#1935)
* Added the packages PyTUQ and QUiNN (uqinn on PyPI) * py-pytuq: remove optim variant (py-pyswarms not yet in Spack) --------- Signed-off-by: Greg von Winckel <[email protected]>
1 parent c7a5122 commit 94f8eb2

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright Spack Project Developers. See COPYRIGHT file for details.
2+
#
3+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
4+
5+
from spack_repo.builtin.build_systems.python import PythonPackage
6+
7+
from spack.package import *
8+
9+
10+
class PyPytuq(PythonPackage):
11+
"""The Python Toolkit for Uncertainty Quantification (PyTUQ) is a
12+
Python-only collection of libraries and tools designed for quantifying
13+
uncertainty in computational models. PyTUQ offers a range of UQ
14+
functionalities, including Bayesian inference and linear regression
15+
methods, polynomial chaos expansions, and global sensitivity analysis
16+
methods. PyTUQ features advanced techniques for dimensionality
17+
reduction, such as SVD and Karhunen-Loeve expansions, along with
18+
various MCMC methods for calibration and inference. The toolkit also
19+
includes robust classes for multivariate random variables and
20+
integration techniques, making it a versatile resource for researchers
21+
and practitioners seeking to quantify uncertainty in their numerical
22+
predictions."""
23+
24+
homepage = "https://sandialabs.github.io/pytuq/"
25+
pypi = "pytuq/pytuq-1.0.0.tar.gz"
26+
27+
maintainers("bjdebus", "ksargsyan", "gregvw")
28+
29+
license("BSD-3-Clause", checked_by="gregvw")
30+
31+
version("1.0.0", sha256="1fc9fabf7bf183d38e104564e99d1950f7e2103baac5a13960c356173b9997ff")
32+
33+
depends_on("[email protected]:", type=("build", "run"))
34+
depends_on("py-setuptools", type="build")
35+
depends_on("py-wheel", type="build")
36+
37+
depends_on("py-numpy", type=("build", "run"))
38+
depends_on("py-scipy", type=("build", "run"))
39+
depends_on("py-matplotlib", type=("build", "run"))
40+
41+
variant("nn", default=False, description="Enable neural network support")
42+
43+
depends_on("py-torch", type=("build", "run"), when="+nn")
44+
depends_on("py-uqinn", type=("build", "run"), when="+nn")
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright Spack Project Developers. See COPYRIGHT file for details.
2+
#
3+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
4+
5+
from spack_repo.builtin.build_systems.python import PythonPackage
6+
7+
from spack.package import *
8+
9+
10+
class PyUqinn(PythonPackage):
11+
"""Quantification of Uncertainties in Neural Networks (QUiNN) is a
12+
python library centered around various probabilistic wrappers over
13+
PyTorch modules in order to provide uncertainty estimation in Neural
14+
Network (NN) predictions."""
15+
16+
homepage = "https://github.com/sandialabs/quinn"
17+
pypi = "uqinn/uqinn-1.0.0.tar.gz"
18+
19+
maintainers("ksargsyan", "odiazib", "gregvw")
20+
21+
license("BSD-3-Clause", checked_by="gregvw")
22+
23+
version("1.0.0", sha256="07c6a5a81bc14af2679e9510f438ef1bbb85eba00c4fdd993fcb1f018f511cac")
24+
25+
depends_on("[email protected]:", type=("build", "run"))
26+
depends_on("py-setuptools", type="build")
27+
28+
depends_on("py-numpy", type=("build", "run"))
29+
depends_on("py-scipy", type=("build", "run"))
30+
depends_on("py-matplotlib", type=("build", "run"))
31+
depends_on("py-torch", type=("build", "run"))

0 commit comments

Comments
 (0)