F# Genetic Algorithm — Defining Squirrel Genes

The application at the end of this article

Learning Objectives

  • Basic concepts of genetic algorithms (we will go into more depth next article)
  • The concept of a Chromosome and a Gene at a high level as they apply to Genetic Algorithms
  • How immutability and functions can simplify artificial intelligence
  • How to create and use WPF User Controls to organize user interfaces

Series Overview

Genetic Algorithm 101

A sample chromosome that foolheartedly runs towards the dog
Generation 2 keeps top performers, some of their offspring, and random chromosomes
An example of genetic Crossover
An example of mutation after crossover

Adding Genes and Chromosomes

Evaluating Tiles for Chromosomes

Simulating Chromosomes

Implementing the User Interface

Visualizing Squirrel Brains

Putting it All Together

--

--

--

I help people love writing code through writing, speaking, and teaching on Software Engineering & Data Science

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Distributed Training in PyTorch — Part 1 (Distributed Data Parallel)

Beginner’s Guide to BERT for Multi-classification Task

Neural Machine Translation

Face Mask Detection Using Deep Learning Techniques

Basic Machine Learning on Docker

Image Recognition with Neural Networks — Keras/TensorFlow

Binary Logistic Regression with BigQuery ML

The “Less is More” of Machine Learning

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matt Eland

Matt Eland

I help people love writing code through writing, speaking, and teaching on Software Engineering & Data Science

More from Medium

Create your own WSL distro using Docker

C++: Static Polymorphism Using Lambdas

Blink a LED on a Raspberry Pi With Vaadin

MLX90614 Distance Dependency