Peter Lane d321279024 added tutorial examples | 11 ماه پیش | |
---|---|---|
.. | ||
README.md | 11 ماه پیش | |
Tutorial4Visualisations.java | 11 ماه پیش | |
tutorial-1-simple-model.lisp | 11 ماه پیش | |
tutorial-2-model-with-time.lisp | 11 ماه پیش | |
tutorial-3-evolving-models.lisp | 11 ماه پیش |
The files in this folder can be used as a basic tutorial of how to create and train models using GEMS.
This material was created by Peter Lane and used in conjunction with a workshop at AI-2023: see https://gems-science.netlify.app/workshop/
See file tutorial-1-simple-model.lisp
We first see how to construct a simple model, run it to observe its effect on its environment, and how to evaluate its performance.
See file tutorial-2-model-with-time.lisp
We add time to the model, updating the "interpret" function to advance the model's simulation clock, and the "evaluate-program" function to take account of time in evaluating the model's performance.
See file tutorial-3-evolving-models.lisp
This file presents a complete model of the Delayed Match to Sample (DMTS) task, and shows how to call the genetic programming system, recording information to files. We also show how the best models from the final population are extracted and post-processing used to generate a final set of candidate models.
See file Tutorial4Visualisations.java
Results from the DMTS task can be used to generate graphs and additional visualisations. The java script here takes the csv file output by the previous stage to generate a graph of the various components of the fitness function against generation number, and takes a file of model similarities to both cluster and visualise the models in a two-dimensional image.
Read the file header for information on obtaining the required Java libraries and running the script.
(Similar effects can be obtained using any data-analysis package such as Julia or R.)