Skip to content

Module: SeedSelection

Niema Moshiri edited this page Sep 13, 2018 · 28 revisions

The SeedSelection module chooses which nodes in the ContactNetwork object to be initially infected. See the source code to see what is defined by the abstract class.

List of Implementations

  • There will be k seed clusters with m total seed individuals that are chosen as follows:
    • k initial seeds are chosen in an edge-weighted manner
    • For each of the k initial seeds, a random walk is performed starting at the initial seed
      • At each non-seed node in the walk, the node is chosen as a seed with probability p
      • The random walk ends when m/k nodes are chosen to be seeds in this cluster
  • Requirements:
    • None
  • Config Parameters:
    • seed_k: The desired number of seed clusters
    • seed_m: The desired total number of seed nodes
    • seed_p: The Bernoulli probability of selecting a given non-seed node during a walk
  • A user-specified number of seed nodes are selected from each community
    • The user must specify a separate number of seeds for each community
  • Requirements:
  • Config Parameters:
    • num_seeds_each_community: The desired number of seed nodes for each community (a list of integers)
  • The same number of seed nodes are selected uniformly from each community
  • Requirements:
  • Config Parameters:
    • num_seeds_per_community: The desired number of seed nodes per community (a single integer)
  • The probability at which a node is chosen is weighted by its degree
  • Requirements:
    • None
  • Config Parameters:
    • num_seeds: The desired number of seed nodes
  • Seed nodes are selected from the set of all nodes in the contact network with equal probability
  • Requirements:
    • None
  • Config Parameters:
    • num_seeds: The desired number of seed nodes
  • Transmission network is read from file
  • Requirements:
    • Must use EndCriteria_TransmissionFile module
    • Must use TransmissionNodeSample_TransmissionFile module
    • Must use TransmissionTimeSample_TransmissionFile module
  • Config Parameters: