yannickoswald / covpol

COVPOL: An agent-based model of the international COVID-19 policy response
3 stars 1 forks source link

Use random seed for reproducibility #23

Open ksuchak1990 opened 1 year ago

ksuchak1990 commented 1 year ago

Would it be worth us setting a random seed at the top of the script for producing figures so that every time someone runs the script they get reproducible results?

nickmalleson commented 1 year ago

Yes great idea. I am planning to go through the various jobs assigned to me at the beginning of next week and am happy to implement this .

yannickoswald commented 1 year ago

yes thanks for the idea. and happy if someone implements this.

One potential counterpoint would be i think it is also good for people to see if no_of_iterations = 10 for example that the variability is very high. And that with increasing particle numbers the stochasticity remains, but stabilizes around one pattern. Also the figures in the paper did not use this so wont be exactly the same anway.

ksuchak1990 commented 1 year ago

yes thanks for the idea. and happy if someone implements this.

One potential counterpoint would be i think it is also good for people to see if no_of_iterations = 10 for example that the variability is very high. And that with increasing particle numbers the stochasticity remains, but stabilizes around one pattern. Also the figures in the paper did not use this so wont be exactly the same anway.

I think this should be fine as long as we have a comment in the code noting this?

yannickoswald commented 1 year ago

ok sure