Intro To Machine Learning
Intro To Machine Learning
Learning
Prepared By Dr. Adedotun Adetunla
Outlines
• What is machine Learning
• Types of Machine Learning
• Various algorithm of Machine Learning
Life without machine learning
• The goal of machine learning is to develop methods that can automatically detect patterns in data,
and then to use the uncovered patterns to predict future data or other outcomes of interest.
Types of Machine Learning problems
1. Supervised Learning. Example” distinguish photos of cats from photos of dogs
2. Unsupervised Learning. Example: Imagine the same images but you don’t have a label on them. If you want
the program to figure out that there are two different types of animals (cat and dog )
3. Reinforcement Learning. Where the program is like an agent that makes prediction and generate the correct
answer based on feedbacks. Example, Imagine putting a burning candle Infront of a new born baby who
doesn’t know that touching the flame can get him/her burnt.
Supervised Learning
Unsupervised Learning
Reinforcement Learning
• K Nearest Neighbors algorightm works in a way that a new data point is assigned to a neighboring group it is most similar
to.
• In K Nearest Neighbors, K can be an integer greater than 1. So, for every new data point we want to classify, we compute to
which neighbouring group it is closest to.
For Example,
Linear Regression
Linear regression analysis is used to predict the value of a variable based on
the value of another variable.
For example, Let’s look at these values to have a relation between X and Y.
• X = -1, 0, 1, 2, 3, 4
• Y = -3, -1, 1, 3, 5, 7
Example: Write a linear equation that best fits the data in the table shown, using least square method.
X 1 2 3 4 5 6 7
Y 1.5 3.8 6.7 9.0 11.2 13.6 16
Using Machine learning Regression algorithm, predict exactly the value of Y when X is 16?.
Decision
Tree
A decision tree is a graph that uses a
branching method to illustrate every
possible outcome of a decision.