Chapter 4- Machine Learning
Chapter 4- Machine Learning
Introduction to Machine
Learning
4.1 What is machine learning?
4.2 Why learn? When it is required?
4.3 Types of Machine Learning- Supervised
learning, Unsupervised learning ,Reinforcement learning
4.4 Comparison between traditional software algorithm and machine
learning algorithm
• Introduction To Machine Learning
• The term Machine Learning was first coined by Arthur Samuel in the
year 1959. Looking back, that year was probably the most significant
in terms of technological advancements.
• “It is the field of study that gives computers the ability to learn
without being explicitly programmed” –Arthur Samuel,1959
• When machine learning is seen as a process
“machine learning is the process by which a computer can work more
accurately as it collects and learns from the data it is given –Mike
Roberts
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.
• Altogether the first step in a machine learning process is to feed the
computer a large amount of data. The system is then trained to
recognize hidden trends and insights utilizing this data.
Supervised Learning
Unsupervised Learning
Reinforcement Learning
Supervised Learning
• We label the training set of data that we feed the model, informing it,
"This is how Tom looks, and this is Jerry." By doing this, you are using
labelled data to train the computer.
• With the aid of labelled data, there is a clearly defined training phase
in supervised learning.
Linear Regression vs Logistic Regression
• Similar traits are present in Jerry, therefore it recognizes that this image as a
type 2 image.
• As a result, without knowing who Tom or Jerry are, it divides the photos into
two groups.
Unsupervised Algorithms
• K-means clustering
• KNN (k-nearest neighbors)
• Hierarchal clustering
• Anomaly detection
• Neural Networks
• Principle Component Analysis
• Independent Component Analysis
• Apriori algorithm
• Singular value decomposition
K- means clustering
• K-Means Clustering is an Unsupervised Learning algorithm, which
groups the unlabeled dataset into different clusters. Here K defines
the number of pre-defined clusters that need to be created in the
process, as if K=2, there will be two clusters, and for K=3, there will be
three clusters, and so on.