|
Demonstration Field
Demonstration Field
This page shows a demonstration of an artificial intelligence algorithm based on an evolutionary adaptations of a script. The field shows how a script guides the cow over the field. The script lets the cow go forward or turn left or right. The script also has an option to jump to another part of the script. Each step of the script is executed and the script pointer - the gray bar - is advanced to the next line. When the cow tries to go forward and it hits a wall, it will skip one instruction. A number of worker threads try to find the best script that can lead a cow over a field. It mutates one of a population of successful scripts and test it performance on the fields. The performance is measured by the number of fields it can visit and how many instructions it has to execute. The number of steps in the scripts is used as a penalty so script that have fewer steps score higher. The demonstration show the power of random mutations. Just by trying any random mutation and select the best it will come up with a good working solution. This display visualizes the simulated 40x25 grid environment and the cow navigating in real time. The cow is guided by script instruction by instruction, turning and moving forward while running into walls and tracking visited tiles (filled in gray). Its purpose is to visit all tiles using the most efficient path, while using the shorted script. The script it is using, is shown on the right. The current instruction is highlighted. The instructions will turn from red to black when they have been used. Use the bottom tabs to switch between training fields, adjust playback speed, or start, stop, and restart the simulation.
Best Score:
Generations Attempts
|
Active Script
|
|
Best Score/generation per worker
Best Score/generation per worker
Real-time convergence graph plotting the highest fitness score discovered by each parallel background
Web Worker thread across generations. Fitness corresponds to the average explored cells minus movement and
genome-length penalties evaluated across all fields in the training set. The best scripts are shown on the right.
You can select any of the scripts to show them in the demonstration field. When the best (upper) script is selected
the selection will automatically skip to a better one, when it is found.
|
Best scripts as found in time
|
|
Field Editor
Field Editor
Here you can add fields to the set. Draw lines by click once to start a line, move the cursor and click again to end is.
With the buttons on the bottom you can remove the last line, remove all lines or add the field to the set. You will
see it appear in the demonstration field as tap at the bottom.
|