Havi
scatering model and bayesian inference
Note from author
If you use our library on a research or paper please give us a citation
Installation
pip install havi
Usage
import havi as h
# scatering angles
incident_angles = [theta, phi, psi] # incidence angles - floats
scatered_angles = [theta, phi, psi] # scatering angles - floats
wavelength = 0.5
havi = h.Havi(incident_angles, scatered_angles, wavelength)
# surface boudaries for random variables
rms_height = (0.1, 0.8) # lower and higher boundaries
correlation_longitude = (0.1, 0.8) # lower and higher boundaries
dielectric_constant = (0.1, 0.8) # lower and higher boundaries
havi.set_boundaries(rms_height, correlation_longitude, dielectric_constant)
sigma = h.Tensor([0.5])
observed_data = h.Tensor([-12,-7,-8])
trace = havi.inference(sigma, observed) # you can plot the trace however you want OR
havi.plot()
API
This package exports:
A pytorch Tensor type
havi.Tensor
Our inference model abstraction, holds data of incident wave, scatered wave and their wave length:
havi.Havi(incident_angles: List[float], scatered_angles: List[float], wavelength: float)
Set boundaries for probabilistic variables
Havi.set_boundaries(rms_height: Tuple[float], correlation_longitude: Tuple[float], dielectric_constant: Tuple[float]) -> None
Runs MCMC(Monte Carlo Markov Chain) bayesian inference with NUTS kernel over scatering model
Havi.inference(sigma: Tensor, observed: Tensor) -> trace: dict
Plots all of the traced values from MCMC bayesian inference
Havi.plot() -> None
Metadata
Release files for havi 0.1.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 | Actions |
|---|---|---|---|---|
| havi-0.1.1.tar.gz | 11.0 kB | Without provenance | Details for havi-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| havi-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for havi-0.1.1-py3-none-any.whl |
Total release size: 22.6 kB
Release files / havi-0.1.1.tar.gz
| Download URL | havi-0.1.1.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06aadeace922aedaeff3e8d602ecd3c65f33df26c52f6d05a4c8411c61707913
|
|
BLAKE2b-256 checksum How to use checksums |
62c0a8bbe16f8c225e6b56ed2292498aa02c4193032d9406d759c17309e6e99b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / havi-0.1.1-py3-none-any.whl
| Download URL | havi-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b05631e2c449c8566208ce00fd4b0fd60319d619682cc7120eeb27d7350546d
|
|
BLAKE2b-256 checksum How to use checksums |
59e7f1057389cf8d631664531356ab2c9e7e5463f78101276bd7005e12864609
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for havi 0.1.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.