[00:02:11] Good evening, everybody. Am I audible? Please write in the chat box. Thank you. Yeah. Okay. So we are going to start our class. Yeah. Thank you. So there's a confusion among the student. So there is a small change in timetable every Tuesday onward, today onward, [00:02:54] every the class timing is from 6 30 to 7 okay it is clear so it is not for today [00:03:05] it is for every Tuesday we have a class 6 30 to 8 6 30 to 8 okay so in this course [00:03:19] in the last class we have started module one and the module one is about the fundamental of [00:03:29] fundamental of machine learning. So in the last class what we have seen in the last class [00:03:40] we have seen what is ML and how ML is different from conventional programming. [00:03:57] Are you able to recall the previous class discussion? [00:04:00] yeah so today we are going to discuss about today yeah yeah today we are going to discuss about [00:04:14] yeah what is supervised learning what is supervised learning what is unsupervised [00:04:28] learning, okay what are the features, what are the variables, what are the meaning of class, [00:04:42] level, independent, indie, dependent variable, what is target variable, okay what is training, [00:04:57] what is testing. So today I will try to cover all these topics okay. So if you broadly if you try to [00:05:14] categorize the algorithm of machine learning or either deep learning there are broadly two [00:05:23] category. There are broadly two categories. One is supervised learning. We call it one is supervised [00:05:35] learning. Another we call it unsupervised learning. It is a category. Try to understand. [00:05:48] It is not a name of any algorithm. It is just a category. So under this category [00:05:56] there are many algorithms. There are many algorithms. Here, there are many algorithms. [00:06:05] So, here we will understand what are the property or characteristics. What are the property [00:06:12] or the characteristics by which you can say or identify the given algorithm is supervised [00:06:30] or unsupervised. This is the topic. How do you know what are the [00:06:40] characteristics, what are the criteria so that we can say the given method or [00:06:47] given problem is for supervised learning or the unsupervised learning. So [00:06:58] So here, starting with the dataset, starting with the dataset, I will explain the supervised [00:07:14] learning and unsupervised learning by taking the example of dataset. [00:07:20] Dataset means what? [00:07:21] Suppose like email classification, we have taken an example of email classification that [00:07:29] we have seen in the first class. [00:07:33] Or another example, if you try to consider, suppose I want to predict, I want to predict [00:07:41] a student in the final, student in the final year, in the final year, final year, will, [00:07:51] will placed or not, that I want to predict. Okay. So, answer will be either yes or no. [00:07:59] So, as we know machine learning algorithm requires data set. So, suppose the data set [00:08:05] for this purpose is the historical data set or data set of seniors that already passed out. So, [00:08:13] data set will be what? Rule number of the student. I think everybody agree. Name of the student. [00:08:20] it. You can say the first same CGPA, similarly the second same CGPA till support [00:08:37] 7th same or final year CGPA. How many internships he has completed, [00:08:46] what technical knowledge EOC have. All such data set is there and last data set is placed yes or [00:08:55] no. Are you able to understand the simple data set I am creating that can relate yourself? Yes. [00:09:03] So here data will be there. There may be many more columns. There may be many more columns. [00:09:11] So here column is like yes, yes he was placed, he was not placed, he was not placed like that. [00:09:22] So this is the data set, please focus over here. So which is your target column you tell me? [00:09:34] You tell me the target column, which one is the target column? What you want to predict target? [00:09:38] if somebody will say the target column means in real problem target means in the real problem [00:09:46] or whatever the task is given whatever the task is given okay so if you try to find out the task [00:09:54] what was the task go to here predict the student in the final year will placed or not so here [00:10:02] placement this is the placed information that is a target column because i want to predict this [00:10:08] Okay. [00:10:11] Everybody agree or not? [00:10:12] What you want to predict? [00:10:14] I want to predict whether a student will get placed or not. [00:10:18] So, the column or this is related in Excel file. [00:10:23] I will say this is the target column. [00:10:24] Agree. [00:10:27] So, now you have to answer this is the target column. [00:10:34] That is the placement. [00:10:36] Okay. [00:10:37] I think everybody agree. [00:10:39] You tell me placement is depend on what? [00:10:45] Placement is depend on, I think everybody agree, first semester to the seventh semester CGPA. [00:10:57] I think everybody agree. Also, how many internships he has completed, technical knowledge [00:11:08] and many more. So, if I say the placement depends on these. I will be correct or not? [00:11:26] depend on these like a first to seven same CGPA, technical skill, internship and many more. [00:11:45] Are you convinced with my discussion? If this problem is given where your objective is to [00:11:55] predict the student placement in next year, so this placement is depend on what? [00:12:01] Whatever the data set is given to you, what are the features are given to you, [00:12:04] what are the details are given to you. So, this is called what? [00:12:10] Now, the thermological introduction, this is called target variable. Please understand, [00:12:20] this is called dependent variable also, dependent variable. This is also called [00:12:29] it class label, class or label like that. There are many more but this is the most common terms [00:12:39] people are using to refer this are either target variable, either dependent variable, either class [00:12:47] or label. This is called what? Where it is depend on independent variable okay and most common name [00:12:59] is a feature also we call variable. So now I hope so everybody who are very new in the machine [00:13:12] learning domain now comfortable to understand these two terms, these two categories of term. [00:13:17] Target variable, dependent variable, class labels all are the same thing. Another side features, [00:13:26] variables, independent variables are those that we require to predict the target rate. [00:13:36] Any question here up to this moment? Okay, so why dependent? You answer by yourself. [00:14:06] I have already discussed why it is dependent. Your placement is dependent on [00:14:12] previous semester, CGPA, you also know, you can answer by yourself. Place band is dependent on [00:14:22] these features. You try to answer it round. Yes, variable, if you say just variable, [00:14:43] it's target or independent variable. It's an independent variable. If you are using [00:14:51] the word variable means we are talking about the independent variable or feature. [00:15:01] So, as we discussed in the previous class, concept of very, very, very briefly I am discussing [00:15:27] suppose this is the data set, this is the data set, just understand the structure of the data [00:15:41] set. Don't go in much detail, just understand the structure of the data set. Any data set is [00:15:48] given like that. Here variable one, variable two or features you can say. Suppose there are 10 [00:15:58] features and this is your target variable. Target variable is suppose yes, yes, no. This is the [00:16:09] observation. So we call it observation one, observation two, dot, dot, dot and number of [00:16:16] observations. So are you able to understand the structure of any data set? Okay, is it clear? [00:16:33] Okay, I have some questions of Adit. Okay, how we will associate weight to the feature? [00:16:42] So Adit, I have covered the weight of coefficient in this class already. [00:16:48] Please answer it. Vipin also. I'm asking both of you. Adit. It was covered the weight and [00:16:59] coefficient training process in this class. Waiting for your answer. Adit Kumar. Yes means what? [00:17:24] When I have covered about the weights. So why he is asking? Why is asking? So everybody at the [00:17:36] the starting of the class i have discussed some etiquettes the topic that i am covering the topic [00:17:43] that already covered if you try to ask and have a discussion around that it will be good for you [00:17:50] if you are super duper intelligent you have already studied the machine learning [00:17:54] then then then request to do not disturb the class okay if i have covered the coefficient [00:18:05] training all those process you are welcome to ask the questions otherwise don't jump into the next [00:18:11] module or the topic that will be covered in the future glasses it is it is it clear to everybody [00:18:17] is it clear or not then i will go ahead okay great so i have a one related question from [00:18:38] We don't have [00:18:42] more than one target columns or [00:18:46] target labels. Is it clear? We require only one. [00:18:51] There is not possible in supervised learning [00:18:54] to have more than one target column. [00:18:58] So come back to the discussion. [00:19:03] So this is the structure of the data set suppose is given [00:19:08] to you. Data set contain n number of features. Suppose 10 features are there and one target [00:19:15] column is there. And we have a n number of observations. So what happens? Suppose this [00:19:23] is your machine learning algorithm. Don't go in detail what is training, how it happened. [00:19:28] In the training process, I will discuss the training process in detail, don't worry. [00:19:34] so this this is training process this first observation is given to the model model will [00:19:41] predict okay if model will predict yes suppose so you are going to compare with the correct answer [00:19:50] target means correct answer so we whatever your during the training your algorithm will predict [00:19:57] we have to check whether this predicted is uh uh matching with the correct answer or not [00:20:06] agree correct answer this correct answer also we called ground truth please remember this word [00:20:12] ground truth very famous word target column means ground truth okay so luckily i have predicted yes [00:20:22] and my correct answer is also yes. Okay. So, it's a very good condition. We don't need to do [00:20:29] anything. Okay. Suppose observations 2 I have given the next time in the training. Training [00:20:37] is iterative process. Okay. So, yeah. So, observations 2 I have given. Suppose my model [00:20:46] have predicted no. Okay. What is the correct answer? What is the ground truth? You tell me [00:20:53] by seeing the data set observation for observations to what is the ground truth? You see the data set. [00:21:03] Yeah. So ground truth that he was not succeed in the placement drive, but my model have predicted [00:21:12] he was succeeded in the placement drive by my model predicted no. So, this is called error. [00:21:20] Agree? This is called error or we call it misclassification. [00:21:27] Misclassification. Particularly who are very new in machine learning area, it is the right time [00:21:34] to get familiar with the many many common terms people are using everywhere. [00:21:39] okay so this concept we call is misclassification why my model is wrong my model is wrong [00:21:47] a wrong prediction we have made my model is predicting the person not selected but my data [00:21:58] set that is a correct value is saying it is selected so based on this error we are going to [00:22:04] update the model. What we are going to use, we are going to update the model, update the [00:22:11] model. This model or algorithm have a lot of weights, people discussing about, lot of [00:22:18] weights. What is weight, where it is, don't worry about that. Lot of coefficient, lot [00:22:26] of coefficient, lot of parameter that we need to update every time. This is clear or not? [00:22:34] If any error or misclassification happen, next process is that underline algorithm you have [00:22:42] taken any of the machine learning or deep learning. All the algorithms have a weights, [00:22:47] coefficient and parameter. We need to update. What is the objective to update the weight? [00:22:55] What is the aim and objective? Tell me your objective is to what? To reduce the error. Agree? [00:23:04] to reduce the error or misclassification. [00:23:16] Misclassification. [00:23:18] Till this moment, I think intuition, [00:23:21] what is the minimum intuition behind that? [00:23:25] What is the rule of target variable? [00:23:31] One second. [00:23:49] Okay. [00:23:50] so now let me let me see your questions you can watch the recording that's correct [00:24:06] and let me show that if any theory comes in mind I think there is now leave it what are the [00:24:13] questions okay that is relevant if possible can you please summarize the session which [00:24:24] Q till now for today. [00:24:26] Okay, you can [00:24:27] just revisit the recording. I cannot [00:24:30] repeat the [00:24:32] whole session. Okay, so during [00:24:34] training also we will predict the value. [00:24:36] Yes. Yeah, this is the [00:24:38] related question. During training, [00:24:40] we also predict. Yes, yes, yes. [00:24:41] Every time for every observation. [00:24:44] So there is a confusion. [00:24:46] Yeah. So let me clear it. [00:24:48] Suppose this data set is given [00:24:50] to you. This data set is given [00:24:52] to you. This [00:24:53] data set having 10,000 [00:24:56] rows or 10,000 observations [00:24:58] and having also one [00:25:00] ground truth or [00:25:01] target [00:25:04] variable, okay? [00:25:06] So, for every observation [00:25:08] during training [00:25:09] we have to feed [00:25:12] all the observations [00:25:14] one by one, one by one, [00:25:16] one by one, one by one, one by one. [00:25:18] And every time [00:25:20] your model will predict something [00:25:22] and we have to match with the ground truth if it is a correct classification correct answer [00:25:30] we don't need to do anything if the answer is wrong we have to update the model then again [00:25:36] send to the next observation so this is a iterative process don't try to understand in [00:25:42] detail just understand the intuition okay nishan okay okay so now i have a question who is [00:26:06] who is guiding who is guiding the training process now you can answer [00:26:14] whatever the discussion i have made in this session who is guiding the training process [00:26:22] tell me no one yes answer is no no no no no no no no wrong wrong answer is the target [00:26:37] target variable some of you have answer correctly ground truth ground truth or [00:26:50] class variable whatever you want class variable output variable also we call [00:26:56] output variable. The moment I be calling the new names, I am discussing with you. Agree? Why? [00:27:02] Why I am saying guiding? Guiding means what? You can relate who know the correct answer. You tell [00:27:09] me. Given data set, who knows the correct answer? Who knows the correct answer? This column. I think [00:27:21] everybody agree yes so that's why the output variable output variable or target variable [00:27:37] target variable tells every time predicted value is correct or wrong i think everybody agree [00:27:55] it give the [00:28:00] direction [00:28:02] direction for [00:28:04] better learning. [00:28:09] Everybody agree or not? [00:28:18] Now you tell me in your [00:28:21] life what [00:28:22] is the role of supervisor [00:28:25] supervisor or guide [00:28:29] maybe your project guide [00:28:30] maybe your PhD guide [00:28:31] the same role yes or no [00:28:33] whatever your target variable [00:28:35] is doing here [00:28:36] the same role he is playing like a supervisor, a guide. [00:28:55] Okay, so Purful have asked a question. [00:28:59] So question I already answered. [00:29:02] I think nobody have noticed it. [00:29:05] Target variable is not defined by anybody. [00:29:08] Target variable is defined by the problem. [00:29:11] What is the problem is given to you. [00:29:14] Accordingly, you can find out the target variable. [00:29:17] Okay, agree? [00:29:25] For example, I am discussing this question for Praful. [00:29:34] Suppose this is the data set of any person. [00:29:42] So name is given, height is given, education is given, in which city it belongs to given, [00:29:59] age is given salary is given car purchased yes and no is given [00:30:16] he has life insurance yes and no is given are you able to understand this data set everybody [00:30:26] there may be more other columns powerful are you able to understand this this data set [00:30:37] Now, I have a question. Develop a machine learning model to predict a given person will purchase a car or not. [00:31:06] suppose i am the agency i have agency of particular car i want to call i want to send a message of [00:31:14] all the data we have okay so how do you know uh other otherwise i can have a machine learning [00:31:22] model so i will give you input of that detail and and model will predict yeah the person will [00:31:28] purchase car or not okay so which is the target variable here in this case which is the target [00:31:35] variable which is the output variable purchase great great now i have changed the problem [00:31:51] developed a machine learning model to predict predict the salary [00:31:59] which is the target column now in this data set with the target column got the idea everybody [00:32:09] so you should not ask the question sir in the given data set help me to find out the target [00:32:14] column it depends on the problem for what you are solving for what you are training the model agree [00:32:23] no so adit kumar if target column is not clear means you don't have any problem so why you are [00:32:30] going to train the model if you have a problem if somebody has given the task for which you [00:32:37] require the machine learning model if the target output is not clear means nobody has given any [00:32:43] need tasks to do it okay adit kumar you give me any example in this case a target column is not [00:32:50] clear for me it is impossible okay otherwise adit you can elaborate you need a need a model [00:33:17] question is that for what purpose you are going to train a model that purpose will answer it [00:33:22] so why we need to if there is no task then why we need a model [00:33:30] swamboo very simple questions if there is no task then why you are wasting your time to [00:33:38] train the model okay yeah it's a very basic concept you will not find anywhere in any youtube channel [00:34:02] in any books people people never discuss that fundamental part target column is not a universal [00:34:10] define value. A same data set depends on the underlying problem or task. The target column [00:34:19] changes. I have given a very good example. This task 1 and task 2. Same data set. [00:34:31] Okay. In the stock market, the task is to predict the day high or day low. The target variable [00:34:52] will be stock price yes you can think it is a match okay so i have now uh i think you have [00:35:05] an hour better understanding okay okay i have another example okay again i'm going to make a [00:35:24] data set for example the name of the person salary of a person just hypothetical example i'm making [00:35:33] salary of a person or or you can say the education of person [00:35:41] education of person which city person belongs to whether it is married or not [00:35:51] number of child like the data set is given to you okay okay great just hypothetical example [00:36:03] try to understand. Now, I have a question. Train a model, train a machine learning model [00:36:18] to predict height of a person. Can you solve this task using this data set? So this [00:36:41] it means there is no supervisor. Agree? In other way, there is no supervisor. There is no guide. [00:36:49] You all are correct. There is no target column. Target column or target variable is missing. [00:37:00] All you all are correct. Yeah. Okay. Yes. So now again come to the starting of the topic I have [00:37:12] started. Now you can understand easily like there were category of machine [00:37:20] learning algorithms, supervised learning or unsupervised learning. So any of the [00:37:38] task is given to you or data set is given to you. [00:37:44] if the data set have a relevant target column or ground truth [00:37:55] or the word I am just using multiple times so that you memorize it or output variable. [00:38:06] if task is given or data set is given or data set have a relevant target variable ground truth [00:38:15] variable or other variable in this situation we call it whatever the ml algorithm you will apply [00:38:25] we call it supervised learning we call it supervised learning okay just understand the [00:38:34] concept. Don't go in detail in the name of supervisor. I mean, there are many, many, [00:38:38] many, many supervisors. Okay, there are many supervisors. That support that can use a data [00:38:46] set plus target variable for a modeling purpose, such set of algorithm we call a supervisor. [00:38:56] Okay, if the task is to predict the salary of employee after five years, can there be multiple [00:39:11] target variables no there will be only single target variable okay yeah so supervised learning [00:39:19] is clear to everybody just opposite task is given plus data set is also given you should not assume [00:39:38] in unsupervised learning there is no data set but we don't have any target [00:39:44] column is missing there is no supervisor means there is no supervisor there is no guide [00:39:56] even we want a model or you want to solve the problem so there is a set of algorithm we call [00:40:05] unsupervised learning that can work without any target column is it clear yes aniket you are [00:40:28] correct label data means target variable yes yeah i've already used the labeled word you missed it [00:40:37] aniket you missed it i already used that word class label earlier okay so i want to show you [00:40:47] look i have used this target variable means labeled data okay till this moment if you have any [00:41:05] question you can write over here yeah so nishikanth uh unsupervised learning in is not in [00:41:16] your syllabus we assume that it is advanced machine learning so you know it so i cannot [00:41:22] cover everything got it so that is a bitter truth nishikanth it is not in your syllabus but if time [00:41:32] permit i will try to include it but i know it is not possible okay any other question yes cost [00:41:50] cost of yes you are correct yes varun you are also correct mathematics of machine learning [00:42:12] maybe there will be different subject i don't know so somebody asked about mathematics of [00:42:19] machine learning okay so i don't know there are how many subjects are there in this semester maybe [00:42:24] one of the subject machine mathematics for machine learning. Or maybe next semester you [00:42:29] have to check your syllabus. Okay, I don't know. It's a complete subject name. Ankit [00:42:47] mathematics for machine learning is a topic. It's a topic. So suppose a gradient descent [00:42:53] I will cover. It's a topic come under the mathematics of machine learning. Otherwise [00:42:59] mathematics of machine learning is a complete different subject. Is it clear? [00:43:10] Mathematics of machine learning is a simple one-line topic. So whenever mathematics is required, [00:43:16] I will cover it but there is no separate topics. No G1 model will not work if you are using [00:43:28] the mod, a trained model for a different purpose. It will not work. Yes, deep learning algorithm [00:43:36] also comes with the supervised or unsupervised learning. Yes, most of the time we will cover [00:43:43] the supervised learning. Yes, because all things in one course not possible. It is an area data [00:43:50] science in the area. These are the Sanket Anand you have correctly written. You are not first [00:44:04] semester student of BTEC. Agree Sanke? So you are enrolled for PG. So many of the things that is [00:44:13] required, it is not given in the syllabus, you have to cover by yourself. Otherwise, you take [00:44:19] admission in BSc first semester. Okay, if the task is to predict the salary of an employee [00:44:30] after 5 years [00:44:32] which will [00:44:35] the target variable out of [00:44:37] the data set increment 1 year [00:44:39] in the data set there will [00:44:41] be a column the salary of [00:44:42] salary after 5 years that [00:44:44] column is required [00:44:45] okay [00:44:48] in the data set that column is required [00:44:52] salary after 5 years [00:44:54] that will be the target variable [00:44:55] okay any other question [00:44:58] in the supervised learning if target [00:45:00] data set change to no in the [00:45:02] third time. Third time is what? [00:45:05] If the training model will [00:45:06] model predict yes or no [00:45:08] it will always look for update the [00:45:10] data set. I am not getting your [00:45:12] question Priyansu. [00:45:14] Whatever given in the training it will learn [00:45:16] accordingly. In unsupervised [00:45:20] what about the ground truth? [00:45:22] Rahul I have answered there is no ground truth. [00:45:24] I think you are not [00:45:25] understanding or you [00:45:28] are not giving complete focus. [00:45:30] Look [00:45:31] Rahul what is what is written here no supervisor target column is missing so why you are asking [00:45:40] this question I already covered it there's no target truth or ground truth in unsupervised [00:45:49] learning ML algorithm will be different in the both the cases same algorithm you cannot use [00:45:57] underlying concept will be different target data will not be there only input data yes [00:46:09] Mahana correctly you have written deep learning can come under the supervised and unsupervised [00:46:19] deep learning is not an algorithm that is a good question somebody is asking okay I'm happy to see [00:46:30] this question somebody is asking deep learning is comes under what supervised or unsupervised [00:46:41] agree that is a question [00:46:43] I want to answer this question like that [00:46:46] you first answer me [00:46:47] machine learning is what [00:46:48] supervise or unsupervised [00:46:52] supervise or unsupervised [00:46:54] answer this question first [00:46:57] Anmay [00:47:03] you should answer [00:47:05] these are the subject [00:47:09] this is the area [00:47:10] this is not one algorithm [00:47:12] so that you can quantify [00:47:13] or you can say it is here and there [00:47:15] machine learning having many algorithms [00:47:18] similarly deep learning algorithm deep learning is a subject having many [00:47:21] algorithm some of the algorithm will be supervised some of the algorithm will be [00:47:26] unsupervised okay and everybody else deep learning and machine learning are the [00:47:33] subject name course name area it is not algorithm got it or I have covered this [00:47:44] question already at the beginning look look here what I discuss machine [00:47:52] learning, deep learning, having algorithms, those algorithms can be categorized into the two-way [00:47:58] supervised learning and unsupervised learning. I have already mentioned. I think you didn't notice. [00:48:06] Now it's clear. What is the graphical model mentioned in the syllabus? Graphical model means [00:48:22] CNN who works with the images. Okay. JNI is not possible, but fundamental of the NLP I will cover. [00:48:32] Aditya, even NLP is not given in much detail in your syllabus but I will try to cover fundamental [00:48:39] of NLP and Gen AI or maybe Agentic AI, maybe elective subject or maybe the subject in the [00:48:46] next semester. [00:48:47] You can see your curriculum, okay Aditya? [00:48:50] I don't know about the Agentic AI or Gen AI, maybe one subject in your next semesters, [00:48:58] okay? [00:48:59] Got it? [00:49:11] I will give you an example, Rohit. [00:49:12] Unsupervised learning, I will give you an example. [00:49:24] Okay. [00:49:26] So, [00:49:27] yeah. [00:49:31] So, now, let me open [00:49:32] this document I will upload in the Moodle. [00:49:37] You can refer it. [00:49:39] So, whatever the discussion I have made, [00:49:41] it is summarized here. [00:49:43] So, learning or machine learning, [00:49:45] deep learning algorithms are categorized [00:49:47] into the two way. [00:49:48] supervised learning and unsupervised learning. Okay, I have covered it. [00:49:53] What is unlabeled data or what is labeled data? The document I will upload, don't worry about [00:49:59] that. Unlabeled data. Is this clear? If target variable is given in the data set, we call it [00:50:04] labeled data. If target variable is missing in the data set, we call it unlabeled data. [00:50:11] okay and and discussion is made over here you can go through it some example is given here [00:50:18] okay so this is the example of unlabeled data that now you have a complete understanding [00:50:29] what is supervised learning i have covered it this is the just notes for you in in in the [00:50:36] supervised learning you train the machine using the data which is labeled okay it means some [00:50:43] data is already tagged with the correct answer a supervised learning algorithm learn from the [00:50:49] level training data help you to predict outcome for the unforeseen data okay so whatever it is [00:50:57] written i have explained in detail with a lot of example yeah label data data comes with the [00:51:03] correct answer yes unlabeled data means there is no target variable okay is it clear unsupervised [00:51:17] learning just opposite and why why the supervised learning i don't need to discuss that part very [00:51:22] obvious okay let me go with the what is unsupervised learning okay nishant is sharing [00:51:33] something i don't know what it is nishant so who has asked to share the this flavor nishant [00:51:47] i'm not getting idea nishant you have shared the flavor that's okay for which purpose [00:51:55] please answer it someone can already download it what you want should I go with the slivers [00:52:18] as it is line by line okay I'm not asking about tensorflow or other stuff okay I want to stick [00:52:34] here again so you tell me what do you want you want to go with the slivers line by line okay [00:53:00] so let me explain again. Please understand everybody, slavers. You love a slavers a lot. [00:53:09] Let me discuss the bitter part. For any of the teacher, if teacher follow the slavers as it is, [00:53:20] as it is it's easiest task easiest task it is it is it is good for me okay if I go [00:53:34] a line by line okay why because I will prepare the notes from the book whatever in the sequence [00:53:41] it is given I will go through it okay I will give the equal time to all the content I will [00:53:48] not go in detail. A teacher will not go in detail. Okay. Let me explain. Suppose in your [00:53:53] slavers, let me open it. It's very important to discuss because there are some many smart [00:54:00] students. They love slavers. Okay. Now tell me in this slavers where it is written label [00:54:06] unlabeled data. Where it is written classification regression. Where it is written independent [00:54:12] variable. You tell me. Okay. Let me discuss first. This is the slavers I have opened for [00:54:20] you. Are you able to see where is the target variable and target variable? Where is supervised [00:54:29] learning, supervised learning, unsupervised learning is given? Where is written classification [00:54:36] or regression? I will not going to cover any of the machine learning algorithm here. Fundamental [00:54:40] is over. Just I want to prove it. I just getting your feeling. Just see the slivers. Can anybody [00:55:06] find any of the machine learning algorithm in the slavers this is just it is open for you [00:55:12] any machine learning algorithm you go to the slavers from top to beginning where is any [00:55:19] machine learning algorithm is given why i am teaching ml so why i should not introduce the [00:55:26] what is a machine learning it is not given i have planned to cover at the beginning i will cover [00:55:35] one algorithm from the uh uh classification classification word i thought of covering [00:55:44] linear regression linear regression okay second we have a regression kind of category i i is a [00:55:56] logistic regression okay here i i thought of covering linear regression so that you can [00:56:02] understand whole training process, whole training process. Once you have a model, [00:56:11] once you have a model, you need to check it, whether training, you need to check it, [00:56:16] you need to check the performance. Agree? Performance. In the performance, what happens? [00:56:22] In the regression, if the regression kind of problem is given or it is a classification, [00:56:29] is given. It is in the deep learning also. In the regression, you need to know what is SSE, [00:56:37] what is R2, what is adjusted R2, many, many, many more regularization, many more. Similarly, [00:56:45] in the classification, you should know the confusion matrix. You need to know [00:56:53] what is the accuracy, what is precision, what is recall. These here, we assume [00:57:03] advanced machine learning algorithm, assume that you have good understanding [00:57:11] about all those topics. Okay, I got it, just I want to convey one important part. [00:57:21] So, and all such things like sum of square error, R square, adjusted R square, confusion [00:57:31] matrix, accuracy, precision recall, that things are not given in the syllabus. [00:57:37] So it is good for me. [00:57:38] I should not cover it. [00:57:41] Just I can start from deep learning and deep learning fundamentals are not given directly [00:57:46] from the encoder decoder. [00:57:48] Within two months, I can finish that course. [00:57:57] Okay. [00:57:58] you decide together how should I run the course I have taught that course of [00:58:04] your seniors many times if I follow the slivers I will be happy you will not be [00:58:10] happy at all okay so you tell me how should I go it okay come to the [00:58:30] discussion so what is unsupervised learning easily you know if the data set [00:58:38] is given to you and the data set is unlabeled and target variable is not present in the [00:58:44] data set, even you want to solve that problem, we call it unsupervised learning. [00:58:50] Okay, so now again a time to understand important part. You have seen supervised [00:59:07] learning and unsupervised learning. Till this moment I think everybody is [00:59:20] clear. Unsupervised learning there are again two subcategory. One is [00:59:32] classification. Everybody should know these all words in MLDL. DL is [00:59:40] everything. DL is everything about supervised, unsupervised, classification, [00:59:44] regression. How many of you have listened this word classification and the regression? [01:00:10] Okay, great. So now from today onward you at least you know the classification is a type of [01:00:19] one category of machine learning algorithms that have many algorithms that have many [01:00:24] algorithms like a CNN is also classification method. Similarly regression have many algorithms. [01:00:33] Or these two subcategories comes under the supervised learning. [01:00:38] Okay. [01:00:39] Now, focus on the target variable. [01:00:46] Okay. [01:00:47] Now, if the target variable is a categorical variable, categorical variable, then we call [01:00:57] it classification problem. [01:01:02] Okay. [01:01:03] If the target variable is a continuous variable, continuous variable or numerical variable, [01:01:12] we call it regression regression is not a machine learning algorithm regression is a category okay [01:01:20] is it clear now you may be wondering about what is a category category means target variable [01:01:28] have a like yes no answer okay and continuous variable like a salary salary will be have a [01:01:37] number if you want to predict the salary if you want if you want to predict the height of particular [01:01:43] person if you want to predict the cgpa if you want to predict the temperature like that or having the [01:01:49] numerical value in the target variable that's why we call it regression okay and classification [01:01:57] output variable like yes no happy not happy okay cat if you want to put the cat dog elephant like [01:02:06] that. So if your target variable is a category, we call it classification and if target variable is [01:02:17] a numeric number, we call it a regression bound. Again you are discussing unnecessarily timing. [01:02:29] So it is a more important topic. So you keep on discussing about the timing. I will go ahead. [01:02:35] okay so this topic is ended here okay so whatever the time you are wasting i don't have any problem [01:02:45] i will pick to the next topic yeah so come to the clustering so come to the clustering [01:02:54] leave it where i was i was here ml algorithm then we have a classification [01:03:05] we have a classification [01:03:09] no we have a supervised learning [01:03:11] under the supervised learning [01:03:15] we have seen [01:03:17] classification [01:03:18] we have seen regression [01:03:21] that was covered [01:03:22] now come to that part [01:03:24] in the unsupervised [01:03:29] learning [01:03:29] unsupervised learning [01:03:33] under many categories [01:03:35] there are many categories [01:03:36] one of the categories is clustering [01:03:39] Somebody was asking, sir, can you explain some example of unsupervised learning? [01:03:46] Association rule mining, PCA, okay? [01:03:54] So, these are the example of unsupervised learning. [01:03:59] I hope many of you already familiar with the name of clustering. [01:04:03] So, clustering comes under the unsupervised learning. [01:04:06] Association rule mining, under the association rule mining, [01:04:09] there are many algorithms like a priori, like a frequent pattern growth, okay? Is it clear? [01:04:23] Yeah, principal component analysis is a kind of unsupervised learning, okay? Is it clear? Okay, [01:04:45] now, yeah, so this is over and I will upload that document, that document have introduction about [01:04:58] unsupervised learning look here and unsupervised learning have some some some other topic like a [01:05:06] clustering what is association rule mining everything i have given the difference between [01:05:11] supervised learning unsupervised learning also included in this notes i will upload in the [01:05:16] you can go through it okay yeah so it is all about supervised learning and unsupervised learning [01:05:29] we have a next topic yeah so I'm going to start the next topic it's again a fundamental of machine [01:05:40] learning the next topic is like a model development life cycle model development life cycle okay [01:06:00] so ultimate your objective is what to develop a model so there is a life cycle that you need to [01:06:09] understand each component if any problem and task is given you need to select the algorithm [01:06:17] that is very important part suppose a task is given okay task is good based on the task [01:06:26] the data set will be given to you [01:06:30] I assume that [01:06:31] the data set will be given to you [01:06:33] by seeing the task [01:06:35] and the data set [01:06:36] you can decide [01:06:38] if data set [01:06:40] given [01:06:42] the label [01:06:44] then you can [01:06:47] go with the supervised [01:06:49] learning I think everybody [01:06:51] if the given [01:06:53] task and data set not [01:06:56] having any label, you can go with the unsupervised learning. This I am discussing how to do, [01:07:07] how to decide which algorithm you need to keep. Suppose in the data set the label is given, [01:07:14] then by seeing the label type, you can think about it will be solved through the classification [01:07:22] or with the regression. Now, suppose you decided it is a classification problem, [01:07:29] then there are many algorithms. Then there are many, many, many, many, many. [01:07:34] For example, classification, one of the most important algorithms is logistic regression, [01:07:41] SVM [01:07:43] decision tree [01:07:46] NABASE [01:07:48] CNN [01:07:50] NN many more. [01:07:55] Similarly, we have [01:07:56] many algorithms under the regression. [01:07:59] Similarly, [01:08:00] we have many algorithms under the [01:08:02] unsupervised [01:08:05] lab. [01:08:06] So, [01:08:09] model development lifecycle [01:08:11] based on the given data set [01:08:13] based on the given problem, you have to select the algorithm. [01:08:17] Once you have selected the algorithm, [01:08:20] you should start training process. [01:08:23] I will discuss the training process right now. [01:08:26] Once the training process is over, [01:08:28] you have a model that you need to check [01:08:32] the performance of your model. [01:08:34] We call it model validation or model testing [01:08:36] or model evaluation. [01:08:38] Once you have a model tested, [01:08:41] you can go for the model optimizer. [01:08:43] Okay. So, let me explain with the first what is training process. What is the training process? [01:08:58] Okay. So, training process means it is a process. First try to understand it is a process [01:09:04] or in better way I can say it is a iterative process. It is a iterative process. [01:09:15] okay so whatever the data set is given to you whatever the data set is given to you data sets [01:09:22] contain a lot of images a lot of observations the data set will be given to the any of the [01:09:30] ML or DL algorithm okay any of the ML DL algorithm okay so this algorithm is scan [01:09:40] this scan data set [01:09:43] multiple time. [01:09:47] Okay. [01:09:48] So that it can learn the pattern. [01:09:52] Okay. [01:09:52] For example, suppose data set [01:09:55] contain a lot of images of [01:09:56] cat and dog. [01:09:58] Okay. [01:10:00] So these images will be given to the [01:10:02] any of the machine learning, deep learning [01:10:04] algorithm, whatever you have decided. [01:10:07] It will scan [01:10:08] those images multiple time multiple time multiple time okay so that it can learn what it can learn [01:10:18] it can recognize it can learn it can recognize how the cat and dog look like pattern of cat and dog [01:10:28] this idea is clear to everybody is it clear okay great so there are two [01:10:51] important part during modeling modeling means during training here first need to [01:10:59] understand what is training I will explain and what is testing okay and [01:11:09] what is validation kind of thing what is testing okay what is the criteria of selecting algorithm [01:11:22] at a okay so i have given a very brief answer here depend on the data set depend on the [01:11:31] task you should decide first it is a supervised learning problem or it is unsupervised learning [01:11:37] problem if it is supervised learning problem you have to see it is a classification it is [01:11:41] the regression once it is a classification then you have n number of options so typically if i [01:11:48] say it comes with the experience otherwise hit and try every algorithm you have to [01:11:56] implement and check which perform the best for your case you have to choose as a final algorithm [01:12:04] okay [01:12:05] Patish [01:12:07] yes [01:12:10] machine learning [01:12:13] required [01:12:15] or modeling [01:12:16] required a lot [01:12:17] of time [01:12:17] you cannot [01:12:18] say out of [01:12:20] out of [01:12:21] these [01:12:21] algorithm [01:12:22] this will [01:12:23] be the best [01:12:24] I am going [01:12:24] to choose [01:12:25] this one [01:12:25] no you [01:12:26] cannot [01:12:27] think like [01:12:28] that [01:12:28] I agree [01:12:30] once you [01:12:31] have a lot [01:12:31] of experience [01:12:32] you can [01:12:32] find out [01:12:33] the subset [01:12:34] of available [01:12:34] candidate [01:12:35] of the [01:12:36] algorithm [01:12:36] but even [01:12:37] though [01:12:37] many algorithm you have to hit [01:12:40] and try. You have to train. [01:12:42] You have to go for the training [01:12:43] with many n number of [01:12:45] algorithms. Out of those, which [01:12:47] will give you the best result you [01:12:49] should choose. [01:12:52] Okay, Atif? [01:12:54] Yes. [01:12:55] I've been asked earlier. [01:12:57] At the end of the course, you [01:12:59] will realize. [01:13:06] Yeah. [01:13:08] So, during modeling, there are [01:13:10] two important part training and testing so first discuss here otherwise you will ask many [01:13:20] questions and later i will not answer i will i will suggest to see the recording okay so this [01:13:27] is the data set okay data set having suppose 10 number of variables and this is your target [01:13:39] variable. I am explaining with the example of supervised learning. Okay, so this is your data set. [01:13:51] Okay, and you have a suppose 100 observations. Okay, total number of size of the data set is 100. [01:14:01] Okay, Vissal have asked a question, label means what? I think you have joined the [01:14:09] this session late, please refer the recording of this session. Okay. I have covered in detail [01:14:18] what is the label. So come back to the discussion. This is the data set is given to you. Okay. [01:14:27] Now you have to split that data set. Normally there is no thumb root. You need to split your [01:14:36] dataset. Normally people say 65% to 80% of data as a training set, training set or remaining [01:14:50] 35 to 20%. It's up to you. Test data, test data, test set. So normally if I say people do with the [01:15:06] 70% as a training data, remaining 30% as a testing data. [01:15:12] This number is not fixed. [01:15:14] It's a range around 70% to 75% for a training data set [01:15:20] and 35% to 25% for a testing data set. [01:15:26] Okay. [01:15:27] Is it clear? [01:15:28] This spirit is clear to everybody. [01:15:31] Is it clear or not? [01:15:37] So what I will do? [01:15:38] I will randomly select randomly. Here, I will randomly select, suppose, 70 observation, [01:15:47] 70 observation here. This is a 70 observation. Okay. 0, 1, 2, 70. They are randomly I have select. [01:15:58] Okay. So, this data set having all the observations variable to target variable. [01:16:05] It is clear? Is it clear or not what I am doing here? Whatever the data set will be given to you [01:16:17] at the starting point, the major part of the data set like 70% or around that, [01:16:24] you should split or divide for a training data and remaining around 25 to 30% data, [01:16:31] you should keep for the testing data purpose. Up to this moment, things are clear? [01:16:43] So this data set is given to you, 70 percent observation I have taken as a training data. [01:16:49] So this is the training data. So in the training data I have already explained [01:16:59] what we are going to do. Any of the MLDL algorithm that you have selected, [01:17:06] you have to feed observation one by one, first observation I have given. [01:17:10] it will predict something. Okay, then we have to match with the ground truth or target variable. [01:17:21] If it is correct, okay. If it is misclassification or incorrect, then we have to make changes in the [01:17:31] algorithm. We have to make what changes don't ask right now. You have to make changes in the [01:17:36] algorithm. Once the changes are over, you have to feed the next observation O2 [01:17:45] to the ML algorithm that is modified version. Again, it will predict. Again, you have to check [01:17:56] with the target variable if it matching okay. Otherwise, the same process you have to repeat [01:18:06] for complete [01:18:08] training data set. Suppose there [01:18:10] are 70 observations. [01:18:13] Every time [01:18:14] you have to update the model if there [01:18:16] are errors. If there is a [01:18:18] classification, you need to update the model. [01:18:20] Otherwise, not required. [01:18:22] It is clear to everybody? [01:18:29] Now, important part. [01:18:31] Suppose this is [01:18:33] your data set. [01:18:37] Suppose this complete [01:18:42] data set you have given [01:18:43] your ML model during the training [01:18:46] and all the 70 observations [01:18:49] you have given. [01:18:51] You have to again repeat [01:18:52] the same process. [01:18:55] You have to repeat again [01:18:56] the same process. [01:18:58] Please do not think [01:18:59] only once all the observation [01:19:02] of the training data [01:19:03] will be given to the algorithms. [01:19:04] Not. [01:19:05] It is iterative process. [01:19:08] Multiple scanning is required. [01:19:10] N number of time you have to give. [01:19:12] and number of time you have to be complete data set. [01:19:15] Same data set multiple time. [01:19:18] How to decide and I will discuss later. [01:19:22] That question will be how to stop. [01:19:24] When to stop that learning process or the training process. [01:19:32] That question may be with you. [01:19:35] So, rough answer is that when training is over. [01:19:38] When training is over. [01:19:43] Rough answer is that when your model learned enough, okay, but how to quantify it, how to, [01:19:59] how to, how exactly, this is the, this is the some, some, some, some answer like that [01:20:05] qualitative answer, we don't have any quantitative answer. So, I will discuss that part, but is, [01:20:10] But today is not the right time to study, to check when the model has learned enough [01:20:19] and when we supposed to stop the training. [01:20:22] It's not the right time. [01:20:23] Okay. [01:20:24] So first understand whatever the training data set is given to you. [01:20:28] This whole training data set we need to pass. [01:20:32] We need to give the ML algorithm or DL algorithm multiple times. [01:20:37] This is the main concept. [01:20:38] I want to make it clear. [01:20:40] Observation means row, a single row we call observation. [01:20:48] Joginder have written the bootstrap wrong, it is not bootstrap at all. [01:21:03] So training is clear to everybody or not? [01:21:07] Idea about the training because many of you assume that only once you give the training [01:21:15] dataset completely to the model, no. [01:21:18] same data set we have to give multiple time, multiple time, multiple time during the training. [01:21:23] That is the idea I want to convey. When to stop, we will discuss later. Now suppose training is [01:21:33] over, you have a model. You have a model M1. Okay, then the question is, then the time is to check it, [01:21:44] to check its performance, to check its performance. Okay, it's a common idea. Once training is over, [01:21:55] how well your model is performing, how well it learned from the data, I don't know. [01:21:59] So we have to check its performance. I think everybody agree. Now come to the testing data set. [01:22:15] Yes, somebody have asked what is the difference between training data set and testing data set. [01:22:22] so now for this we have to test the data as the model agree so now focus on the testing data set [01:22:36] testing data set if you remember that was 30 percent of overall data set i have just [01:22:44] split it and kept it other side okay is it clear testing data set is clear at the beginning the 30 [01:22:54] data set i have divided and split and separated to keep other side for which purpose for this [01:23:02] purpose now i want to check the model performance okay yes now the important part during testing [01:23:14] what happened. This is the important. Please understand. Suppose this is the testing data set. [01:23:22] This is your testing data set. Important part. Testing data set have all the details [01:23:31] up to all the variables that we have seen in the original data set. [01:23:37] Look, this is original data set having all the variables or features like 10 number [01:23:43] of features plus target variable. Here it is very important part. Now we have to separate [01:23:53] this dataset a target variable. We have to separate. Now target variable will not be a part [01:24:02] of testing dataset. Is it clear? Is it clear or not? The same dataset I have taken as a testing [01:24:11] data set but I have removed the target variable. Now this data set is given to you. Suppose there [01:24:21] were observations like 71, 200 for example and this is your trained model. This is your trained [01:24:29] model you have got from the training. What you have to do? You have to pass the observation [01:24:38] from the testing data set. Suppose this observation I have passed 471. Your model will predict [01:24:45] something. Now you have to check with the target variable that you have kept separately, whether [01:24:56] it is matching or not. Agree? So suppose here all the testing data set, all the observation you have [01:25:06] pass to the model. Here we are not going to update the model because it is not training. [01:25:12] Just we are going to check. We are just giving the observation from the testing dataset and [01:25:18] your model will do predict correct or not. So based on that, we can count how many times it [01:25:26] is predicted correctly or how many times it predicted not correctly. But accordingly, [01:25:34] you can check the performance of your model or accuracy of your model. Is it clear everybody? [01:25:56] Is it clear? So I have covered the topic. What is training data set? What is testing data set? [01:26:10] Training data set purpose is clear to everybody. Testing data set purpose is clear to everybody. [01:26:16] that was the topic i have covered today because i have already covered this question data set [01:26:29] should be different or same i'm not getting your question i suspect if we keep on giving the same [01:26:34] data set we won't able to train the model accurately okay you are wrong giving the same [01:26:42] data set multiple time your model will learn okay so you will realize throughout the semester [01:26:50] how it is going to happen okay so this is the introduction of machine learning only [01:26:54] we are not going to end the course today during the testing phase do we need to exclude the target [01:27:00] column manually yes yes or logically you can you can give these number of column uh during [01:27:13] the testing okay in both the way you can do it are we going to use the random sampling within [01:27:20] the training data set while being used multiple times. Once you have a training data set, [01:27:29] you have to provide all the observations to the model, maybe sequentially, always be sequentially [01:27:35] like that. Okay, Anu Jai, you should not apply sampling in the training data set. [01:27:46] So we are comparing predicted data from the training model and comparing with the target [01:27:51] inserting the data is wrong yes how to exclude the target variable how to exclude you learn by [01:27:59] yourself through the python okay you need to know how to import the data set how to visualize it [01:28:07] how to split it okay it is going to be uh i will ask to the uh my scholar uh dr mayank [01:28:21] he will take a one lab or coding i will not want to use the word lab the coding class will give you [01:28:31] one demonstration how to split the data set it will be good for you if required i will ask him [01:28:36] to cover it so it i will ask ask him to demonstrate all that process in doing python if you want i [01:28:44] can ask by using python how it is going to happen i will i will cover in the coding classes [01:28:52] if you are agree okay it will be done it will be done don't worry i will ask him [01:29:02] okay okay it will be there [01:29:04] it will be there [01:29:05] I will do it don't worry about [01:29:10] I will do it anything else [01:29:12] whatever is required [01:29:14] for your learning purpose I am with you all [01:29:16] there is no distribution [01:29:23] Narayan whatever [01:29:25] I am teaching it will be the part of [01:29:28] MCQ and quiz [01:29:29] simple answer [01:29:31] simple answer there is no [01:29:33] separation there is no distribution [01:29:35] at all please understand [01:29:38] whatever the quiz or any kind of exam happen [01:29:43] whatever covered in the classroom [01:29:48] will be [01:29:51] based on that. There is no any distribution like [01:29:56] 10% question from mathematics, 20% question from [01:30:00] machine learning fundamental, 10% question from NLP. Not like that. [01:30:05] It's totally up to me. [01:30:07] It's totally up to me. [01:30:08] Okay. [01:30:10] There is no distribution of questions based on the topic. [01:30:19] So, yes, Vindar, you are going to give the exposure of ML and DL, [01:30:25] both kind of algorithm by using Python. [01:30:29] Okay, Sengar, you will be given the exposure of ML. [01:30:34] But initially, many of you don't know about the Python at all. [01:30:40] So, he will demonstrate the Python introduction, all those things. [01:30:44] Then we are going to use the library function. [01:30:48] The library function will be around the data science [01:30:51] or machine learning. [01:30:54] Whatever the library function we are going to [01:30:57] demonstrate, it will be around the machine learning. [01:31:00] It is not typical ML or typical Python we are going to teach. [01:31:04] We are not interested. [01:31:05] It's your responsibility to learn the Python. [01:31:08] So as I promised, there will be two or three classes [01:31:12] for Python [01:31:14] classes for Python [01:31:16] where we will [01:31:19] give the exposure [01:31:21] of ML [01:31:22] or ML related [01:31:24] library. [01:31:26] We are not going to teach Python [01:31:28] syntax at all. [01:31:34] Yes, Chandan, perfectly. [01:31:38] Or there is no [01:31:39] separation of questions. There may be [01:31:41] 70% question [01:31:43] from DL. There may be 10% question [01:31:45] from the NLP there is no module wise distribution of the marks. Totally whatever I am teaching [01:31:52] the questions will be based on that. I will upload all the notes right now. Okay. I agree [01:32:07] somebody is requesting when you are going to get all these notes. I will upload all the notes [01:32:14] just after the class. It's my promise. Anything else? Okay. I think you have a next class from [01:32:24] 8 p.m onwards. So, we will continue discussion in the next class. Don't worry about it. [01:32:31] We have complete one semester. Thank you. It will be MCQ question.