mirror of
https://github.com/gama-platform/gama.git
synced 2026-07-09 18:21:00 +00:00
Page:
Ensure model reproducibility
Pages
3D_Graph
3D_shapefile_loading
ASCII_File_to_DEM_Representation
Accessing_Fields
Agent_Based_Clustering
AnalysingCodePerformance
Anisotropic_Diffusion_Simple_Field
AntsForaging.gaml
AntsForaging
Boids_3D_Motion
CallingR
Casting_Images
Changelog
City_Evacuation
CleaningGISData
CodeExamples
Community
Computation_of_the_shortest_path_on_a_Grid_of_Cells
ContinuousFieldofVision.gaml
ContinuousMove
Contour_Lines_Import
CreatingAReleaseOfGama
Creating_color_and_sort_cubes_by_color
DEM_Generator
DXF_to_Agents_Model
Developing Plugins
DifferentialEquations
Directed_Graph_Model
Drive_Random
ESRI_ASCII_to_grid_model
Ensure model reproducibility
Eroding_Volcano
Exhaustive list of GAMA Keywords
FallingObjects
Flow_on_Terrain
GEOJSON_File_Loading
G__BlankPage
G__GraphicalEditor
G__GraphicalEditorTutorial
GamlReferences
GetGamaDevCodeUsingEclipsePlugin
Graph_Generation
Graph_Generation_using_Agents
Headless mode for dummies
HeadlessBatch
HeadlessLegacy
HeadlessServer
HeadlessTutorial
Home
HydrologicaModel
Image_Manipulation
Image_Vectorisation
Index
InstallingDevVersion
Introduction To Gama Java API
K_Nearest_Neighbors
Life
MODAVI
MondrianCity
Movement_of_an_agent_on_different_paths
Movement_on_a_Graph_created_by_Polygons
Movement_on_a_Grid_of_Cells
Movement_on_a_Grid_of_Cells_
Moving3D
Moving_3D_Object
NetlogoTrafficmodel2
ODE_LotkaVolterra
OSM_file_to_Agents
Pedagogical Materials
PlayPool
PreviousConferences
Resources_TrainingVideos
RunningHeadless
SIRAnalysis
SIRAnalysis_step1
SIRAnalysis_step2
SIRAnalysis_step3
SIRAnalysis_step4
SIRAnalysis_step5
SIRAnalysis_step6
SIRAnalysis_step7
SIR_Split_in_Agents_Multiple_Strains
Save and restore simulations
Segregation_Agents
Series
Shapefile_to_Agents
Simple_Intersection
Simple_Traffic_Model
Soccer_Game
SpatialGraph3d
Stochastic_Differential_Equations
Strahler
Sugarscape
Team
Traffic_and_Pollution
TreesAndSeasons
UserResources
Using extensions
UsingGamaFlags
Wander
Waterflowgridelevation
Writing_Tests
comparison_ABM_EBM_SIR
developingGAMA
generate_pedestrian_paths
pedestrian_complex_environment
pedestrian_simple_environment
stairs
No results
1
Ensure model reproducibility
RoiArthurB edited this page 2024-02-22 19:17:53 +07:00
Table of Contents
Ensure model's reproducibility
There has been a huge effort made in GAMA development in order to ensure the reproducibility of the simulations, i.e. when several simulations of the same models are launched with the same random generator seed and same parameter values, they are supposed to provide the same results.
Nevertheless, GAMA provides several ways to speed up simulations runs, e.g. by making parallel the execution of some agents' behaviors. The use of parallelism may destroy the reproducibility of the simulations. More generally, there are many sources of uncertainty which can break this reproducibility.
How to ensure reproducibility of a model?
If you aim at reproducibility, you need to reduce as much as possible all the sources of uncertainty.
- Set the random number generator seed (explicitly set a value to the model's
seedglobal attribute). - Reduce the parallel execution of agents' behaviors.
- remove all the explicitly parallel execution, in particular remove / set to false all the
parallelfacets (e.g. in the loop, ask...). - Set all of GAMA's settings regarding parallelization to false. You can find them in the
Preferencesmenu, then under the tabExecutionat the sectionParallelismto disable them globally, or you can set them to false only in your experiment with the corresponding variables as shown belown:
- remove all the explicitly parallel execution, in particular remove / set to false all the
experiment 'any exp' {
init {
//Make grids schedule their agents in parallel
gama.pref_parallel_grids <- false;
//Make experiments run simulations in parallel
gama.pref_parallel_simulations <- true;
//Make species schedule their agents in parallel
gama.pref_parallel_species <- false;
}
}
- Displays are computed independently of the simulation, and in parallel. Limit computation and model modifications in the aspects.
- Remove any modification of the model in the aspects.
- Do not use any random operators in the aspects (e.g.
rnd,one_of,any...).
- The use of asynchronous communications (using network) with external applications, the use of files (in particular if they are changed externally) can also modify the behavior of simulations
- As a safety measure, you can also set your random number generator to
mersenneas others may not have been as much tested for reproducibility
Home
Platform
- Installation and Launching
- Workspace, Projects and Models
- Editing Models
- Running Experiments
- Running Headless
- Preferences
- Troubleshooting
Learn GAML step by step
- Introduction
- Manipulate basic Species
- Global Species
- Defining Advanced Species
- Defining GUI Experiment
- Exploring Models
- Optimizing Models
- Multi-Paradigm Modeling
Recipes
- Manipulate OSM Data
- Cleaning OSM Data
- Diffusion
- Using Database
- Using FIPA ACL
- Using BDI with BEN
- Using Driving Skill
- Manipulate dates
- Manipulate lights
- Using comodel
- Save and restore Simulations
- Using network
- Headless mode
- Using Headless
- Writing Unit Tests
- Ensure model's reproducibility
- Going further with extensions
GAML References
- Built-in Species
- Built-in Skills
- Built-in Architecture
- Statements
- Data Type
- File Type
- Expressions
- Exhaustive list of GAMA Keywords
Developing GAMA
- Installing the development version
- Developing Extensions
- Introduction to GAMA Java API
- Using GAMA flags
- Creating a release of GAMA
- Documentation generation