1
00:00:00,390 --> 00:00:07,440
Hello and welcome to this lecture, where we are going to implement an additional function should the

2
00:00:07,440 --> 00:00:11,870
genetic algorithm class and they have to implement it.

3
00:00:12,090 --> 00:00:21,720
We are going to put all records together and make some experiments and see the results of our implementation.

4
00:00:22,290 --> 00:00:29,180
We will create a new function bath visualise generation.

5
00:00:30,000 --> 00:00:32,940
It won't receive any parameter.

6
00:00:33,240 --> 00:00:42,720
And as the name suggests, the idea is to show the partial results of the algorithm, as we saw earlier.

7
00:00:42,960 --> 00:00:53,490
Our population is composed of several individuals, and then we need to evaluate the individuals and

8
00:00:53,520 --> 00:00:55,260
gather the best one.

9
00:00:55,620 --> 00:01:01,800
And in the next lecture, you'll learn how to create the new generation.

10
00:01:02,070 --> 00:01:11,820
However, we are going to run these codes a couple of times in order to create more than one or two

11
00:01:11,820 --> 00:01:12,780
generations.

12
00:01:13,050 --> 00:01:19,920
For example, we can create 50 generations, 100 generations, and so one.

13
00:01:20,250 --> 00:01:29,100
So this function will be used to present the best in the field well off each one of the generations.

14
00:01:29,580 --> 00:01:40,500
I will create a new variable cloud based, which will be equal to self thought population position zero

15
00:01:40,830 --> 00:01:49,110
because as we implement as before, we need to call this function here based in video.

16
00:01:49,380 --> 00:01:59,040
And then we set these attributes here based solution with the best individual of the generation.

17
00:01:59,520 --> 00:02:07,140
Now that we have the best individual in this variable, we can just bring in some informations.

18
00:02:07,620 --> 00:02:20,220
The first one, the generation let's access cell population position zero bytes generation.

19
00:02:20,700 --> 00:02:25,740
We can also visualize the total price.

20
00:02:26,040 --> 00:02:29,820
This is the value that we want to optimize.

21
00:02:30,480 --> 00:02:35,640
Let's select best thoughts qua evaluation.

22
00:02:36,090 --> 00:02:54,300
This space use of the drug fast dots used space and finally lets brands date chromosome based but chromosome.

23
00:02:54,990 --> 00:03:03,810
Now we can recreate the genetic algorithm glass, and we are not going to perform some tests using this

24
00:03:03,810 --> 00:03:12,480
function now because it will be done in the next lecture where we are going to put all these codes together.

25
00:03:12,900 --> 00:03:13,590
See you there!
