O'Reilly logo

Genetic Algorithms and Machine Learning for Programmers by Frances Buontempo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Your Mission: Beekeeping

Your bees will have different roles. Some bees will wait at home, some will scout around exploring, and other bees will work to collect pollen from a food source. You can plant food at specific points in space, or put food anywhere to keep things simple. Pretend you dropped off better food near the top of the bag and the best food outside of the bag. You’ll encode the quality of a food source as a fitness function, encouraging bees to find better food sources. You get an optimal solution to a problem when the bees find the best food source. If better food is higher up and the best food is outside the bag, your bees will learn to move up, eventually escaping the paper bag. The position of a food source encodes a solution ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required