doetools 0.1.1__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.
- doetools-0.1.1/CHANGELOG.md +23 -0
- doetools-0.1.1/CITATION.cff +10 -0
- doetools-0.1.1/LICENSE +21 -0
- doetools-0.1.1/MANIFEST.in +9 -0
- doetools-0.1.1/PKG-INFO +190 -0
- doetools-0.1.1/README.md +140 -0
- doetools-0.1.1/SECURITY.md +24 -0
- doetools-0.1.1/doetools/__init__.py +44 -0
- doetools-0.1.1/doetools/design/__init__.py +28 -0
- doetools-0.1.1/doetools/design/d_opt/__init__.py +7 -0
- doetools-0.1.1/doetools/design/d_opt/candidate_set.py +185 -0
- doetools-0.1.1/doetools/design/d_opt/d_opt.py +299 -0
- doetools-0.1.1/doetools/design/d_opt/d_opt_add.py +588 -0
- doetools-0.1.1/doetools/design/d_opt/optimizer.py +434 -0
- doetools-0.1.1/doetools/design/generic/__init__.py +5 -0
- doetools-0.1.1/doetools/design/generic/generic_design.py +219 -0
- doetools-0.1.1/doetools/design/mixture/__init__.py +9 -0
- doetools-0.1.1/doetools/design/mixture/constrained_mixture.py +240 -0
- doetools-0.1.1/doetools/design/mixture/mixture_cp_generator.py +665 -0
- doetools-0.1.1/doetools/design/mixture/simplex_centroid.py +184 -0
- doetools-0.1.1/doetools/design/mixture/simplex_lattice.py +191 -0
- doetools-0.1.1/doetools/design/process/__init__.py +14 -0
- doetools-0.1.1/doetools/design/process/box_behnken.py +136 -0
- doetools-0.1.1/doetools/design/process/central_composite.py +215 -0
- doetools-0.1.1/doetools/design/process/fractional_factorial.py +153 -0
- doetools-0.1.1/doetools/design/process/full_factorial.py +104 -0
- doetools-0.1.1/doetools/design/process/plackett_burman.py +207 -0
- doetools-0.1.1/doetools/graphs/__init__.py +3 -0
- doetools-0.1.1/doetools/graphs/data_builder.py +146 -0
- doetools-0.1.1/doetools/graphs/design_plot_builder.py +1242 -0
- doetools-0.1.1/doetools/graphs/plot_api_mixin.py +1110 -0
- doetools-0.1.1/doetools/graphs/renderers.py +3630 -0
- doetools-0.1.1/doetools/utils/__init__.py +26 -0
- doetools-0.1.1/doetools/utils/abstract_design.py +1085 -0
- doetools-0.1.1/doetools/utils/confirmation.py +296 -0
- doetools-0.1.1/doetools/utils/design_advisor.py +1360 -0
- doetools-0.1.1/doetools/utils/external_points.py +256 -0
- doetools-0.1.1/doetools/utils/factors.py +201 -0
- doetools-0.1.1/doetools/utils/grid_builder.py +306 -0
- doetools-0.1.1/doetools/utils/model_spec.py +375 -0
- doetools-0.1.1/doetools/utils/pareto.py +457 -0
- doetools-0.1.1/doetools/utils/pdf_report.py +918 -0
- doetools-0.1.1/doetools/utils/prediction.py +203 -0
- doetools-0.1.1/doetools/utils/regression.py +715 -0
- doetools-0.1.1/doetools/utils/summary.py +286 -0
- doetools-0.1.1/doetools/utils/upload.py +58 -0
- doetools-0.1.1/doetools.egg-info/PKG-INFO +190 -0
- doetools-0.1.1/doetools.egg-info/SOURCES.txt +51 -0
- doetools-0.1.1/doetools.egg-info/dependency_links.txt +1 -0
- doetools-0.1.1/doetools.egg-info/requires.txt +23 -0
- doetools-0.1.1/doetools.egg-info/top_level.txt +1 -0
- doetools-0.1.1/pyproject.toml +132 -0
- doetools-0.1.1/setup.cfg +4 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
7
|
+
where it is compatible with Python's versioning rules.
|
|
8
|
+
|
|
9
|
+
## [0.1.1] - 2026-09-05
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Initial public release of `doetools`.
|
|
14
|
+
- Experimental design generation and design recommendations.
|
|
15
|
+
- Process, mixture, constrained-mixture, and D-optimal designs.
|
|
16
|
+
- Import of externally generated experimental designs.
|
|
17
|
+
- OLS model fitting, diagnostics, prediction, and model validation.
|
|
18
|
+
- Interactive Plotly visualizations.
|
|
19
|
+
- Multi-objective optimisation.
|
|
20
|
+
- Excel-based experimental workflows.
|
|
21
|
+
- PDF report generation.
|
|
22
|
+
|
|
23
|
+
[0.1.1]: https://github.com/LorenzoTJ/doetools/releases/tag/v0.1.1
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use doetools in your work, please cite the software and the version used."
|
|
3
|
+
title: "doetools"
|
|
4
|
+
type: software
|
|
5
|
+
authors:
|
|
6
|
+
- family-names: "Teja"
|
|
7
|
+
given-names: "Lorenzo"
|
|
8
|
+
repository-code: "https://github.com/LorenzoTJ/doetools"
|
|
9
|
+
version: "0.1.1"
|
|
10
|
+
license: "MIT"
|
doetools-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lorenzo Teja
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
doetools-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: doetools
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Design of Experiments Python library
|
|
5
|
+
Author: Lorenzo Teja
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/LorenzoTJ/doetools
|
|
8
|
+
Project-URL: Repository, https://github.com/LorenzoTJ/doetools
|
|
9
|
+
Project-URL: Issues, https://github.com/LorenzoTJ/doetools/issues
|
|
10
|
+
Project-URL: Changelog, https://github.com/LorenzoTJ/doetools/blob/main/CHANGELOG.md
|
|
11
|
+
Keywords: design of experiments,doe,chemometrics,response surface methodology,mixture design,d-optimal
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Requires-Dist: numpy
|
|
29
|
+
Requires-Dist: pandas
|
|
30
|
+
Requires-Dist: scipy
|
|
31
|
+
Requires-Dist: plotly>=6.6.0
|
|
32
|
+
Requires-Dist: doe-toolbox>=1.3
|
|
33
|
+
Requires-Dist: fpdf2>=2.8.7
|
|
34
|
+
Requires-Dist: statsmodels>=0.14.6
|
|
35
|
+
Requires-Dist: openpyxl>=3.1.5
|
|
36
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
39
|
+
Requires-Dist: pytest-cov>=5.0; extra == "dev"
|
|
40
|
+
Requires-Dist: ruff>=0.12; extra == "dev"
|
|
41
|
+
Requires-Dist: twine>=6.0; extra == "dev"
|
|
42
|
+
Provides-Extra: docs
|
|
43
|
+
Requires-Dist: sphinx>=8.1.3; extra == "docs"
|
|
44
|
+
Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == "docs"
|
|
45
|
+
Requires-Dist: sphinxcontrib-mermaid>=2.0.1; extra == "docs"
|
|
46
|
+
Requires-Dist: nbsphinx>=0.9.8; extra == "docs"
|
|
47
|
+
Requires-Dist: ipython>=8.0; extra == "docs"
|
|
48
|
+
Requires-Dist: furo>=2025.12.19; extra == "docs"
|
|
49
|
+
Dynamic: license-file
|
|
50
|
+
|
|
51
|
+
<p align="center">
|
|
52
|
+
<img src="https://raw.githubusercontent.com/LorenzoTJ/doetools/main/docs/source/_static/doetools_logo.png" alt="doetools logo" width="320">
|
|
53
|
+
</p>
|
|
54
|
+
|
|
55
|
+
# doetools
|
|
56
|
+
|
|
57
|
+
[](https://github.com/LorenzoTJ/doetools/actions/workflows/ci.yml)
|
|
58
|
+
[](https://www.python.org/)
|
|
59
|
+
[](LICENSE)
|
|
60
|
+
|
|
61
|
+
`doetools` is a Python library for Design of Experiments (DoE). It supports the complete workflow
|
|
62
|
+
from choosing and generating a design to fitting response models, inspecting
|
|
63
|
+
diagnostics, exploring response surfaces, and validating predictions.
|
|
64
|
+
|
|
65
|
+
`doetools` is designed for scientists and engineers seeking a free, reproducible, and integrated alternative to manually assembling experimental design and analysis workflows.
|
|
66
|
+
|
|
67
|
+
To access the full documentation click [here](https://doetools.readthedocs.io/en/latest/).
|
|
68
|
+
|
|
69
|
+
## Features
|
|
70
|
+
|
|
71
|
+
* **Design recommendations** from high-level inputs;
|
|
72
|
+
* **Design Generation** for process and mixture factors;
|
|
73
|
+
* **Model Fitting** with ordinary least squares (OLS);
|
|
74
|
+
* **External-point prediction** from CSV/XLSX with mean-response confidence intervals;
|
|
75
|
+
* **Regression analysis** and **interactive visualizations** in Plotly;
|
|
76
|
+
* **Multi-objective optimisation**;
|
|
77
|
+
* **Model validation** through confirmation runs;
|
|
78
|
+
* **PDF reports** for a comprehensive summary of the experimental workflow.
|
|
79
|
+
|
|
80
|
+
## Supported designs
|
|
81
|
+
|
|
82
|
+
| Category | Designs |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| Screening | Plackett-Burman, fractional factorial, two-level full factorial |
|
|
85
|
+
| Response surface | Three-level full factorial, Central composite (CCC, CCF, CCI), Box-Behnken |
|
|
86
|
+
| Mixture | Simplex lattice, simplex centroid, constrained mixture |
|
|
87
|
+
| Optimal | D-optimal, D-optimal augmentation |
|
|
88
|
+
| External generated designs | Import design |
|
|
89
|
+
|
|
90
|
+
## Requirements and platforms
|
|
91
|
+
|
|
92
|
+
`doetools` requires Python 3.10 or newer and is distributed as a pure-Python,
|
|
93
|
+
platform-independent package. Continuous integration is configured for CPython
|
|
94
|
+
3.10 through 3.14 on Linux, plus a current Python version on Windows and macOS.
|
|
95
|
+
Actual platform availability also depends on the scientific Python dependencies
|
|
96
|
+
listed in [`pyproject.toml`](pyproject.toml).
|
|
97
|
+
|
|
98
|
+
## Installation
|
|
99
|
+
|
|
100
|
+
Install the latest stable release from PyPI with pip:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
python -m pip install doetools
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Or add `doetools` to a project managed by
|
|
107
|
+
[`uv`](https://docs.astral.sh/uv/):
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
uv add doetools
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
To install the current development version from GitHub:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
python -m pip install "git+https://github.com/LorenzoTJ/doetools.git@dev"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
For a local development checkout, see the
|
|
120
|
+
[full installation guide](https://doetools.readthedocs.io/en/latest/getting_started/installation.html#development-installation-from-source).
|
|
121
|
+
|
|
122
|
+
## Quick start
|
|
123
|
+
|
|
124
|
+
The following example creates a face-centered central composite design for two
|
|
125
|
+
continuous factors and exports a randomized experiment sheet for measuring yield:
|
|
126
|
+
|
|
127
|
+
```python
|
|
128
|
+
from doetools import CentralCompositeDesign, ContinuousFactor
|
|
129
|
+
|
|
130
|
+
factors = {
|
|
131
|
+
"Temperature": ContinuousFactor(
|
|
132
|
+
n_levels=3,
|
|
133
|
+
lower_bound=60,
|
|
134
|
+
upper_bound=80,
|
|
135
|
+
),
|
|
136
|
+
"Pressure": ContinuousFactor(
|
|
137
|
+
n_levels=3,
|
|
138
|
+
lower_bound=1,
|
|
139
|
+
upper_bound=3,
|
|
140
|
+
),
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
design = CentralCompositeDesign(
|
|
144
|
+
factors=factors,
|
|
145
|
+
design="ccf",
|
|
146
|
+
center_points=3,
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
print(design.get_design_summary())
|
|
150
|
+
print(design.get_design_matrix())
|
|
151
|
+
|
|
152
|
+
design.export_experiments(
|
|
153
|
+
responses=["Yield"],
|
|
154
|
+
randomize=True,
|
|
155
|
+
destination="experiments.xlsx",
|
|
156
|
+
)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
A typical analysis continues by completing the exported workbook, importing the
|
|
160
|
+
responses with `design.import_responses(...)`, defining `ModelTerms`, and calling
|
|
161
|
+
`design.compute_mlr_model()`.
|
|
162
|
+
|
|
163
|
+
## Documentation and examples
|
|
164
|
+
|
|
165
|
+
The documentation is built with Sphinx.
|
|
166
|
+
|
|
167
|
+
- [Full documentation source](https://doetools.readthedocs.io/en/latest/)
|
|
168
|
+
- [Complete example notebooks](https://doetools.readthedocs.io/en/latest/examples/index.html)
|
|
169
|
+
|
|
170
|
+
## Development
|
|
171
|
+
|
|
172
|
+
The development version of doetools is available on [GitHub](https://github.com/LorenzoTJ/doetools). Bug reports and feature suggestions are welcome through GitHub Issues. Detailed contributor and development guidelines will be provided in a future release.
|
|
173
|
+
|
|
174
|
+
## Project status and scope
|
|
175
|
+
|
|
176
|
+
- `doetools` is currently in its initial public-release stage (`0.1.x`). Backward compatibility is not guaranteed until version `1.0`; API changes and other notable updates are documented in the [CHANGELOG](CHANGELOG.md)
|
|
177
|
+
- Statistical results should be interpreted in the context of the experimental design, model assumptions, and relevant domain expertise. `doetools` does not replace experimental review or laboratory quality procedures.
|
|
178
|
+
- Models are currently fitted independently for each response using ordinary least squares (OLS). Correlated-response, time-series, Bayesian, mixed-effects, and other specialized modelling approaches are outside the current scope.
|
|
179
|
+
|
|
180
|
+
## Citation
|
|
181
|
+
|
|
182
|
+
If `doetools` contributes to published work, cite the software and the exact
|
|
183
|
+
version used. GitHub can generate citation metadata from [`CITATION.cff`](CITATION.cff).
|
|
184
|
+
No archival DOI has been assigned yet.
|
|
185
|
+
|
|
186
|
+
## License
|
|
187
|
+
|
|
188
|
+
`doetools` is released under the [MIT License](LICENSE). Third-party packages and
|
|
189
|
+
the publications cited by the documentation remain under their respective
|
|
190
|
+
licenses and terms.
|
doetools-0.1.1/README.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/LorenzoTJ/doetools/main/docs/source/_static/doetools_logo.png" alt="doetools logo" width="320">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# doetools
|
|
6
|
+
|
|
7
|
+
[](https://github.com/LorenzoTJ/doetools/actions/workflows/ci.yml)
|
|
8
|
+
[](https://www.python.org/)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
|
|
11
|
+
`doetools` is a Python library for Design of Experiments (DoE). It supports the complete workflow
|
|
12
|
+
from choosing and generating a design to fitting response models, inspecting
|
|
13
|
+
diagnostics, exploring response surfaces, and validating predictions.
|
|
14
|
+
|
|
15
|
+
`doetools` is designed for scientists and engineers seeking a free, reproducible, and integrated alternative to manually assembling experimental design and analysis workflows.
|
|
16
|
+
|
|
17
|
+
To access the full documentation click [here](https://doetools.readthedocs.io/en/latest/).
|
|
18
|
+
|
|
19
|
+
## Features
|
|
20
|
+
|
|
21
|
+
* **Design recommendations** from high-level inputs;
|
|
22
|
+
* **Design Generation** for process and mixture factors;
|
|
23
|
+
* **Model Fitting** with ordinary least squares (OLS);
|
|
24
|
+
* **External-point prediction** from CSV/XLSX with mean-response confidence intervals;
|
|
25
|
+
* **Regression analysis** and **interactive visualizations** in Plotly;
|
|
26
|
+
* **Multi-objective optimisation**;
|
|
27
|
+
* **Model validation** through confirmation runs;
|
|
28
|
+
* **PDF reports** for a comprehensive summary of the experimental workflow.
|
|
29
|
+
|
|
30
|
+
## Supported designs
|
|
31
|
+
|
|
32
|
+
| Category | Designs |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| Screening | Plackett-Burman, fractional factorial, two-level full factorial |
|
|
35
|
+
| Response surface | Three-level full factorial, Central composite (CCC, CCF, CCI), Box-Behnken |
|
|
36
|
+
| Mixture | Simplex lattice, simplex centroid, constrained mixture |
|
|
37
|
+
| Optimal | D-optimal, D-optimal augmentation |
|
|
38
|
+
| External generated designs | Import design |
|
|
39
|
+
|
|
40
|
+
## Requirements and platforms
|
|
41
|
+
|
|
42
|
+
`doetools` requires Python 3.10 or newer and is distributed as a pure-Python,
|
|
43
|
+
platform-independent package. Continuous integration is configured for CPython
|
|
44
|
+
3.10 through 3.14 on Linux, plus a current Python version on Windows and macOS.
|
|
45
|
+
Actual platform availability also depends on the scientific Python dependencies
|
|
46
|
+
listed in [`pyproject.toml`](pyproject.toml).
|
|
47
|
+
|
|
48
|
+
## Installation
|
|
49
|
+
|
|
50
|
+
Install the latest stable release from PyPI with pip:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
python -m pip install doetools
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Or add `doetools` to a project managed by
|
|
57
|
+
[`uv`](https://docs.astral.sh/uv/):
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
uv add doetools
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
To install the current development version from GitHub:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
python -m pip install "git+https://github.com/LorenzoTJ/doetools.git@dev"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
For a local development checkout, see the
|
|
70
|
+
[full installation guide](https://doetools.readthedocs.io/en/latest/getting_started/installation.html#development-installation-from-source).
|
|
71
|
+
|
|
72
|
+
## Quick start
|
|
73
|
+
|
|
74
|
+
The following example creates a face-centered central composite design for two
|
|
75
|
+
continuous factors and exports a randomized experiment sheet for measuring yield:
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
from doetools import CentralCompositeDesign, ContinuousFactor
|
|
79
|
+
|
|
80
|
+
factors = {
|
|
81
|
+
"Temperature": ContinuousFactor(
|
|
82
|
+
n_levels=3,
|
|
83
|
+
lower_bound=60,
|
|
84
|
+
upper_bound=80,
|
|
85
|
+
),
|
|
86
|
+
"Pressure": ContinuousFactor(
|
|
87
|
+
n_levels=3,
|
|
88
|
+
lower_bound=1,
|
|
89
|
+
upper_bound=3,
|
|
90
|
+
),
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
design = CentralCompositeDesign(
|
|
94
|
+
factors=factors,
|
|
95
|
+
design="ccf",
|
|
96
|
+
center_points=3,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
print(design.get_design_summary())
|
|
100
|
+
print(design.get_design_matrix())
|
|
101
|
+
|
|
102
|
+
design.export_experiments(
|
|
103
|
+
responses=["Yield"],
|
|
104
|
+
randomize=True,
|
|
105
|
+
destination="experiments.xlsx",
|
|
106
|
+
)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
A typical analysis continues by completing the exported workbook, importing the
|
|
110
|
+
responses with `design.import_responses(...)`, defining `ModelTerms`, and calling
|
|
111
|
+
`design.compute_mlr_model()`.
|
|
112
|
+
|
|
113
|
+
## Documentation and examples
|
|
114
|
+
|
|
115
|
+
The documentation is built with Sphinx.
|
|
116
|
+
|
|
117
|
+
- [Full documentation source](https://doetools.readthedocs.io/en/latest/)
|
|
118
|
+
- [Complete example notebooks](https://doetools.readthedocs.io/en/latest/examples/index.html)
|
|
119
|
+
|
|
120
|
+
## Development
|
|
121
|
+
|
|
122
|
+
The development version of doetools is available on [GitHub](https://github.com/LorenzoTJ/doetools). Bug reports and feature suggestions are welcome through GitHub Issues. Detailed contributor and development guidelines will be provided in a future release.
|
|
123
|
+
|
|
124
|
+
## Project status and scope
|
|
125
|
+
|
|
126
|
+
- `doetools` is currently in its initial public-release stage (`0.1.x`). Backward compatibility is not guaranteed until version `1.0`; API changes and other notable updates are documented in the [CHANGELOG](CHANGELOG.md)
|
|
127
|
+
- Statistical results should be interpreted in the context of the experimental design, model assumptions, and relevant domain expertise. `doetools` does not replace experimental review or laboratory quality procedures.
|
|
128
|
+
- Models are currently fitted independently for each response using ordinary least squares (OLS). Correlated-response, time-series, Bayesian, mixed-effects, and other specialized modelling approaches are outside the current scope.
|
|
129
|
+
|
|
130
|
+
## Citation
|
|
131
|
+
|
|
132
|
+
If `doetools` contributes to published work, cite the software and the exact
|
|
133
|
+
version used. GitHub can generate citation metadata from [`CITATION.cff`](CITATION.cff).
|
|
134
|
+
No archival DOI has been assigned yet.
|
|
135
|
+
|
|
136
|
+
## License
|
|
137
|
+
|
|
138
|
+
`doetools` is released under the [MIT License](LICENSE). Third-party packages and
|
|
139
|
+
the publications cited by the documentation remain under their respective
|
|
140
|
+
licenses and terms.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Security policy
|
|
2
|
+
|
|
3
|
+
## Supported versions
|
|
4
|
+
|
|
5
|
+
Before the first public release, security fixes are applied to the latest commit on
|
|
6
|
+
the active development branch. After release, the latest published minor release is
|
|
7
|
+
the supported line unless a release note states otherwise.
|
|
8
|
+
|
|
9
|
+
## Reporting a vulnerability
|
|
10
|
+
|
|
11
|
+
Please do not disclose a suspected vulnerability in a public issue. Use GitHub's
|
|
12
|
+
private vulnerability reporting for this repository:
|
|
13
|
+
|
|
14
|
+
1. Open the repository's **Security** tab.
|
|
15
|
+
2. Select **Advisories**.
|
|
16
|
+
3. Select **Report a vulnerability**.
|
|
17
|
+
|
|
18
|
+
Include a clear description, affected versions, reproduction steps, and the likely
|
|
19
|
+
impact. If private vulnerability reporting is not yet enabled, contact the
|
|
20
|
+
maintainer privately through the contact method shown on the maintainer's GitHub
|
|
21
|
+
profile.
|
|
22
|
+
|
|
23
|
+
You should receive an acknowledgement after the report is reviewed. Disclosure and
|
|
24
|
+
release timing will be coordinated with the reporter when practical.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Public package interface for :mod:`doetools`."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.1.1"
|
|
4
|
+
|
|
5
|
+
from .design import (
|
|
6
|
+
BoxBehnkenDesign,
|
|
7
|
+
CentralCompositeDesign,
|
|
8
|
+
ConstrainedMixtureDesign,
|
|
9
|
+
DOptAddDesign,
|
|
10
|
+
DOptDesign,
|
|
11
|
+
FractionalFactorialDesign,
|
|
12
|
+
FullFactorialDesign,
|
|
13
|
+
ImportDesign,
|
|
14
|
+
PlackettBurmanDesign,
|
|
15
|
+
SimplexCentroidDesign,
|
|
16
|
+
SimplexLatticeDesign,
|
|
17
|
+
)
|
|
18
|
+
from .utils import (
|
|
19
|
+
CategoricalFactor,
|
|
20
|
+
ContinuousFactor,
|
|
21
|
+
MixtureFactor,
|
|
22
|
+
ModelTerms,
|
|
23
|
+
suggest_design,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
__all__ = [
|
|
27
|
+
"BoxBehnkenDesign",
|
|
28
|
+
"CategoricalFactor",
|
|
29
|
+
"CentralCompositeDesign",
|
|
30
|
+
"ConstrainedMixtureDesign",
|
|
31
|
+
"ContinuousFactor",
|
|
32
|
+
"DOptAddDesign",
|
|
33
|
+
"DOptDesign",
|
|
34
|
+
"FractionalFactorialDesign",
|
|
35
|
+
"FullFactorialDesign",
|
|
36
|
+
"ImportDesign",
|
|
37
|
+
"MixtureFactor",
|
|
38
|
+
"ModelTerms",
|
|
39
|
+
"PlackettBurmanDesign",
|
|
40
|
+
"SimplexCentroidDesign",
|
|
41
|
+
"SimplexLatticeDesign",
|
|
42
|
+
"suggest_design",
|
|
43
|
+
"__version__",
|
|
44
|
+
]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from .d_opt import DOptAddDesign, DOptDesign
|
|
2
|
+
from .generic import ImportDesign
|
|
3
|
+
from .mixture import (
|
|
4
|
+
ConstrainedMixtureDesign,
|
|
5
|
+
SimplexCentroidDesign,
|
|
6
|
+
SimplexLatticeDesign,
|
|
7
|
+
)
|
|
8
|
+
from .process import (
|
|
9
|
+
BoxBehnkenDesign,
|
|
10
|
+
CentralCompositeDesign,
|
|
11
|
+
FractionalFactorialDesign,
|
|
12
|
+
FullFactorialDesign,
|
|
13
|
+
PlackettBurmanDesign,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
__all__ = [
|
|
17
|
+
"BoxBehnkenDesign",
|
|
18
|
+
"CentralCompositeDesign",
|
|
19
|
+
"ConstrainedMixtureDesign",
|
|
20
|
+
"DOptAddDesign",
|
|
21
|
+
"DOptDesign",
|
|
22
|
+
"FractionalFactorialDesign",
|
|
23
|
+
"FullFactorialDesign",
|
|
24
|
+
"ImportDesign",
|
|
25
|
+
"PlackettBurmanDesign",
|
|
26
|
+
"SimplexCentroidDesign",
|
|
27
|
+
"SimplexLatticeDesign"
|
|
28
|
+
]
|