Skip to content

refactor: Simplify Schelling code#2353

Merged
quaquel merged 5 commits intomesa:mainfrom
rht:simplify_schelling
Oct 18, 2024
Merged

refactor: Simplify Schelling code#2353
quaquel merged 5 commits intomesa:mainfrom
rht:simplify_schelling

Conversation

@rht
Copy link
Copy Markdown
Contributor

@rht rht commented Oct 14, 2024

Ported from mesa/mesa-examples#222.

@github-actions
Copy link
Copy Markdown

Performance benchmarks:

Model Size Init time [95% CI] Run time [95% CI]
BoltzmannWealth small 🔵 -0.5% [-1.6%, +0.6%] 🔵 -0.6% [-0.7%, -0.4%]
BoltzmannWealth large 🔵 -0.9% [-1.4%, -0.5%] 🔵 -2.1% [-2.8%, -1.4%]
Schelling small 🔵 -0.5% [-1.0%, +0.0%] 🔴 +16.8% [+16.6%, +17.1%]
Schelling large 🔵 +0.3% [-0.8%, +1.6%] 🔴 +9.6% [+8.3%, +10.9%]
WolfSheep small 🔵 +0.3% [+0.1%, +0.5%] 🔵 +2.5% [+2.3%, +2.7%]
WolfSheep large 🔵 +0.1% [-0.6%, +0.7%] 🔵 +2.2% [+0.5%, +3.6%]
BoidFlockers small 🔵 -1.4% [-1.8%, -1.0%] 🔵 -0.6% [-1.2%, -0.1%]
BoidFlockers large 🔵 -1.4% [-2.2%, -0.4%] 🔵 -0.6% [-0.9%, -0.4%]

@EwoutH EwoutH added trigger-benchmarks Special label that triggers the benchmarking CI and removed trigger-benchmarks Special label that triggers the benchmarking CI labels Oct 14, 2024
@github-actions
Copy link
Copy Markdown

Performance benchmarks:

Model Size Init time [95% CI] Run time [95% CI]
BoltzmannWealth small 🔵 +0.8% [+0.1%, +1.5%] 🔵 -0.4% [-0.5%, -0.3%]
BoltzmannWealth large 🔵 -0.0% [-0.3%, +0.2%] 🔵 -0.3% [-0.8%, +0.3%]
Schelling small 🔵 +0.3% [-0.2%, +0.8%] 🔴 +17.4% [+17.2%, +17.6%]
Schelling large 🔵 +0.3% [-0.3%, +0.8%] 🔴 +9.8% [+9.0%, +10.6%]
WolfSheep small 🔵 -0.1% [-0.3%, +0.1%] 🔵 +0.6% [+0.3%, +0.8%]
WolfSheep large 🔵 -0.5% [-1.0%, -0.2%] 🔵 -0.3% [-1.5%, +1.0%]
BoidFlockers small 🔵 -0.2% [-0.9%, +0.4%] 🔵 +0.0% [-0.7%, +0.7%]
BoidFlockers large 🔵 +2.3% [+1.7%, +2.9%] 🔵 +1.5% [+0.9%, +2.2%]

@quaquel quaquel merged commit dea931d into mesa:main Oct 18, 2024
quaquel added a commit to quaquel/mesa that referenced this pull request Oct 18, 2024
* refactor: Simplify Schelling code

Ported from mesa/mesa-examples#222.

* Update benchmarks/Schelling/schelling.py

Co-authored-by: Ewout ter Hoeven <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Jan Kwakkel <[email protected]>
Co-authored-by: Ewout ter Hoeven <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@EwoutH EwoutH added the example Changes the examples or adds to them. label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

example Changes the examples or adds to them.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants