ACBICI 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- acbici-2.1.0/LICENSE +30 -0
- acbici-2.1.0/PKG-INFO +154 -0
- acbici-2.1.0/README.md +96 -0
- acbici-2.1.0/pyproject.toml +41 -0
- acbici-2.1.0/requirements.txt +12 -0
- acbici-2.1.0/setup.cfg +4 -0
- acbici-2.1.0/src/ACBICI/__init__.py +29 -0
- acbici-2.1.0/src/ACBICI/_version.py +23 -0
- acbici-2.1.0/src/ACBICI/calibrator.py +3430 -0
- acbici-2.1.0/src/ACBICI/gprocess.py +250 -0
- acbici-2.1.0/src/ACBICI/kernels.py +271 -0
- acbici-2.1.0/src/ACBICI/priors.py +306 -0
- acbici-2.1.0/src/ACBICI/randomprocess.py +939 -0
- acbici-2.1.0/src/ACBICI/vbmc.py +163 -0
- acbici-2.1.0/src/ACBICI.egg-info/PKG-INFO +154 -0
- acbici-2.1.0/src/ACBICI.egg-info/SOURCES.txt +17 -0
- acbici-2.1.0/src/ACBICI.egg-info/dependency_links.txt +1 -0
- acbici-2.1.0/src/ACBICI.egg-info/requires.txt +12 -0
- acbici-2.1.0/src/ACBICI.egg-info/top_level.txt +1 -0
acbici-2.1.0/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
BSD-3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, Fundación IMDEA Materiales (IMDEA Materials Institute), Getafe, Madrid, Spain and Universidad Politécnica de Madrid (UPM), Madrid, Spain
|
|
4
|
+
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
Redistribution and use in source and binary forms, with or without
|
|
8
|
+
modification, are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
11
|
+
list of conditions and the following disclaimer.
|
|
12
|
+
|
|
13
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
and/or other materials provided with the distribution.
|
|
16
|
+
|
|
17
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
18
|
+
contributors may be used to endorse or promote products derived from
|
|
19
|
+
this software without specific prior written permission.
|
|
20
|
+
|
|
21
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
22
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
23
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
24
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
25
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
26
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
27
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
28
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
29
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
30
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
acbici-2.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ACBICI
|
|
3
|
+
Version: 2.1.0
|
|
4
|
+
Summary: A Configurable BayesIan Calibration and Inference package
|
|
5
|
+
Author: Christina Schenk, Ignacio Romero
|
|
6
|
+
License: BSD-3-Clause License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2025, Fundación IMDEA Materiales (IMDEA Materials Institute), Getafe, Madrid, Spain and Universidad Politécnica de Madrid (UPM), Madrid, Spain
|
|
9
|
+
|
|
10
|
+
All rights reserved.
|
|
11
|
+
|
|
12
|
+
Redistribution and use in source and binary forms, with or without
|
|
13
|
+
modification, are permitted provided that the following conditions are met:
|
|
14
|
+
|
|
15
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
16
|
+
list of conditions and the following disclaimer.
|
|
17
|
+
|
|
18
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
19
|
+
this list of conditions and the following disclaimer in the documentation
|
|
20
|
+
and/or other materials provided with the distribution.
|
|
21
|
+
|
|
22
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
23
|
+
contributors may be used to endorse or promote products derived from
|
|
24
|
+
this software without specific prior written permission.
|
|
25
|
+
|
|
26
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
27
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
28
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
29
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
30
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
31
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
32
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
33
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
34
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
35
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
36
|
+
|
|
37
|
+
Project-URL: Homepage, https://gitlab.com/schenkch/ACBICI
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
40
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
42
|
+
Requires-Python: >=3.9
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
License-File: LICENSE
|
|
45
|
+
Requires-Dist: matplotlib
|
|
46
|
+
Requires-Dist: scipy
|
|
47
|
+
Requires-Dist: pyDOE
|
|
48
|
+
Requires-Dist: emcee
|
|
49
|
+
Requires-Dist: corner
|
|
50
|
+
Requires-Dist: pyvbmc
|
|
51
|
+
Requires-Dist: tqdm
|
|
52
|
+
Requires-Dist: sphinx
|
|
53
|
+
Requires-Dist: sphinx-rtd-theme
|
|
54
|
+
Requires-Dist: sphinx-math-dollar
|
|
55
|
+
Requires-Dist: seaborn
|
|
56
|
+
Requires-Dist: SALib
|
|
57
|
+
Dynamic: license-file
|
|
58
|
+
|
|
59
|
+
# <img alt="ACBICI" src="branding/ACBICI_Logo.svg" height="80">
|
|
60
|
+
|
|
61
|
+
[](https://gitlab.com/schenkch/ACBICI/-/blob/master/LICENSE)
|
|
62
|
+
[](https://gitlab.com/schenkch/ACBICI/)
|
|
63
|
+
[](https://acbici.readthedocs.io/en/latest/py-modindex.html)
|
|
64
|
+
|
|
65
|
+
ACBICI (A Configurable BayesIan Calibration and Inference package) is a Python package designed to calibrate models including uncertainty estimates.
|
|
66
|
+
|
|
67
|
+
- **Documentation:** - https://acbici.readthedocs.io / Alternatively can be compiled following the instructions in docs/ReadmeDoc.txt file.
|
|
68
|
+
- **Examples and Tutorials** - https://gitlab.com/schenkch/acbici/tree/master/examples
|
|
69
|
+
- **Source code:** - https://gitlab.com/schenkch/acbici/tree/master/src/ACBICI
|
|
70
|
+
- **Bug reports:** - https://gitlab.com/schenkch/acbici/issues
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
It has the following functionality:
|
|
74
|
+
- Bayesian calibration
|
|
75
|
+
- provide distribution for the model parameters
|
|
76
|
+
- estimate aleatoric and epistemic uncertainty
|
|
77
|
+
- Gaussian process surrogate models for faster predictions
|
|
78
|
+
- visualization of results
|
|
79
|
+
|
|
80
|
+
<br>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## Installation
|
|
85
|
+
Before installing ACBICI, you need to install make, git and one of the tested Python versions (3.9, 3.12, 3.13, 3.14).
|
|
86
|
+
|
|
87
|
+
Then, if using Python for other purposes than ACBICI, it is recommended to use a virtual environment, you can create one for example via:
|
|
88
|
+
- python3 -m venv acbici_env
|
|
89
|
+
or:
|
|
90
|
+
- virtualenv acbici_env
|
|
91
|
+
Then activate the virtual environment by:
|
|
92
|
+
- source acbici_env/bin/activate
|
|
93
|
+
|
|
94
|
+
Upgrade packaging tools (recommended):
|
|
95
|
+
pip install --upgrade pip setuptools wheel
|
|
96
|
+
|
|
97
|
+
or with Anaconda (Windows) in the Anaconda prompt to create a virtual environment:
|
|
98
|
+
- conda create -n myenv python=3.14
|
|
99
|
+
Then to activate it:
|
|
100
|
+
- conda activate myenv
|
|
101
|
+
|
|
102
|
+
Next you can install ACBICI in this virtual environment:
|
|
103
|
+
Either:
|
|
104
|
+
Go to the folder where you want to install it via: cd "installation_directory"
|
|
105
|
+
Clone and install the repo into that folder in the following way:
|
|
106
|
+
- git clone https://gitlab.com/schenkch/ACBICI.git
|
|
107
|
+
- cd ACBICI
|
|
108
|
+
- pip install -e .
|
|
109
|
+
Or:
|
|
110
|
+
Install as an already built pip package via:
|
|
111
|
+
pip install ACBICI (pending)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Examples and Tutorials
|
|
117
|
+
|
|
118
|
+
The example problems are in the examples subfolder at https://gitlab.com/schenkch/acbici/tree/master/examples.
|
|
119
|
+
|
|
120
|
+
To run all the examples and test their correctness, open a terminal and change into the `examples` directory of the downloaded repository:
|
|
121
|
+
cd examples
|
|
122
|
+
|
|
123
|
+
Execute the following command:
|
|
124
|
+
make
|
|
125
|
+
|
|
126
|
+
This will trigger the build process defined in the Makefile and run all the example problems within the folder.
|
|
127
|
+
This may take some time but if everything is set up correctly and all dependencies are satisfied, you should see output indicating whether each example has passed or failed.
|
|
128
|
+
In addition, each example subfolder contains a make file for automatic clean up of old results.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
## License
|
|
133
|
+
|
|
134
|
+
BSD-3
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## Authors
|
|
139
|
+
|
|
140
|
+
- Christina Schenk - IMDEA Materials Institute
|
|
141
|
+
- Ignacio Romero - UPM, IMDEA Materials Institute
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## Acknowledgements
|
|
145
|
+
|
|
146
|
+
- Yufei Liu - IMDEA Materials Institute
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## Please cite
|
|
151
|
+
<br>
|
|
152
|
+
|
|
153
|
+
- https://gitlab.com/schenkch/ACBICI.git
|
|
154
|
+
- C. Schenk, I. Romero (2026): A Framework for the Bayesian Calibration of Complex and Data-Scarce Models in Applied Sciences
|
acbici-2.1.0/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# <img alt="ACBICI" src="branding/ACBICI_Logo.svg" height="80">
|
|
2
|
+
|
|
3
|
+
[](https://gitlab.com/schenkch/ACBICI/-/blob/master/LICENSE)
|
|
4
|
+
[](https://gitlab.com/schenkch/ACBICI/)
|
|
5
|
+
[](https://acbici.readthedocs.io/en/latest/py-modindex.html)
|
|
6
|
+
|
|
7
|
+
ACBICI (A Configurable BayesIan Calibration and Inference package) is a Python package designed to calibrate models including uncertainty estimates.
|
|
8
|
+
|
|
9
|
+
- **Documentation:** - https://acbici.readthedocs.io / Alternatively can be compiled following the instructions in docs/ReadmeDoc.txt file.
|
|
10
|
+
- **Examples and Tutorials** - https://gitlab.com/schenkch/acbici/tree/master/examples
|
|
11
|
+
- **Source code:** - https://gitlab.com/schenkch/acbici/tree/master/src/ACBICI
|
|
12
|
+
- **Bug reports:** - https://gitlab.com/schenkch/acbici/issues
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
It has the following functionality:
|
|
16
|
+
- Bayesian calibration
|
|
17
|
+
- provide distribution for the model parameters
|
|
18
|
+
- estimate aleatoric and epistemic uncertainty
|
|
19
|
+
- Gaussian process surrogate models for faster predictions
|
|
20
|
+
- visualization of results
|
|
21
|
+
|
|
22
|
+
<br>
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
Before installing ACBICI, you need to install make, git and one of the tested Python versions (3.9, 3.12, 3.13, 3.14).
|
|
28
|
+
|
|
29
|
+
Then, if using Python for other purposes than ACBICI, it is recommended to use a virtual environment, you can create one for example via:
|
|
30
|
+
- python3 -m venv acbici_env
|
|
31
|
+
or:
|
|
32
|
+
- virtualenv acbici_env
|
|
33
|
+
Then activate the virtual environment by:
|
|
34
|
+
- source acbici_env/bin/activate
|
|
35
|
+
|
|
36
|
+
Upgrade packaging tools (recommended):
|
|
37
|
+
pip install --upgrade pip setuptools wheel
|
|
38
|
+
|
|
39
|
+
or with Anaconda (Windows) in the Anaconda prompt to create a virtual environment:
|
|
40
|
+
- conda create -n myenv python=3.14
|
|
41
|
+
Then to activate it:
|
|
42
|
+
- conda activate myenv
|
|
43
|
+
|
|
44
|
+
Next you can install ACBICI in this virtual environment:
|
|
45
|
+
Either:
|
|
46
|
+
Go to the folder where you want to install it via: cd "installation_directory"
|
|
47
|
+
Clone and install the repo into that folder in the following way:
|
|
48
|
+
- git clone https://gitlab.com/schenkch/ACBICI.git
|
|
49
|
+
- cd ACBICI
|
|
50
|
+
- pip install -e .
|
|
51
|
+
Or:
|
|
52
|
+
Install as an already built pip package via:
|
|
53
|
+
pip install ACBICI (pending)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Examples and Tutorials
|
|
59
|
+
|
|
60
|
+
The example problems are in the examples subfolder at https://gitlab.com/schenkch/acbici/tree/master/examples.
|
|
61
|
+
|
|
62
|
+
To run all the examples and test their correctness, open a terminal and change into the `examples` directory of the downloaded repository:
|
|
63
|
+
cd examples
|
|
64
|
+
|
|
65
|
+
Execute the following command:
|
|
66
|
+
make
|
|
67
|
+
|
|
68
|
+
This will trigger the build process defined in the Makefile and run all the example problems within the folder.
|
|
69
|
+
This may take some time but if everything is set up correctly and all dependencies are satisfied, you should see output indicating whether each example has passed or failed.
|
|
70
|
+
In addition, each example subfolder contains a make file for automatic clean up of old results.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
BSD-3
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## Authors
|
|
81
|
+
|
|
82
|
+
- Christina Schenk - IMDEA Materials Institute
|
|
83
|
+
- Ignacio Romero - UPM, IMDEA Materials Institute
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## Acknowledgements
|
|
87
|
+
|
|
88
|
+
- Yufei Liu - IMDEA Materials Institute
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## Please cite
|
|
93
|
+
<br>
|
|
94
|
+
|
|
95
|
+
- https://gitlab.com/schenkch/ACBICI.git
|
|
96
|
+
- C. Schenk, I. Romero (2026): A Framework for the Bayesian Calibration of Complex and Data-Scarce Models in Applied Sciences
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "ACBICI"
|
|
7
|
+
description = "A Configurable BayesIan Calibration and Inference package"
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
license = { file="LICENSE" }
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Christina Schenk" },
|
|
14
|
+
{ name = "Ignacio Romero" }
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
# Your setup.py had only Python version classifiers; you can add license/topic later if you want.
|
|
18
|
+
classifiers = [
|
|
19
|
+
"Programming Language :: Python :: 3.9",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Programming Language :: Python :: 3.14",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
# This matches install_requires=read_requirements()
|
|
26
|
+
# setuptools will read requirements.txt at build time
|
|
27
|
+
dynamic = ["version", "dependencies"]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://gitlab.com/schenkch/ACBICI"
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
[tool.setuptools.dynamic]
|
|
34
|
+
version = { attr = "ACBICI._version.__version__" }
|
|
35
|
+
dependencies = { file = ["requirements.txt"] }
|
|
36
|
+
|
|
37
|
+
[tool.setuptools]
|
|
38
|
+
package-dir = {"" = "src"}
|
|
39
|
+
|
|
40
|
+
[tool.setuptools.packages.find]
|
|
41
|
+
where = ["src"]
|
acbici-2.1.0/setup.cfg
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
#
|
|
3
|
+
# ACBICI v2.1.0
|
|
4
|
+
#
|
|
5
|
+
#
|
|
6
|
+
# Copyright (C) 2025 Fundación IMDEA Materiales (IMDEA Materials Institute), Getafe, Madrid, Spain and
|
|
7
|
+
# Universidad Politécnica de Madrid (UPM), Madrid, Spain
|
|
8
|
+
# Contact: christina.schenk@imdea.org, ignacio.romero@imdea.org
|
|
9
|
+
# Author: Christina Schenk, Ignacio Romero (christina.schenk@imdea.org, ignacio.romero@imdea.org)
|
|
10
|
+
#
|
|
11
|
+
# This file is part of ACBICI.
|
|
12
|
+
#
|
|
13
|
+
# # All rights reserved.
|
|
14
|
+
#
|
|
15
|
+
# ACBICI is licensed under the BSD 3-Clause License.
|
|
16
|
+
# You may use, redistribute, and modify this file under the terms of that license.
|
|
17
|
+
# See the LICENSE file in the repository root for full details.
|
|
18
|
+
#
|
|
19
|
+
# THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
|
20
|
+
#
|
|
21
|
+
###############################################################################
|
|
22
|
+
|
|
23
|
+
from ._version import __version__
|
|
24
|
+
|
|
25
|
+
from .calibrator import *
|
|
26
|
+
from .gprocess import *
|
|
27
|
+
from .kernels import *
|
|
28
|
+
from .priors import *
|
|
29
|
+
from .randomprocess import *
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
#
|
|
3
|
+
# ACBICI v2.1.0
|
|
4
|
+
#
|
|
5
|
+
#
|
|
6
|
+
# Copyright (C) 2025 Fundación IMDEA Materiales (IMDEA Materials Institute), Getafe, Madrid, Spain and
|
|
7
|
+
# Universidad Politécnica de Madrid (UPM), Madrid, Spain
|
|
8
|
+
# Contact: christina.schenk@imdea.org, ignacio.romero@imdea.org
|
|
9
|
+
# Author: Christina Schenk, Ignacio Romero (christina.schenk@imdea.org, ignacio.romero@imdea.org)
|
|
10
|
+
#
|
|
11
|
+
# This file is part of ACBICI.
|
|
12
|
+
#
|
|
13
|
+
# # All rights reserved.
|
|
14
|
+
#
|
|
15
|
+
# ACBICI is licensed under the BSD 3-Clause License.
|
|
16
|
+
# You may use, redistribute, and modify this file under the terms of that license.
|
|
17
|
+
# See the LICENSE file in the repository root for full details.
|
|
18
|
+
#
|
|
19
|
+
# THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
|
20
|
+
#
|
|
21
|
+
###############################################################################
|
|
22
|
+
|
|
23
|
+
__version__ = "2.1.0"
|