def setUp( self ):
'''Set up the experimental parameters and experiment.'''
# single experiment
self._params = dict(pInfect = 0.1,
pInfected = 0.01,
pRemove = 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 = SIR()
# no maximum time needed
self._maxTime = None
评论列表
文章目录