SlideShare a Scribd company logo
Machine Learning using Python
http://ocl.space
http://ocl.space
What is Machine Learning?
http://ocl.space
Types of Machine Learning
● Supervised Learning
● Unsupervised Learning
● Reinforcement Learning
http://ocl.space
Supervised Learning
y = f(X)
X is the features/inputs
y is the target/output
f(X) is the learning function
Types :
● Regression
● Classification
http://ocl.space
Unsupervised Learning
● We have input data (X) but no corresponding output variable (y).
● The goal is to model the distribution of the data in order to learn more
about the data.
● Types of unsupervised learning :
--> Clustering
--> Association
http://ocl.space
Other learning methods...
● Reinforcement learning
● Semi-supervised learning
● Transfer learning
http://ocl.space
Regression
● A form of predictive modelling technique which investigates the relationship
between a dependent (target) and independent variable (s) (predictor).
● It is used for forecasting, time series modelling and finding the causal effect
relationship between the variables.
● It indicates the significant relationships between dependent variable and
independent variable.
● It indicates the strength of impact of multiple independent variables on a
dependent variable.
● Types of regression : Linear, Logistic, Polynomial, Stepwise, Ridge, Lasso
and ElasticNet
http://ocl.space
Classification
● A classification problem is when the output variable is a category.
● Examples : Emails filtering, Spam/Not Spam
http://ocl.space
Clustering and Association
● The aim is to segregate groups with similar traits and assign them into clusters.
● Types of Clustering :
--> Hard Clustering: In hard clustering, each data point either belongs to a cluster
completely or not.
--> Soft Clustering: In soft clustering, instead of putting each data point into a
separate cluster, a probability or likelihood of that data point to be in those
clusters is assigned.
● When we want to discover rules that describe portions of the input data it is known
as association problem.
http://ocl.space
Linear Regression
● It is used to estimate real values (cost of houses, number of calls, total sales etc.)
based on continuous variable(s).
● Here, we establish relationship between independent and dependent variables
by fitting a best line.
● This best fit line is known as regression line and represented by a linear equation
Y= a * X + b
Y – Dependent Variable
a – Slope
X – Independent variable
b – Intercept
http://ocl.space
Linear Regression
http://ocl.space
Logistic Regression
● It is used to estimate discrete values ( Binary values like 0/1, yes/no, true/false )
based on given set of independent variable(s).
● It predicts the probability of occurrence of an event by fitting data to a logit function.
http://ocl.space
Logistic Regression
http://ocl.space
Overfitting & Underfitting
● Overfitting happens when a model performs too well on training data but does
not perform well on unseen data.
● Underfitting when a model does not perform well on training data as well as
unseen data.
http://ocl.space
Cross Validation
● A method to test how well a model performs on unseen data.
● Types of Cross Validation methods :
--> Hold out method
--> K-fold method
--> Leave-one-out cross validation
http://ocl.space
Learning = Representation + Evaluation +
Optimization
http://ocl.space
Naive Bayes
● Naive Bayes is a supervised learning algorithm which is based on bayes theorem.
● The word naive comes from the assumption of independence among features.
● We can write bayes theorem as follows :
Where,
P(x) is the prior probability of a feature.
P(x | y) is the probability of a feature given target. It's also known as likelihood.
P(y) is the prior probability of a target or class in case of classification.
p(y | x) is the posterior probability of target given feature.
http://ocl.space
Support Vector Machines (SVMs)
● SVMs are among the best supervised learning algorithms.
● It is effective in high dimensional space and it is memory efficient as well.
● We plot each data item as a point in n-dimensional space andperform classification
by finding the hyperplane that differentiate the two classes very well.
● We can draw m number of hyperplanes.
● The optimal hyperplane is obtained by maximizing the margin.
http://ocl.space
Support Vector Machines (SVMs)
http://ocl.space
Decision Tree
● Decision Tree is the supervised learning algorithm which can be used for
classification as well as regression problems.
● Here we split population into set of homogeneous sets by asking set of questions.
● Example : To decide what to do on a particular day.
http://ocl.space
Decision Tree
http://ocl.space
Random Forest
● Random Forest is the most common type of Ensemble Learning.
● It is a collection of decision trees.
● To classify a new object based on attributes, each tree gives a classification
and we say the tree “votes” for that class. The forest chooses the classification
having the most votes (over all the trees in the forest).
● There are plethora of advantages of random forest such as they are fast to train,
requires no input preparation.
● One of the disadvantage of random forest is that our model may become too large.
http://ocl.space
K-nearest Neighbors (KNN)
● KNN can be used for both classification and regression problems.
● It stores all available cases and classifies new cases by a majority vote of its k
neighbors.
● KNN is computationally expensive.
http://ocl.space
K-means clustering
● K-means is one of the simplest unsupervised learning algorithm used for
clustering problem.
● Our goal is to group objects based on their features similarity.
● Basic idea behind K-means is, we define k centroids,
that is, one for each cluster.
http://ocl.space
Neural Networks
● Neural Network is an information processing system, that is, we pass some
input to the Neural Network, some processing happens and we get some output.
● Neural Networks are inspired from biological connection of neurons and how
information processing happens in the brain.
http://ocl.space
Let’s get started...

More Related Content

PDF
Kaggle kenneth
PPTX
Introduction to data structure and algorithms
PPTX
Introduction to Data Structure part 1
PPT
Data structure lecture 1
PPT
Abstract data types
PPT
Data structures
PPTX
Introduction linked list
PPT
Struct
Kaggle kenneth
Introduction to data structure and algorithms
Introduction to Data Structure part 1
Data structure lecture 1
Abstract data types
Data structures
Introduction linked list
Struct

What's hot (20)

PPTX
Java Tutorial Lab 9
PPTX
Machine Learning - Dataset Preparation
PPT
Data structure
PPTX
Unit 1 abstract data types
PPTX
Data Structure and Algorithms
PPTX
Machine Learning - Dummy Variable Conversion
PPT
Abstract data types (adt) intro to data structure part 2
PPTX
Lecture 1 and 2
PPT
Cis435 week04
PPTX
Lecture 01 Intro to DSA
PPTX
introduction to Data Structure and classification
PPTX
Mca ii dfs u-1 introduction to data structure
PPTX
Types Of Data Structure
PDF
Introduction to data structure
PDF
Data structure
PPTX
Data structure and algorithm using java
PPTX
Classes,object and methods jav
PPTX
Data structure and algorithm All in One
PPT
DIGITAL ELECTRONICS AND LOGIC DESIGN
PPTX
Applications of data structures
Java Tutorial Lab 9
Machine Learning - Dataset Preparation
Data structure
Unit 1 abstract data types
Data Structure and Algorithms
Machine Learning - Dummy Variable Conversion
Abstract data types (adt) intro to data structure part 2
Lecture 1 and 2
Cis435 week04
Lecture 01 Intro to DSA
introduction to Data Structure and classification
Mca ii dfs u-1 introduction to data structure
Types Of Data Structure
Introduction to data structure
Data structure
Data structure and algorithm using java
Classes,object and methods jav
Data structure and algorithm All in One
DIGITAL ELECTRONICS AND LOGIC DESIGN
Applications of data structures
Ad

Similar to Machine Learning using Python (20)

PDF
Artificial Intelligence Overview
PDF
Machine Learning Notes for beginners ,Step by step
PDF
Classifiers
PPTX
AI Algorithms
PPT
Supervised and unsupervised learning
PPTX
fINAL ML PPT.pptx
PDF
Neural Nets Deconstructed
PPTX
Machine learning - session 3
PPTX
ML SFCSE.pptx
PPTX
demo lecture for foundation class for btech
PPTX
Image Recognition of recognition pattern.pptx
PPTX
Machine learning Module-2, 6th Semester Elective
PPTX
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkk
PPTX
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkk
PPTX
SVM - Functional Verification
PPTX
Reuqired ppt for machine learning algirthms and part
PPTX
Ai saturdays presentation
PPTX
V2.0 open power ai virtual university deep learning and ai introduction
PDF
Data mining knowledge representation Notes
PPTX
Introduction to data visualization tools like Tableau and Power BI and Excel
Artificial Intelligence Overview
Machine Learning Notes for beginners ,Step by step
Classifiers
AI Algorithms
Supervised and unsupervised learning
fINAL ML PPT.pptx
Neural Nets Deconstructed
Machine learning - session 3
ML SFCSE.pptx
demo lecture for foundation class for btech
Image Recognition of recognition pattern.pptx
Machine learning Module-2, 6th Semester Elective
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkk
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkk
SVM - Functional Verification
Reuqired ppt for machine learning algirthms and part
Ai saturdays presentation
V2.0 open power ai virtual university deep learning and ai introduction
Data mining knowledge representation Notes
Introduction to data visualization tools like Tableau and Power BI and Excel
Ad

More from Suraj Kumar Jana (15)

PDF
Convolution Neural Network
PDF
Artificial Neural Network: A Brief Overview
PDF
Mathematics For Artificial Intelligence
PDF
Artificial Intelligence: A Brief Overview
PDF
Introduction to Chatbot Development
PDF
Understanding Blockchain: Case Studies
PDF
Understanding Blockchain: Distributed Ledger Technology
PDF
Understanding Blockchain: A General Introduction
PDF
Practical Introduction to Internet of Things (IoT)
PDF
Cloud Computing workshop
PDF
Introduction to Open Data and Data Science
PDF
Arduino Hands-on Workshop
PDF
Prepare to Start-up
PPSX
Adore India - Introduction
PPSX
Adore India - Talking To Students
Convolution Neural Network
Artificial Neural Network: A Brief Overview
Mathematics For Artificial Intelligence
Artificial Intelligence: A Brief Overview
Introduction to Chatbot Development
Understanding Blockchain: Case Studies
Understanding Blockchain: Distributed Ledger Technology
Understanding Blockchain: A General Introduction
Practical Introduction to Internet of Things (IoT)
Cloud Computing workshop
Introduction to Open Data and Data Science
Arduino Hands-on Workshop
Prepare to Start-up
Adore India - Introduction
Adore India - Talking To Students

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Electronic commerce courselecture one. Pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
Encapsulation_ Review paper, used for researhc scholars
Per capita expenditure prediction using model stacking based on satellite ima...
Building Integrated photovoltaic BIPV_UPV.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Electronic commerce courselecture one. Pdf
The AUB Centre for AI in Media Proposal.docx
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Spectroscopy.pptx food analysis technology
Machine learning based COVID-19 study performance prediction
Dropbox Q2 2025 Financial Results & Investor Presentation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MIND Revenue Release Quarter 2 2025 Press Release
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Teaching material agriculture food technology
Approach and Philosophy of On baking technology

Machine Learning using Python