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

Shift sugarscape example to using create_agent #2544

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

quaquel
Copy link
Member

@quaquel quaquel commented Dec 11, 2024

Shift sugarscape example to using create_agent.

I want to update this example with property layers at some point, so I only moved the Trader agent over.

@quaquel quaquel requested a review from tpike3 December 11, 2024 20:25
Copy link

Performance benchmarks:

Model Size Init time [95% CI] Run time [95% CI]
BoltzmannWealth small 🔵 -1.1% [-2.2%, +0.0%] 🔵 +1.2% [+1.1%, +1.3%]
BoltzmannWealth large 🔵 -0.9% [-1.5%, -0.3%] 🔵 +0.2% [-2.1%, +2.2%]
Schelling small 🔵 -1.0% [-1.2%, -0.8%] 🔵 -0.9% [-1.1%, -0.7%]
Schelling large 🔵 -1.5% [-1.9%, -1.1%] 🔵 -2.3% [-3.5%, -1.2%]
WolfSheep small 🔵 -0.2% [-0.6%, +0.1%] 🔵 -1.0% [-2.2%, +0.1%]
WolfSheep large 🔵 +0.4% [-0.8%, +1.4%] 🔵 -2.7% [-4.1%, -1.5%]
BoidFlockers small 🔵 +2.4% [+1.9%, +2.9%] 🔵 +0.5% [-0.3%, +1.3%]
BoidFlockers large 🔵 +1.6% [+0.8%, +2.3%] 🔵 +1.1% [+0.6%, +1.7%]

Copy link
Member

@tpike3 tpike3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM--- Create agent is very cool and makes sense about the property layer

@tpike3 tpike3 merged commit e922d29 into projectmesa:main Dec 11, 2024
11 checks passed
@quaquel quaquel deleted the create_agent_sugarscape branch December 12, 2024 07:29
@EwoutH EwoutH added the example Changes the examples or adds to them. label Dec 14, 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