1 00:00:00,840 --> 00:00:05,290 In this video, we will learn how to train a little more than on the data. 2 00:00:07,320 --> 00:00:14,360 First, we will import the linear discriminant analysis function from a Skillern. 3 00:00:15,450 --> 00:00:19,740 Then we will fit the word beta into this model. 4 00:00:20,610 --> 00:00:22,640 Then we will predict the values of Y. 5 00:00:23,280 --> 00:00:28,570 And then we will create the confusion matrix to compare to the false positive or negative. 6 00:00:29,310 --> 00:00:35,820 And all the four classes, not that we have created the template for this model. 7 00:00:36,600 --> 00:00:44,520 And if you want to create this model on your own data, you just have to change the X and Y will follow 8 00:00:44,520 --> 00:00:45,870 the same steps. 9 00:00:46,590 --> 00:00:50,780 Creating a model, predicting values and creating confusion metrics. 10 00:00:52,200 --> 00:00:57,600 Let's first embody linear discriminant analysis from ESKIL and or discriminant analysis. 11 00:00:58,830 --> 00:00:59,720 We are important. 12 00:01:01,200 --> 00:01:04,190 First, we will create this object. 13 00:01:04,200 --> 00:01:06,690 CLV underscored clear object. 14 00:01:06,780 --> 00:01:16,210 This is a linear square and analysis object and then will fit our X and Y into this object using a fit. 15 00:01:16,260 --> 00:01:19,290 Come, I will run this. 16 00:01:21,750 --> 00:01:23,190 Now we have four dead our model. 17 00:01:24,540 --> 00:01:28,380 Now let's predict the value of Y from our model. 18 00:01:28,560 --> 00:01:30,120 And we will save those values. 19 00:01:30,270 --> 00:01:31,980 And by underscore Greg. 20 00:01:32,100 --> 00:01:33,210 Underscore Alea. 21 00:01:40,740 --> 00:01:46,360 Now let's show you the values that are restored and why underscore credit under this great idea. 22 00:01:57,270 --> 00:02:00,150 You can see, though, put it in the form of zeros and ones. 23 00:02:00,540 --> 00:02:03,230 One is sent for sorted and it was sent for NORAD. 24 00:02:05,190 --> 00:02:08,130 Now let's create a confusion matrix. 25 00:02:10,450 --> 00:02:15,850 We'll just read confusion metrics and then we'll mention the actual way and the predicted way. 26 00:02:21,150 --> 00:02:22,800 This is our confusion matrix. 27 00:02:24,030 --> 00:02:24,710 You'll know how to. 28 00:02:24,920 --> 00:02:28,030 Confusion, matrix and that. 29 00:02:28,090 --> 00:02:29,010 So we're done. 30 00:02:29,180 --> 00:02:30,540 Alia and Biton.