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
infect-net-inference-0.0.2.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for infect-net-inference-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f0cfab4b5a9d884dbc99938805a66a0d1b49294b54802b2bc494137bc94c61 |
|
MD5 | 87cc8d10f7ee47f14040945aa3efabaf |
|
BLAKE2b-256 | f2e444c011178fe85bfbc390bfa3f454788b904cb7fd738f063d3e35452544a7 |
Close
Hashes for infect_net_inference-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca1c52f6351aa27eb6005be28e603a1d3f188797909d4d4e65366fbecf648519 |
|
MD5 | 2f1452690d29f43b87113e414730da16 |
|
BLAKE2b-256 | c1e350e12bbe575aade2c141b3424b2fe41819f911041e80b2b01710747a9c09 |