def setUp( self ):
'''Set up the experimental parameters and experiment.'''
# single experiment
self._params = dict(pInfect = 0.1,
pInfected = 0.01,
pRecover = 0.05)
self._network = networkx.erdos_renyi_graph(1000, 0.005)
# lab run
self._lab = epyc.Lab()
self._lab['pInfect'] = [ 0.1, 0.2, 0.3 ]
self._lab['pInfected'] = [ 0.01 ]
self._lab['pRecover'] = [ 0.05, 0.1, 1 ]
# model
self._model = SIS()
# maximum time needed as disease may be endemic
self._maxTime = 2000
评论列表
文章目录