symgt
A package for group testing against symmetric distributions. Python 3.
pip install symgt
For example, to compute an optimal partition for a symmetric distribution...
import numpy as np
from symgt import models, algorithms, utils
# the representation alpha of symmetric distribution
alpha = np.array([0.5, 0.2, 0.0, 0.0, 0.0, 0.0, 0.2, 0.1, 0.0, 0.0, 0.0])
m = models.ExchangeableModel(10, alpha)
q = np.exp(m.log_q()) # the representation q of the symmetric distribution
multfn, cost = algorithms.symmetric_multfn(q) # cost is 6
intpart = utils.intpart_from_multfn(multfn) # intpart is [10]
# which differs from that computed using the IID approximation
m_iid = models.IIDModel(10, m.prevalence())
multfn_iid, _ = algorithms.symmetric_multfn(np.exp(m_iid.log_q()))
intpart_iid = utils.intpart_from_multfn(multfn_iid) # is [4, 3, 3]
utils.ECost(q, multfn) # 6
utils.ECost(q, multfn_iid) # 6.63
Metadata
Release files for symgt 0.0.18
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 | |
|---|---|---|---|---|
| symgt-0.0.18.tar.gz | 23.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| symgt-0.0.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.9 kB
Release files / symgt-0.0.18.tar.gz
| Download URL | symgt-0.0.18.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33e643f51a99f027d946847cca308dc41f48b94a0d4bfa179950c62418a53f75
|
|
BLAKE2b-256 checksum How to use checksums |
1109a635ae4137b7034f10bab4a0819a0ae059b78f79d866e4c21b7c0b1fdb90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.6
|
Release files / symgt-0.0.18-py3-none-any.whl
| Download URL | symgt-0.0.18-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d3777d6c6c3e7e84ab54d64446d5986f385e6461ba7c1c2bd4c741c3cb0a147
|
|
BLAKE2b-256 checksum How to use checksums |
f7903c39c1f99e924af1c7c8ece815a00632b4e46e8ee64b0f7b5db4c31c2e6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.6
|
Security for symgt 0.0.18
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.