Given an environment which is fixed, actors in that environment with a variety of possible attributes or behaviors, and some goal or desired outcome: Observe a population of actors, evaluate them according to how well they perform, and spawn new actors whose characteristics are based on those who performed the best.
+
GA's are a means of updating settings in a system, and can be used with Neural Networks, or any other system.
+
The sequence is:
- Initial population: A population is generated from individuals with attribute parameters.
- Observation: The population interacts with the environment and data is collected about their ending state.
- Fitness function: The observations are graded in comparison to the desired outcome.
- Selection: Those individuals who performed best are selected.
- Crossover: Groups of selected individuals exchange some random set of attributes.
- Mutation: Random changes are introduced to avoid local minimum and ensure diversity.
This process is then repeated for many generations.
+
See also:
-
https://repl.it/@LoganBrown5/Evolution
A lovely, easy to understand, example of genetic training by Logan Brown. James Newton of MassMind replies: Slightly updated version with variable names, and a couple tweeks. "Dots live to walk some number of steps along their own path in a world with items that kill them, an entrance, and a goal. They evolve."
[フレーム]+
+
file: /Techref/method/ai/genetics.htm,
2KB, , updated: 2021年7月2日 11:18, local time: 2025年9月4日 14:43,
owner:
JMN-EFP-786,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://techref.massmind.org/Techref/method/ai/genetics.htm"> Genetic Algorithms</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.