Adaptive Stratification
This package provides an implementation of the adaptive stratification sampling method to estimate quantities of interest of the form Q = E(f(Y)), where the random vector Y follows a d-dimensional uniform distribution on the unit-cube and f is a given function.
Example: Using the Sampler
# Import the module containing the sampling routines
from stratification import AdaptiveStratification
# Create a sampler for function func
sampler = AdaptiveStratification(func, d, N_max, N_new_per_stratum, alpha, type='hyperrect')
# Solve (return a tuple)
result = sampler.solve()
Input arguments:
func: implementation of given function of interest that defines the quantity of interest. It needs to be callable, accepting one m-times-n-dimensional numpy array as input and returns a m-dimensional numpy array;d: dimension of the stochastic domain;N_max: number of total samples to be used;N_new_per_stratum: targeted average number of samples per stratum, controlling the adaptation;alpha: number between zero and one, defining the hybrid allocation rule;type: type of tessellation procedure, i.e., via hyper-rectangles (type='hyperrect') or simplices (type='simplex')
More Information
See the Github repository for more details.
Metadata
Release files for adaptive-stratification 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| adaptive_stratification-1.0.1.tar.gz | 13.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adaptive_stratification-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.2 kB
Release files / adaptive_stratification-1.0.1.tar.gz
| Download URL | adaptive_stratification-1.0.1.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdc01a4e04d045b002510ba391f293dcc45618bde4d027ac1ef348f1e0c6e988
|
|
BLAKE2b-256 checksum How to use checksums |
20b0328411ec1909cc0e97b3b9f014b0ce46faa0a8f12da217fde001ce478e9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.24.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.51.0 importlib-metadata/3.9.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.5
|
Release files / adaptive_stratification-1.0.1-py3-none-any.whl
| Download URL | adaptive_stratification-1.0.1-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4a82d0e699302fa62b1b0e5c138bd06ca404094f11a902327f2c1ba1095df1e
|
|
BLAKE2b-256 checksum How to use checksums |
ced2667f938b6552fa5f36820b619ae1da9879a638073f864270fb15fd84b8cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.24.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.51.0 importlib-metadata/3.9.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.5
|
Security for adaptive-stratification 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.