Tune predator prey model parameters#27
Tune predator prey model parameters#27tkoskela wants to merge 6 commits intocarpentries-incubator:mainfrom
Conversation
Ensure prey (1) have children, which (2) aren’t predators
🆗 Pre-flight checks passed 😃This pull request has been checked and contains no modified workflow files or spoofing. It should be safe to Approve and Run the workflows that need maintainer approval. |
|
Thanks @tkoskela for looking into this. Yep—it’s very tricky to tune the parameters to give nice results, but this is certainly a big improvement over the previous version. A couple of notes:
|
|
More than happy to defer to @JostMigenda's judgement on approving this, looks reasonable at a glance. Please, remember to briefly review the instructor notes/solution incase anything subtle has changed there. I think the original code was heavily inspired by our FLAMEGPU Python tutorial, which is probably inspired by a common simple agent-based model. Though that subtle bug looks like something FLAMEGPU would handle natively so it's almost certainly my mistake. https://github.com/FLAMEGPU/FLAMEGPU2-tutorial-python Thanks for supporting this project! |
|
Not sure why that workflow is failing, it's something managed by carpentries developers. There is a warning about their new docker workflow, I'll try and remember to flag it to them on Slack when I'm on my office machine tomorrow. Edit: Other people have reported the same issue since yesterday afternoon, so it will probably be resolved before the end of the week. Feel free to ignore it, the build markdown one passes. 🤷♂️ |
Yeah, I was using Copilot for tuning the parameters. I get your point about the comments, they're not very useful and I've removed them and fixed the formatting. |
I sat down with @JostMigenda in a workshop and had a go at tuning the parameters of the predator prey model to get it to oscillate between predator and prey populations. It is not quite there yet, the prey still all die, but works a bit better.