-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
enhancementImprovements to existing features or performance.Improvements to existing features or performance.examplesadditions or modifications to sample modelsadditions or modifications to sample models
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:
- A compatibility layer that transforms a
mesa.Model
into amesa-frames.ModelDF
(this can be implemented relatively easily, I have already done some work on a local branch) - Consistent randomized operations (also including shuffling of agents) across frameworks. This is more challenging because of the different random number generators (
mesa
usesrandom.Random
andmesa-frames
usesnumpy.random.Generator
) and different shuffling (mesa
usesrandom.Random.shuffle
andmesa-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.
Metadata
Metadata
Assignees
Labels
enhancementImprovements to existing features or performance.Improvements to existing features or performance.examplesadditions or modifications to sample modelsadditions or modifications to sample models