Introduction to Machine Learning Concepts
Introduction to Machine Learning Concepts
Machine Learning
• In the real world, we are surrounded by humans
who can learn everything from their experiences
with their learning capability, and we have
computers or machines which work on our
instructions.
Introduction to Machine Learning • But can a machine also learn from experiences or
past data like a human does? So here comes the
role of Machine Learning.
• Machine Learning is said as a subset of artificial
intelligence that is mainly concerned with the
development of algorithms which allow a computer
to learn from the data and past experiences on
their own.
Artificial intelligence
Machine Learning
• A Machine Learning system learns from historical data, builds the prediction models, and • Concisely, AI can be described as the effort
whenever it receives new data, predicts the output for it. to automate intellectual tasks normally
• The accuracy of predicted output depends upon the amount of data, as the huge amount of data performed by humans.
helps to build a better model which predicts the output more accurately. • AI is a general field that encompasses
• Suppose we have a complex problem, where we need to perform some predictions machine learning and deep learning
• Instead of writing a code for it, we need to feed the data to generic algorithms, and with the help • AI also includes many more approaches that
of these algorithms, machine builds the logic as per the data and predict the output. may not involve any learning.
1
31-08-2025
Note: The origins of chess are debated, but most historians agree that the game's ancestor, chaturanga, originated
in India around the 6th century AD. Chaturanga is a Sanskrit word that refers to a type of battle formation, and is
mentioned in the Mahabharatha.
Deep Learning with Python – Francois Chollet Deep Learning with Python – Francois Chollet
Deep Learning with Python – Francois Chollet Deep Learning with Python – Francois Chollet
2
31-08-2025
3
31-08-2025
Introduction Introduction
• The term machine learning refers to the automated detection of meaningful patterns in data. Common feature of all of these applications
• In the past couple of decades it has become a common tool in almost any task that requires • In contrast to more traditional uses of computers, due to the complexity of the patterns that need
information extraction from large data sets. to be detected, a human programmer cannot provide an explicit, fine detailed specification of
how such tasks should be executed.
• We are surrounded by a machine learning based technology:
Search engines learn how to bring us the best results (while placing profitable ads), • Ex: we human beings, many of our skills are acquired or refined through learning from our
experience (rather than following explicit instructions given to us)
Anti-spam software learns to filter our email messages, and
Credit card transactions are secured by a software that learns how to detect frauds. • Machine learning tools are concerned with endowing programs with the ability to learn and
adapt.
Digital cameras learn to detect faces and
Intelligent personal assistance applications on smart-phones learn to recognize voice commands
Cars are equipped with accident prevention systems that are built using machine learning algorithms.
Machine learning is also widely used in scientific applications such as bioinformatics, medicine, and astronomy
Understanding Machine Learning: From Theory to Algorithms by Shai Shalev-Shwartz and Shai Ben-David
4
31-08-2025
A. Tasks Performed by Humans: There are numerous tasks that we perform routinely B. Tasks beyond Human Capabilities:
• yet we cannot sufficiently elaborate to extract a well defined program. • Another wide family of tasks that benefit from machine learning techniques are related to the analysis
• Ex: driving, speech recognition, and image understanding. of very large and complex data sets:
• astronomical data, turning medical archives into medical knowledge, weather prediction, analysis
• In all of these tasks, state of the art machine learning programs, programs that “learn from their of genomic data, Web search engines, and electronic commerce.
experience," achieve quite satisfactory results, once exposed to sufficiently many training
examples. • With more and more available digitally recorded data, it becomes obvious that there are treasures of
meaningful information buried in data archives that are way too large and too complex for humans to
make sense of.
• Learning to detect meaningful patterns in large and complex data sets is a promising domain in which
the combination of programs that learn with the almost unlimited memory capacity and ever increasing
processing speed of computers opens up new horizons.
5
31-08-2025
6
31-08-2025
Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron The Hundred-Page Machine Learning Book Andriy Burkov
Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron Applied Machine Learning - Gopal
7
31-08-2025
8
31-08-2025
• Each training example is called a training instance (or sample). 2. Write a detection algorithm for each of the patterns noticed, and program would flag emails as
spam if a number of these patterns were detected.
• Task T is to flag spam for new emails
• 3. Test our program and repeat steps 1 and 2 until it was good enough
• Experience E is the training data
to launch.
• Performance measure P needs to be defined;
Problem?
• We can use the ratio of correctly classified emails.
• This particular performance measure is called accuracy, and it is often used in classification Program will likely become a long list of complex rules—hard to maintain
tasks.
Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron
Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron
9
31-08-2025
Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron
Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron
10
31-08-2025
• Problem? • Applying ML techniques to dig into large amounts of data can help discover patterns that were
not immediately apparent.
• But this technique will not scale to thousands of words spoken by millions of very different people
in noisy environments and in dozens of languages. • This is called data mining
• The best solution is to write an algorithm that learns by itself, given many example recordings for
each word.
11
31-08-2025
• Machine learning is a growing technology used to mine knowledge from data (popularly known as
data mining field).
• Wherever data exists, things can be learned from it.
• Whenever, there is excess of data, the mechanics of learning must be automatic.
• Machine learning technology is meant for automatic learning from voluminous datasets.
• Applications emerge not from machine learning experts, nor from the data itself, but from people
who work with the data and the problems from which it arises.
Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow Aurélien Géron Python Machine Learning- Machine Learning and Deep Learning with Python, scikit-learn, and TensorFlow 2
Sebastian Raschka, Vahid Mirjalili
12
31-08-2025
13
31-08-2025
Approaching (Almost) Any Machine Learning Problem – Abhishek Thakur Approaching (Almost) Any Machine Learning Problem – Abhishek Thakur
Approaching (Almost) Any Machine Learning Problem – Abhishek Thakur Approaching (Almost) Any Machine Learning Problem – Abhishek Thakur
14
31-08-2025
• Unsupervised datasets do not have a target associated with them • When we know the number of clusters, we can use a clustering algorithm for unsupervised
• Ex1: problems.
• A financial firm deals with credit card transactions. • In figure, the data is assumed to have two classes,
• Dark colour represents fraud, and
• There is a lot of data that comes in every second.
• light colour represents genuine transactions.
• The only problem is that it is difficult to find humans who will mark each and every transaction
• These classes, however, are not known to us before the clustering approach.
either as a valid or genuine transaction or a fraud.
• After a clustering algorithm is applied, we should be able to distinguish between the two
• When we do not have any information about a transaction being fraud or genuine, the problem
becomes an unsupervised problem. assumed targets.
• To tackle these kinds of problems we have to think about how many clusters can data be divided • To make sense of unsupervised problems, we can also use numerous decomposition techniques
into. such as Principal Component Analysis
• Clustering is one of the approaches for problems but there are several other approaches • (PCA), t-distributed Stochastic Neighbour Embedding (t-SNE) etc.
• For a fraud detection problem, we can say that data can be divided into two classes (fraud or
genuine).
Approaching (Almost) Any Machine Learning Problem – Abhishek Thakur Approaching (Almost) Any Machine Learning Problem – Abhishek Thakur
15
31-08-2025
• In reinforcement learning, the goal is to develop a system (agent) that improves its performance • Some learning approaches take inspiration from nature for the development of novel problem
based on interactions with the environment. solving techniques.
• Since the information about the current state of the environment typically also includes a so- • The thread that ties together learning based on evolution process, swarm intelligence, and
called reward signal, we can think of reinforcement learning as a field related to supervised immune systems is that all have been applied successfully to a variety of optimization problems.
learning.
• Optimization may not appear to be like a machine learning task, but optimization techniques are
• However, in reinforcement learning, this feedback is not the correct ground truth label or value, commonly used as part of machine learning algorithms.
but a measure of how well the action was measured by a reward function.
• Through its interaction with the environment, an agent can then use reinforcement learning to
learn a series of actions that maximizes this reward via an exploratory trial-and-error approach or
deliberative planning.
16