Simulate an infection process on a graph as well as create a credible set for the patient zero given a set of infected nodes on a graph.
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file infect-net-inference-0.0.2.tar.gz.
File metadata
- Download URL: infect-net-inference-0.0.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71f0cfab4b5a9d884dbc99938805a66a0d1b49294b54802b2bc494137bc94c61
|
|
| MD5 |
87cc8d10f7ee47f14040945aa3efabaf
|
|
| BLAKE2b-256 |
f2e444c011178fe85bfbc390bfa3f454788b904cb7fd738f063d3e35452544a7
|
File details
Details for the file infect_net_inference-0.0.2-py3-none-any.whl.
File metadata
- Download URL: infect_net_inference-0.0.2-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca1c52f6351aa27eb6005be28e603a1d3f188797909d4d4e65366fbecf648519
|
|
| MD5 |
2f1452690d29f43b87113e414730da16
|
|
| BLAKE2b-256 |
c1e350e12bbe575aade2c141b3424b2fe41819f911041e80b2b01710747a9c09
|