Types of Machine Learning

1647932638418

Machine learning algorithms can broadly be classified into 3 broad types.

1. Supervised Learning:

Types of Machine Learning - Javatpoint

In this type of algorithm, there is a target variable that we wish to predict. This target variable is dependent on various independent variables. A function is generated using this set of variables that gives the desired outputs. The model is trained until the training dataset achieves the desired accuracy.

This category can further be divided into Classification, Regression, and Forecasting.

Classification:

In this type of supervised learning, the dependent variable is of 2 or more types.

Algorithms that come under classification:

For example:

Filter an email into “spam” or “not spam” by looking at existing observational data.

Netflix’s recommendation system also uses classification algorithms to recommend which movie a person should watch next.

Examples of classifications algorithms:

  1. KNN
  2. Decision Trees
  3. Random forest

And many more.

Regression:

In this type of supervised learning, the machine learning model understands the relationship among various variables and helps estimate the value of a  new dependent variable when certain independent variables are available.

For example:

Predicting the price of a house, it is common knowledge that the larger the house, the more expensive it will be. To predict its price, we can give the regression model a dataset of areas of various houses and their prices then, when a new house’s area is sent in as input, the model can predict its price.

Training Dataset:

500 yards cost $100k

700 yards cost $140k

2000 yards cost $400k

After the training input area of 1000 yards is given, the model will successfully tell that its cost will be $200k.

This example used linear regression where the area and cost graph plot will create a line on the 2-dimensional plane. More details in further articles.

Examples of regression algorithms:

  1. Linear Regression
  2. Polynomial Regression
  3. Ridge Regression
  4. Lasso Regression

And many more.

Forecasting:

In this type of supervised learning, the model studies the historical data and helps create a prediction.

For example:

Various multi-million dollar companies like Goldman Sachs and Morgan Stanley use forecasting algorithms to predict stock prices.

This can also be used to predict anything from the weather to the currently unstable crypto market just the accuracies vary.

Examples of forecasting algorithms:

  1. LSTM
  2. ARIMA
  3. XGBoost
  4. Prophet

And many more

2. Unsupervised Learning

What Is Machine Learning: Definition, Types, Applications and Examples - Potentia Analytics

Here there isn’t a target variable to predict or estimate. This method is used to sort the dataset into various groups or segments. No human is there to provide instructions on how to divide the dataset. Instead, the algorithm determines what correlations exist by analyzing the data. This is especially beneficial when there are large datasets to organize.

As more data is assessed, the ability to make decisions improves.

This is of 2 main subtypes:

Clustering:

Similar data is segmented into several groups based on different criteria of this type. Clustering is responsible for dividing the dataset into server groups and then performing analysis on each cluster to find patterns.

Clustering is used in Medical imaging, Social Network analysis, etc.

This method can be used to divide music into genres. Music with heavy drum sounds and guitar solos would be divided into Rock, while songs with saxophone or trumpet sounds would go into the Jazz segment.

Examples of Clustering algorithms:

  1. KMeans
  2. Spectral Clustering
  3. Affinity Propagation

And more

Dimension Reduction:

This type of unsupervised learning is used to reduce the number of variables being considered when working with large datasets.

For example:

The DNA in humans contains various types of protein and gene segments, this number is over 10,000, and it would take a large number of computational resources to process such a dataset.

In such a case, we use dimensional reduction to create a method where the information provided by the most relevant parts is considered for computation.

Examples of Dimension Reduction Algorithms:

  1. PCA
  2. t-SNE
  3. Singular Value Decomposition

And more

3. Reinforcement Learning:

Types of Machine Learning | Simplilearn

The main focus in reinforcement learning is on the learning process, where the algorithm is provided with instructions, parameters, and end values. Here the algorithm follows the roles, explores different possibilities, and then evaluates to find the most optimal.

This is a type of trial and error method to achieve the best possible result.

The easiest example to understand is the case of a bot playing a game of chess. Chess follows certain rules and has the desired outcome ( to create a checkmate condition). Every match the bot plays it learns many more possibilities and understands the game better.

There are 2 types of reinforcements given to the algorithm:

  1. Positive: This is when a good event occurs, and the algorithm is prompted to increase the frequency of such events and have positive behavior. This helps maximize performance.
  2. Negative: This is when a negative condition occurs and is to be stopped or avoided. This creates a minimum behavioral standard for the model.

Reinforcement Learning can be used for Industrial Automation, and self-driving cars also work on this principle. They learn to avoid accidents (Negative reinforcement) and are encouraged to go on the path that takes the least amount of time (Positive reinforcement).

 

Leave a Reply

Your email address will not be published. Required fields are marked *