mesa / mesa/mesa-frames

Qualitative tests for mesa and mesa-frames benchmarks

Open
#106 2 comments 0 reactions 0 assignees View on GitHub
enhancement examples
Dominant language
Python
Stars
42
Forks
18
Avg merge
1m
Merged PRs (30d)
1

Description

Comparability between `mesa `and `mesa-frames `models are crucial for validating the correctness of model implementations.
To achieve this given the same seed and initial conditions, we need:
1. A compatibility layer that transforms a `mesa.Model `into a `mesa-frames.ModelDF `(this can be implemented relatively easily, I have already done some work on a local branch)
2. Consistent randomized operations (also including shuffling of agents) across frameworks. This is more challenging because of the different random number generators (`mesa `uses `random.Random `and `mesa-frames `uses `numpy.random.Generator`) and different shuffling (`mesa `uses `random.Random.shuffle` and `mesa-frames` uses the native DFs shuffle operation). Maybe with an appropriate decorator, we could substitute random operations for mesa-frames models at runtime, at the cost of performance but gaining the reproducibility.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing mesa.Model and mesa-frames.ModelDF implementations, along with the compatibility work mentioned in the issue. Compare random.Random and numpy.random.Generator behavior, including agent shuffling, under identical seeds and initial conditions. Done means qualitative benchmark tests demonstrate comparable results or clearly document the remaining differences.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.