(Photo by Gertrūda Valasevičiūtė on Unsplash) |

*ML is extracting data from knowledge.*

Machine learning is a study of algorithms that uses a provides computers the ability to learn from the data and predict outcomes with accuracy, without being explicitly programmed. Machine learning is sub-branched into three categories- supervised learning, unsupervised learning, and reinforcement learning.

(Image by Author) ## Supervised learningAs the name "supervised learning" suggests, here learning is based through example. We have a known set of inputs (called features, x) and outputs (called labels, y ). The goal of the algorithm is to train the model on the given data and predict the correct value (y) for an unknown input (x). Supervised learning can be further classified into two categories- classification and regression.
Classification and regression follow the Here the major ## ClassificationIn classification, the model is trained in such a way that the output data is separated into different labels (or categories) according to the given input data.
## Binary classificationIf there are only two categories in which the given data has to be classified then it is called binary classification. For example- checking a bank transaction whether it is a fraudulent or a genuine transaction. Here, there are only two categories (i.e. fraudulent or genuine) where the output can be labeled. ## Multiclass classificationIn this kind of problem, the input is categorized into one class out of three or more classes. Iris dataset is a perfect example of multiclass classification. Iris data set contains data of fifty samples of three species of flower (setosa, versicolor, and virginica) which are classified based on four parameters (sepal length, sepal width, petal length, and petal width). (Image by Author) ## Two Kind of Classifiers
A soft classifier predicts the labels for inputs based on the probabilities. For a given input probability for each class (label) is calculated and the input is classified into the class with the highest probability. Higher probability also shows higher accuracy and precision of the model. The sigmoid function can be used in this model since we have to predict the probabilities. This is because the sigmoid function exists between (0,1) and probability also exists between the same range. (Image by Author) |

**Hard Classifier**

Hard classifiers do not calculate the probabilities for different categories and give the classification decision based on the decision boundary.

### Linear and Non- Linear Classifiers

(Image by Sebastian Raschka on WikimediaCommons) **Graph A represents a linear classifier model. Graph B represents a non-linear classifier model.**

**Linear Classification Model**

When the given data of two classes represented on a graph can be separated by drawing a straight line than the two classes are called linearly separable (in graph A above, green dots and blue dots, these two classes are completely separated by a single straight line).

*There can be infinite lines that can differentiate between two classes.*

To find the exact position of the line, the type of classifier used is called a linear classifier. Few examples of linear classifiers are- Logistic Regression, Perceptron, Naive Bayes, etcetera.

**Non-Linear Classification Model**

Here as we can see in graph B (above), two classes cannot be separated by drawing a straight line and therefore requires an alternative way to solve this kind of problem. Here model generates nonlinear boundaries and how that boundary will look like is defined by non-linear classifiers. Few examples of non-linear classifiers are- Decision Trees, K-Nearest Neighbour, Random Forest, etcetera.

## Regression

Unlike classification, here the regression model is trained in such a way that it predicts continuous numerical value as an output based on input variables.

*The algorithm maps the input data (x) to continuous or numerical data(y).*

There are several kinds of regression algorithms in machine learning like- linear regression, polynomial regression, quantile regression, lasso regression, etc. Linear regression is the simplest method of regression.

### Linear Regression

(Image by Sewaqu on WikimediaCommons) **Graphical Representation of Linear Regression Problem**

This approach is generally used for predictive analysis. In this case, a linear relationship is set up between the x-axis feature and the y-axis feature. But as you can see in the graph the line does not pass through every point, but it represents a relationship between the two.

Simple linear regression relation can be represented in the form of an equation as:

y = wx + b

Here, y is numerical output, w is the weight (slope), x is the input variable and b is the bias (or y-intercept).

Regression models can be used in the prediction of temperature, trend forecast, **analyze the effect of change of one variable on other variables.**

## Conclusion

Supervised learning is the easiest and simplest sub-branch of machine learning. Identification of the correct algorithm to structure the model is very necessary and I hope you are able to understand the difference between regression and classification after reading this article. Try implementing these concepts for better understanding.

If you have any questions or comments, please post them in the comment section.

`Sources:`

https://developers.google.com/machine-learning/crash-course/ml-intro

https://www.educative.io/edpresso/what-is-the-difference-between-regression-and-classification

https://www.statisticssolutions.com/what-is-linear-regression/

https://www.geeksforgeeks.org/ml-classification-vs-regression/

Thanks for the useful information.Keep sharing with us.

ReplyDeleteMachine Learning training in Pallikranai Chennai

Data science training in Pallikaranai

Python Training in Pallikaranai chennai

Bigdata training in Pallikaranai chennai

Spark with ML training in Pallikaranai chennai

Thank you!

Deletehttps://www.btreesystems.com

ReplyDeleteaws training in chennai

Python training in Chennai

data science training in chennai

hadoop training in chennai

machine learning training chennai

Great post

ReplyDeleteangularjs online course

Angular Online Training

Great post about python. Thanks for content writter.

ReplyDeletepython course london

Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website

ReplyDeleteangular js online training

best angular js online training

top angular js online training

Thanks for the information. This is very nice blog. Keep posting these kind of posts. All the best.

ReplyDeleteMachine learning is enabling industrial shifts for increased efficiency. In 2021, the following industries are predicted to adopt machine learning.

In 2021, Machine Learning Is Set To Transform These 5 Industries/Machine Learning, Analytics Insight, Machine Learning in Business, Machine Learning Trends

Nice Post Product Engineering Company in UK

ReplyDelete