Blog Details
Blog Title: | Supervised Learning |
---|---|
Blogger: | kajolajab21@gmail.com |
Image: | View |
Content: | What is Supervised Learning?Supervised Learning is the process of making an algorithm to learn to map an input to a particular output. This is achieved using the labelled datasets that you have collected. If the mapping is correct, the algorithm has successfully learned. Else, you make the necessary changes to the algorithm so that it can learn correctly. Supervised Learning algorithms can help make predictions for new unseen data that we obtain later in the future. This is similar to a teacher-student scenario. There is a teacher who guides the student to learn from books and other materials.The student is then tested and if correct, the student passes. Else, the teacher tunes the student and makes the student learn from the mistakes that he or she had made in the past. That is the basic principle of Supervised Learning.
How Supervised Learning Works?In supervised learning, models are trained using labelled dataset, where the model learns about each type of data. Once the training process is completed, the model is tested on the basis of test data (a subset of the training set), and then it predicts the output.The working of Supervised learning can be easily understood by the below example and diagram: Suppose we have a dataset of different types of shapes which includes square, rectangle, triangle, and Polygon. Now the first step is that we need to train the model for each shape.
Now, after training, we test our model using the test set, and the task of the model is to identify the shape.
Best practices for Supervised Learning:
Why is it Important?
Advantages of Supervised Learning:
Disadvantages of Supervised Learning:
Challenges in Supervised machine learning:
Types
Regression:Regression technique predicts a single output value using training data. Example: You can use regression to predict the house price from training data. The input variables will be locality, size of a house, etc. Strengths: Outputs always have a probabilistic interpretation, and the algorithm can be regularized to avoid overfitting. Weaknesses: Logistic regression may underperform when there are multiple or non-linear decision boundaries. This method is not flexible, so it does not capture more complex relationships. Here are a few types of Regression Algorithms: 1. Linear Regression This algorithm assumes that there is a linear relationship between the 2 variables, Input (X) and Output (Y), of the data it has learnt from. The Input variable is called the Independent Variable and the Output variable is called the Dependent Variable. When unseen data is passed to the algorithm, it uses the function, calculates and maps the input to a continuous value for the output.
2. Logistic Regression Logistic regression method used to estimate discrete values based on given a set of independent variables. It helps you to predicts the probability of occurrence of an event by fitting data to a logit function. Therefore, it is also known as logistic regression. As it predicts the probability, its output value lies between 0 and 1.
Classification:Classification means to group the output inside a class. If the algorithm tries to label input into two distinct classes, it is called binary classification. Selecting between more than two classes is referred to as multiclass classification. Example: Determining whether or not someone will be a defaulter of the loan. Strengths: Classification tree perform very well in practice Weaknesses: Unconstrained, individual trees are prone to overfitting.
1. Naïve Bayes Classifiers: Naïve Bayesian model (NBN) is easy to build and very useful for large datasets. This method is composed of direct acyclic graphs with one parent and several children. It assumes independence among child nodes separated from their parent. 2. Decision Trees: Decisions trees classify instance by sorting them based on the feature value. In this method, each mode is the feature of an instance. It should be classified, and every branch represents a value which the node can assume. It is a widely used technique for classification. In this method, classification is a tree which is known as a decision tree. It helps you to estimate real values (cost of purchasing a car, number of calls, total monthly sales, etc.). Applications of Supervised Learning:
|