Benchmark From Simulation#

class cosasi.benchmark.BenchmarkFromSimulation(contagion, t=None, information_type=None, observers=None)#

Benchmarking tool using provided simulation object to pass to algorithms when available.

Parameters
  • contagion (cosasi.contagion.static_network_contagion.StaticNetworkContagion) – an already-run contagion object

  • t (int) – the timestep corresponding to I

  • information_type (str or None (optional)) – describes the information the source inference algorithm receives e.g. “single snapshot”

  • observers (int or list) – If int, observers specifies the number of observation nodes If list, observers specifies the observation nodes directly

Methods

go()

Runs all available algorithms with the information we have on hand.

go()#

Runs all available algorithms with the information we have on hand.