0% found this document useful (0 votes)
3 views8 pages

Introduction To Machine Learning Notes

The document provides an introduction to Machine Learning, highlighting its importance in analyzing vast amounts of data and making informed decisions. It outlines the Machine Learning process, including steps such as data gathering, preparation, model building, and evaluation, while also explaining different types of learning: supervised, unsupervised, and reinforcement. Additionally, it categorizes problems in Machine Learning into regression, classification, and clustering, providing examples for each type.

Uploaded by

resk301group18
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views8 pages

Introduction To Machine Learning Notes

The document provides an introduction to Machine Learning, highlighting its importance in analyzing vast amounts of data and making informed decisions. It outlines the Machine Learning process, including steps such as data gathering, preparation, model building, and evaluation, while also explaining different types of learning: supervised, unsupervised, and reinforcement. Additionally, it categorizes problems in Machine Learning into regression, classification, and clustering, providing examples for each type.

Uploaded by

resk301group18
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MAIN301 Introduction to Machine Learning 2020

Introduction to Machine Learning


Undoubtedly, Machine Learning is the most in-demand technology in today’s market. Its
applications range from self-driving cars to predicting deadly diseases such as ALS.

In simple terms, Machine learning is a subset of Artificial Intelligence (AI) which provides
machines the ability to learn automatically & improve from experience without being explicitly
programmed to do so. In the sense, it is the practice of getting Machines to solve problems by
gaining the ability to think.

Need for Machine Learning


Ever since the technical revolution, we’ve been generating an immeasurable amount of data.
As per research, we generate around 2.5 quintillion bytes of data every single day! It is
estimated that by 2020, 1.7MB of data will be created every second for every person on earth.

With the availability of so much data, it is finally possible to build predictive models that can
study and analyze complex data to find useful insights and deliver more accurate results.

Top Tier companies such as Netflix and Amazon build such Machine Learning models by using
tons of data in order to identify profitable opportunities and avoid unwanted risks.

Here’s a list of reasons why Machine Learning is so important:

 Increase in Data Generation: Due to excessive production of data, we need a method


that can be used to structure, analyze and draw useful insights from data. This is where
Machine Learning comes in. It uses data to solve problems and find solutions to the
most complex tasks faced by organizations.
 Improve Decision Making: By making use of various algorithms, Machine Learning
can be used to make better business decisions. For example, Machine Learning is used
to forecast sales, predict downfalls in the stock market, identify risks and anomalies,
etc.

1
Revised by: S. Hoosen
MAIN301 Introduction to Machine Learning 2020

 Uncover patterns & trends in data: Finding hidden patterns and extracting key
insights from data is the most essential part of Machine Learning. By building
predictive models and using statistical techniques, Machine Learning allows you to dig
beneath the surface and explore the data at a minute scale. Understanding data and
extracting patterns manually will take days, whereas Machine Learning algorithms can
perform such computations in less than a second.
 Solve complex problems: From detecting the genes linked to the deadly ALS disease
to building self-driving cars, Machine Learning can be used to solve the most complex
problems.

To give you a better understanding of how important Machine Learning is, let’s list down a
couple of Machine Learning Applications:

 Netflix’s Recommendation Engine: The core of Netflix is its infamous recommendation


engine. Over 75% of what you watch is recommended by Netflix and these
recommendations are made by implementing Machine Learning.
 Facebook’s Auto-tagging feature: The logic behind Facebook’s DeepMind face
verification system is Machine Learning and Neural Networks. DeepMind studies the
facial features in an image to tag your friends and family.
 Amazon’s Alexa: The infamous Alexa, which is based on Natural Language Processing
and Machine Learning is an advanced level Virtual Assistant that does more than just
play songs on your playlist. It can book you an Uber, connect with the other IoT devices
at home, track your health, etc.
 Google’s Spam Filter: Gmail makes use of Machine Learning to filter out spam
messages. It uses Machine Learning algorithms and Natural Language Processing to
analyze emails in real-time and classify them as either spam or non-spam.

Machine Learning Definitions

Algorithm: A Machine Learning algorithm is a set of rules and statistical techniques used to
learn patterns from data and draw significant information from it. It is the logic behind a
Machine Learning model. An example of a Machine Learning algorithm is the Linear
Regression algorithm.

Model: A model is the main component of Machine Learning. A model is trained by using a
Machine Learning Algorithm. An algorithm maps all the decisions that a model is supposed to
take based on the given input, in order to get the correct output.

Predictor Variable: It is a feature(s) of the data that can be used to predict the output.

Response Variable: It is the feature or the output variable that needs to be predicted by using
the predictor variable(s).

Training Data: The Machine Learning model is built using the training data. The training data
helps the model to identify key trends and patterns essential to predict the output.

Testing Data: After the model is trained, it must be tested to evaluate how accurately it can
predict an outcome. This is done by the testing data set.

The next topic in this Introduction to Machine Learning is the Machine Learning Process.

2
Revised by: S. Hoosen
MAIN301 Introduction to Machine Learning 2020

Machine Learning Process


The Machine Learning process involves building a Predictive model that can be used to find a
solution for a Problem Statement. To understand the Machine Learning process let’s assume
that you have been given a problem that needs to be solved by using Machine Learning.

Example:

The problem is to predict the occurrence of rain in your local area by using Machine Learning.

The below steps are followed in a Machine Learning process:

Step 1: Define the objective of the Problem Statement

At this step, we must understand what exactly needs to be predicted. In our case, the objective
is to predict the possibility of rain by studying weather conditions. At this stage, it is also
essential to take mental notes on what kind of data can be used to solve this problem or the
type of approach you must follow to get to the solution.

Step 2: Data Gathering

At this stage, you must be asking questions such as,

 What kind of data is needed to solve this problem?


 Is the data available?
 How can I get the data?

Once you know the types of data that is required, you must understand how you can derive this
data. Data collection can be done manually or by web scraping. However, if you’re a beginner
and you’re just looking to learn Machine Learning you don’t have to worry about getting the
data. There are 1000s of data resources on the web, you can just download the data set and get
going.

3
Revised by: S. Hoosen
MAIN301 Introduction to Machine Learning 2020

Coming back to the problem at hand, the data needed for weather forecasting includes measures
such as humidity level, temperature, pressure, locality, whether or not you live in a hill station,
etc. Such data must be collected and stored for analysis.

Step 3: Data Preparation

The data you collected is almost never in the right format. You will encounter a lot of
inconsistencies in the data set such as missing values, redundant variables, duplicate values,
etc. Removing such inconsistencies is very essential because they might lead to wrongful
computations and predictions. Therefore, at this stage, you scan the data set for any
inconsistencies and you fix them then and there.

Step 4: Exploratory Data Analysis

Grab your detective glasses because this stage is all about diving deep into data and finding all
the hidden data mysteries. EDA or Exploratory Data Analysis is the brainstorming stage of
Machine Learning. Data Exploration involves understanding the patterns and trends in the data.
At this stage, all the useful insights are drawn and correlations between the variables are
understood.

For example, in the case of predicting rainfall, we know that there is a strong possibility of rain
if the temperature has fallen low. Such correlations must be understood and mapped at this
stage.

Step 5: Building a Machine Learning Model

All the insights and patterns derived during Data Exploration are used to build the Machine
Learning Model. This stage always begins by splitting the data set into two parts, training data,
and testing data. The training data will be used to build and analyze the model. The logic of the
model is based on the Machine Learning Algorithm that is being implemented.

In the case of predicting rainfall, since the output will be in the form of True (if it will rain
tomorrow) or False (no rain tomorrow), we can use a Classification Algorithm such as Logistic
Regression.

Choosing the right algorithm depends on the type of problem you’re trying to solve, the data
set and the level of complexity of the problem. In the upcoming sections, we will discuss the
different types of problems that can be solved by using Machine Learning.

Step 6: Model Evaluation & Optimization

After building a model by using the training data set, it is finally time to put the model to a test.
The testing data set is used to check the efficiency of the model and how accurately it can
predict the outcome. Once the accuracy is calculated, any further improvements in the model
can be implemented at this stage. Methods like parameter tuning and cross-validation can be
used to improve the performance of the model.

4
Revised by: S. Hoosen
MAIN301 Introduction to Machine Learning 2020

Step 7: Predictions

Once the model is evaluated and improved, it is finally used to make predictions. The final
output can be a Categorical variable (eg. True or False) or it can be a Continuous Quantity (eg.
the predicted value of a stock).

In our case, for predicting the occurrence of rainfall, the output will be a categorical variable.

So that was the entire Machine Learning process. Now it’s time to learn about the different
ways in which Machines can learn.

Machine Learning Types

A machine can learn to solve a problem by following any one of the following three
approaches. These are the ways in which a machine can learn:

1. Supervised Learning
2. Unsupervised Learning
3. Reinforcement Learning

Supervised Learning
Supervised learning is a technique in which we teach or train the machine using data which is
well labeled.
To understand Supervised Learning let’s consider an analogy. As kids we all needed guidance
to solve math problems. Our teachers helped us understand what addition is and how it is done.
Similarly, you can think of supervised learning as a type of Machine Learning that involves a
guide. The labeled data set is the teacher that will train you to understand patterns in the data.
The labeled data set is nothing but the training data set.

Consider the above figure. Here we’re feeding the machine images of Tom and Jerry and the
goal is for the machine to identify and classify the images into two groups (Tom images and
Jerry images). The training data set that is fed to the model is labeled, as in, we’re telling the
machine, ‘this is how Tom looks and this is Jerry’. By doing so you’re training the machine by
using labeled data. In Supervised Learning, there is a well-defined training phase done with the
help of labeled data.

5
Revised by: S. Hoosen
MAIN301 Introduction to Machine Learning 2020

Unsupervised Learning
Unsupervised learning involves training by using unlabeled data and allowing the model to act
on that information without guidance.
Think of unsupervised learning as a smart kid that learns without any guidance. In this type of
Machine Learning, the model is not fed with labeled data, as in the model has no clue that ‘this
image is Tom and this is Jerry’, it figures out patterns and the differences between Tom and
Jerry on its own by taking in tons of data.

For example, it identifies prominent features of Tom such as pointy ears, bigger size, etc, to
understand that this image is of type 1. Similarly, it finds such features in Jerry and knows that
this image is of type 2. Therefore, it classifies the images into two different classes without
knowing who Tom is or Jerry is.

Reinforcement Learning
Reinforcement Learning is a part of Machine learning where an agent is put in an environment
and he learns to behave in this environment by performing certain actions and observing the
rewards which it gets from those actions.

This type of Machine Learning is comparatively different. Imagine that you were dropped off
at an isolated island! What would you do?
Panic? Yes, of course, initially we all would. But as time passes by, you will learn how to live
on the island. You will explore the environment, understand the climate condition, the type of
food that grows there, the dangers of the island, etc. This is exactly how Reinforcement
Learning works, it involves an Agent (you, stuck on the island) that is put in an unknown
environment (island), where he must learn by observing and performing actions that result in
rewards.

Reinforcement Learning is mainly used in advanced Machine Learning areas such as self-
driving cars, AplhaGo, etc.

To better understand the difference between Supervised, Unsupervised and Reinforcement


Learning, you can go through this short video.

6
Revised by: S. Hoosen
MAIN301 Introduction to Machine Learning 2020

So that sums up the types of Machine Learning. Now, let’s look at the type of problems that
are solved by using Machine Learning.

Type of Problems in Machine Learning

Consider the above figure, there are three main types of problems that can be solved in Machine
Learning:

1. Regression: In this type of problem the output is a continuous quantity. So, for
example, if you want to predict the speed of a car given the distance, it is a Regression
problem. Regression problems can be solved by using Supervised Learning algorithms
like Linear Regression.
2. Classification: In this type, the output is a categorical value. Classifying emails into
two classes, spam and non-spam is a classification problem that can be solved by using
Supervised Learning classification algorithms such as Support Vector Machines, Naive
Bayes, Logistic Regression, K Nearest Neighbor, etc.
3. Clustering: This type of problem involves assigning the input into two or more clusters
based on feature similarity. For example, clustering viewers into similar groups based
on their interests, age, geography, etc can be done by using Unsupervised Learning
algorithms like K-Means Clustering.

Here’s a table that sums up the difference between Regression, Classification, and Clustering.

Now to make things interesting, I will leave a couple of problem statements below and your
homework is to guess what type of problem (Regression, Classification or Clustering) it is:

7
Revised by: S. Hoosen
MAIN301 Introduction to Machine Learning 2020

1. Problem Statement 1: Study a bank credit dataset and make a decision about
whether to approve the loan of an applicant based on his socio-economic
profile.
2. Problem Statement 2: To study the House Sales dataset and build a Machine
Learning model that predicts the house pricing index.
3. Problem Statement 3: To cluster a set of movies as either good or average
based on their social media outreach.

8
Revised by: S. Hoosen

You might also like