Infection
This package will allow you to create a credible set for the patient zero given a set of infected nodes on a graph.
Installation
Run the following to install:
pip install infect-net-inference
Usage
from infect_tools_noisy_conv import *
# Simulate an infection on graf. Outputs a list containing the infected nodes in the order they were infected
order = simulateInfection(graf, first, n_inf, q)
# Create a dict mapping each node index to the posterior root probability
freq = inferInfection(foo, q, **mcmc_params)
Release files for infect-net-inference 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| infect-net-inference-0.0.2.tar.gz | 10.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| infect_net_inference-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.1 kB
Release files / infect-net-inference-0.0.2.tar.gz
| Download URL | infect-net-inference-0.0.2.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71f0cfab4b5a9d884dbc99938805a66a0d1b49294b54802b2bc494137bc94c61
|
|
BLAKE2b-256 checksum How to use checksums |
f2e444c011178fe85bfbc390bfa3f454788b904cb7fd738f063d3e35452544a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.10
|
Release files / infect_net_inference-0.0.2-py3-none-any.whl
| Download URL | infect_net_inference-0.0.2-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca1c52f6351aa27eb6005be28e603a1d3f188797909d4d4e65366fbecf648519
|
|
BLAKE2b-256 checksum How to use checksums |
c1e350e12bbe575aade2c141b3424b2fe41819f911041e80b2b01710747a9c09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.10
|