sir.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:epydemic 作者: simoninireland 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号