Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我试着用python复刻出来了一个,但是运行速度上有先天劣势🙄️,看着没那么流畅 #62

Open
xiezuoru opened this issue Feb 10, 2020 · 4 comments

Comments

@xiezuoru
Copy link

我试着用python复刻出来了一个,但是运行速度上有先天劣势🙄️,看着没那么流畅

Originally posted by @y1han in #5 (comment)

能不能分享一下?中小学需要用python的范例。

@y1han
Copy link

y1han commented Feb 11, 2020

就在我的repo里就有,链接是这个 https://github.com/y1han/virus-simulation

@y1han
Copy link

y1han commented Feb 11, 2020

默认是SEIRS的模型,可以通过调整参数来达到其他模型的效果,比如关闭Recover类,关闭致死,E类同样可传染等

@xiezuoru
Copy link
Author

xiezuoru commented Feb 11, 2020 via email

@y1han
Copy link

y1han commented Feb 11, 2020

现在我一次计算的时间压到0.7s了,其中0.5s是计算距离矩阵的时间,这个时间我没有想到其他的办法压缩,java直接循环都比我这快😂。其他的总体都在0.2s内其实还好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants