Tracking Statistics in Your Framework

Learn to track and access statistics in the tiger evolution framework.

Adding tracking feature in our framework

Before we can access the different statistics of evolution, we need to ensure our algorithm tracks them after every generation. To do this, we will have to implement a new function statistics that runs immediately after your population is evaluated and updates the statistics server appropriately.

Start by updating evolve/4 in lib/genetic.ex to call statistics/2, like this:

Get hands-on with 1200+ tech skills courses.