SlideShare ist ein Scribd-Unternehmen logo
1 von 38
Downloaden Sie, um offline zu lesen
Python Machine Learning
Getting Started
Rafey Iqbal Rahman
GitHub: https://github.com/RafeyIqbalRahman
LinkedIn: https://linkedin.com/in/rafeyirahman
StackShare: https://stackshare.io/rafeyirahman
Resource List
Resource List
● Machine Learning Mastery blog (Highly
recommended)
https://machinelearningmastery.com/blog/
● Kaggle Notebooks
https://www.kaggle.com/notebooks
● Kaggle Questions & Answers
https://www.kaggle.com/questions-and-an
swers
● Towards Data Science blog
https://towardsdatascience.com/
● Data Science, Machine Learning,
Programming, Artificial Intelligence, and
Technology topics of https://medium.com/.
● Analytics Vidhya blog
https://www.analyticsvidhya.com/blog-arch
ive/
● Google Colaboratory
https://colab.research.google.com
And StackOverflow,
don’t forget
StackOverflow.
Don’ts of Getting Started
Here is what you should NOT do when you start studying machine learning in Python.
1. Get really good at Python programming and Python syntax.
2. Deeply understand the underlying theory and parameters for machine learning algorithms in
scikit-learn*.
3. Avoid or lightly touch on all of the other tasks needed to complete a real project.
- J. Brownlee in his book
“Machine Learning Mastery with Python”
* https://scikit-learn.org/stable/
Don’ts of Getting Started
But it’s important to
know about data
structures before
getting started.
Data Structures in Python - An Overview
● list: sequence of mutable values
● tuple: sequence of immutable values
● dict: collection of key-value pairs
Machine Learning Definitions
“Machine Learning is the interaction between theoretically sound computer science and practically
noisy data. Essentially, it’s about machines making sense out of data
in much the same way as humans do.
Machine learning is a type of artificial intelligence whereby
an algorithm or method extracts patterns from data.”
- Matthew Kirk in his book
“Thoughtful Machine Learning with Python”
Machine Learning Definitions
“Machine Learning is the interaction between theoretically sound computer science and practically
noisy data. Essentially, it’s about machines making sense out of data
in much the same way as humans do.
Machine learning is a type of artificial intelligence whereby
an algorithm or method extracts patterns from data.”
- Matthew Kirk in his book
“Thoughtful Machine Learning with Python”
Machine Learning Definitions
“ML is a multi-disciplinary approach, involving several scientific domains (e.g., mathematics, computer
science, physics, biology, etc.), that enable computers to automatically learn from data. By learning we
mean here a process that takes as input data and gives as output algorithms capable of performing, over
the same kind of data, a desired task.”
- From the book
“Machine Learning for Audio, Image and Video Analysis, 2e”
Machine Learning Definitions
“You will find it difficult to describe your mother’s face accurately enough for your friend to recognize
her in a supermarket. But if you show him a few of her photos, he will immediately spot the tell-tale
traits he needs. As they say, a picture- an example -is worth a thousand words.
This is what we want our technology to emulate. Unable to define certain objects or concepts with
accuracy, we want to convey them to the machine by ways of examples. For this to work, however, the
computer has to be able to convert the examples into knowledge.
Hence our interest in algorithms and techniques for machine learning …”
- From the book
“An Introduction to Machine Learning, 2e”
Machine Learning Definitions
“Machine learning is functionality that helps software perform a task
without explicit programming or rules.”
- Google
Machine Learning Definitions
- Image by
“Amazon Machine Learning on SlideShare”
How Explicit Programming Looks Like?
- Image by
“Amazon Machine Learning on SlideShare”
How Explicit Programming Looks Like?
- Image by
“Amazon Machine Learning on SlideShare”
How Explicit Programming Looks Like?
- Image by
“Amazon Machine Learning on SlideShare”
How Explicit Programming Looks Like?
- Image by
“Amazon Machine Learning on SlideShare”
How Explicit Programming Looks Like?
- Image by
“Amazon Machine Learning on SlideShare”
How Explicit Programming Looks Like?
- Image by
“Amazon Machine Learning on SlideShare”
How Explicit Programming Looks Like?
- Image by
“Amazon Machine Learning on SlideShare”
How Explicit Programming Looks Like?
- Image by
“Amazon Machine Learning on SlideShare”
How Explicit Programming Looks Like?
- Image by
“Amazon Machine Learning on SlideShare”
Machine Learning - Ditch Explicit Programming
Applications of Machine Learning
- Image by
“Amazon Machine Learning on SlideShare”
Applications of Machine Learning
- Image by
“Amazon Machine Learning on SlideShare”
Applications of Machine Learning
Understanding Data Science
“Facebook asks you to list your hometown and your current location, ostensibly to make it easier for
your friends to find and connect with you. But it also analyzes these locations to identify global
migration patterns and where the fanbases of different football teams live.”
- From the book
“Data Science from Scratch”
Understanding Data Science
Machine Learning
and Data Science
go hand-in-hand.
Getting Started
Getting Started with ML Algorithms
● Regression: It is used to predict continuous variables (for e.g., salary, weight, temperature, etc.). It
is a form of supervised learning since the input is mapped to an output using input-output pairs.
Popular regression algorithms include Linear, eXtreme Gradient Boosting (XGBoost), CatBoost,
LightGBM, Lasso, Decision Tree, Random Forest, and Quantile regression.
● Classification: It is used to categorize data points (for e.g., spam filtering, predicting survival of
people due to a collapsed building, etc.). It is a form of supervised learning.
Popular classification algorithms include Logistic regression (yes, I said what I said), Support Vector
Machines (SVM), Naive Bayes, XGB, and KNN (K Nearest Neighbor) classifier.
Getting Started with ML Algorithms
● Clustering: It involves grouping data points into ‘clusters’ on the basis of their similarity (for e.g.,
grouping customers into clusters on the basis of their consumer behavior). It is a form of
unsupervised learning since the structure from the given input is not already defined. Unsupervised
learning involves finding hidden structures in the data.
Popular clustering algorithm K-Means, Hierarchical, DBSCAN clustering, and Gaussian Mixture
Model (GMM).
● Dimensionality Reduction: As the name suggests, it reduces the number of input dimensions
(variables). It is also used to conceal confidential data (for e.g., banking transactions, etc.). It is a
form of unsupervised learning.
Popular dimensionality reduction algorithms include t-SNE (t-distributed Stochastic Neighbor
Embedding), and PCA (Principal Component Analysis).
- Images by
“SAS Blogs”
Regression Classification
- Images by
“SAS Blogs”
Clustering Dimensionality Reduction
Getting Started with Core Libraries
● NumPy: NumPy (Numerical Python) is used to perform linear algebraic operations (for e.g., matrix
operations). In Numpy, matrices are referred to as ‘arrays’.
● Pandas: Pandas is useful for performing analysis of the data. It can also perform basic visualization
of the data (for e.g., line, scatter, box, bar plots, etc.)
● Matplotlib: The most comprehensive data visualization library Python ever had. Almost any graph
can be plotted using the Matplotlib library. However, the resulting graphs are bland in nature by
default and therefore require additional customization.
● Seaborn: Seaborn is a data visualization library and is one step ahead of Matplotlib. It requires less
code to plot some graphs and produces more visually-appealing graphs.
Getting Started with Core Libraries
● Plotly: The plots produced by Matplotlib and Seaborn are non-interactive, while Plotly yields
interactive plots. The interactivity is done via hovering over the plot.
● Scikit-Learn: Often referred to as the Swiss Army knife of machine learning, Scikit-Learn (sklearn)
can perform a multitude of ML operations on the data, including data scaling, clustering,
dimensionality reduction, and encoding (converting categorical variables into numeric variables).
● Scipy: The go-to library for performing statistical operations on the data (for e.g., calculating the
skewness and kurtosis, performing probability tests, hypothesis testing, etc.).
● OpenCV: OpenCV (opencv-python) is an intuitive library for performing image processing. Pose
estimation, face mask detection, etc. are possible through this library.
Thanks!
Reach me out:
rafey.iqbal16@gmail.com

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to Machine learning with Python
Introduction to Machine learning with PythonIntroduction to Machine learning with Python
Introduction to Machine learning with PythonChariza Pladin
 
Lecture1 introduction to machine learning
Lecture1 introduction to machine learningLecture1 introduction to machine learning
Lecture1 introduction to machine learningUmmeSalmaM1
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural NetworkSaransh Choudhary
 
The fundamentals of Machine Learning
The fundamentals of Machine LearningThe fundamentals of Machine Learning
The fundamentals of Machine LearningHichem Felouat
 
Machine learning Algorithms
Machine learning AlgorithmsMachine learning Algorithms
Machine learning AlgorithmsWalaa Hamdy Assy
 
Machine learning ppt
Machine learning ppt Machine learning ppt
Machine learning ppt Poojamanic
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningRahul Jain
 
PPT on Data Science Using Python
PPT on Data Science Using PythonPPT on Data Science Using Python
PPT on Data Science Using PythonNishantKumar1179
 
PPT4: Frameworks & Libraries of Machine Learning & Deep Learning
PPT4: Frameworks & Libraries of Machine Learning & Deep Learning PPT4: Frameworks & Libraries of Machine Learning & Deep Learning
PPT4: Frameworks & Libraries of Machine Learning & Deep Learning akira-ai
 
Machine learning ppt
Machine learning pptMachine learning ppt
Machine learning pptRajat Sharma
 
introduction to machin learning
introduction to machin learningintroduction to machin learning
introduction to machin learningnilimapatel6
 
Machine learning Presentation
Machine learning PresentationMachine learning Presentation
Machine learning PresentationManish Singh
 
Intro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning PresentationIntro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning PresentationAnkit Gupta
 
Presentation on supervised learning
Presentation on supervised learningPresentation on supervised learning
Presentation on supervised learningTonmoy Bhagawati
 
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckAI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckSlideTeam
 

Was ist angesagt? (20)

Introduction to Machine learning with Python
Introduction to Machine learning with PythonIntroduction to Machine learning with Python
Introduction to Machine learning with Python
 
Lecture1 introduction to machine learning
Lecture1 introduction to machine learningLecture1 introduction to machine learning
Lecture1 introduction to machine learning
 
Naive bayes
Naive bayesNaive bayes
Naive bayes
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural Network
 
Confusion Matrix Explained
Confusion Matrix ExplainedConfusion Matrix Explained
Confusion Matrix Explained
 
The fundamentals of Machine Learning
The fundamentals of Machine LearningThe fundamentals of Machine Learning
The fundamentals of Machine Learning
 
Machine learning Algorithms
Machine learning AlgorithmsMachine learning Algorithms
Machine learning Algorithms
 
Machine learning ppt
Machine learning ppt Machine learning ppt
Machine learning ppt
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
PPT on Data Science Using Python
PPT on Data Science Using PythonPPT on Data Science Using Python
PPT on Data Science Using Python
 
PPT4: Frameworks & Libraries of Machine Learning & Deep Learning
PPT4: Frameworks & Libraries of Machine Learning & Deep Learning PPT4: Frameworks & Libraries of Machine Learning & Deep Learning
PPT4: Frameworks & Libraries of Machine Learning & Deep Learning
 
Machine learning ppt
Machine learning pptMachine learning ppt
Machine learning ppt
 
supervised learning
supervised learningsupervised learning
supervised learning
 
introduction to machin learning
introduction to machin learningintroduction to machin learning
introduction to machin learning
 
Machine learning
Machine learningMachine learning
Machine learning
 
Machine learning Presentation
Machine learning PresentationMachine learning Presentation
Machine learning Presentation
 
Machine learning
Machine learningMachine learning
Machine learning
 
Intro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning PresentationIntro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning Presentation
 
Presentation on supervised learning
Presentation on supervised learningPresentation on supervised learning
Presentation on supervised learning
 
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckAI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
 

Ähnlich wie Python Machine Learning - Getting Started

Lambda Architecture and open source technology stack for real time big data
Lambda Architecture and open source technology stack for real time big dataLambda Architecture and open source technology stack for real time big data
Lambda Architecture and open source technology stack for real time big dataTrieu Nguyen
 
Data science presentation
Data science presentationData science presentation
Data science presentationMSDEVMTL
 
Hacking Predictive Modeling - RoadSec 2018
Hacking Predictive Modeling - RoadSec 2018Hacking Predictive Modeling - RoadSec 2018
Hacking Predictive Modeling - RoadSec 2018HJ van Veen
 
How to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? EdurekaHow to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? EdurekaEdureka!
 
Machine learning a developer's perspective
Machine learning   a developer's perspectiveMachine learning   a developer's perspective
Machine learning a developer's perspectiveRupak Chakraborty
 
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptxInternship - Python - AI ML.pptx
Internship - Python - AI ML.pptxHchethankumar
 
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptxInternship - Python - AI ML.pptx
Internship - Python - AI ML.pptxHchethankumar
 
A Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningA Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningHaptik
 
Artificial Intelligence with Python | Edureka
Artificial Intelligence with Python | EdurekaArtificial Intelligence with Python | Edureka
Artificial Intelligence with Python | EdurekaEdureka!
 
Module 7: Unsupervised Learning
Module 7:  Unsupervised LearningModule 7:  Unsupervised Learning
Module 7: Unsupervised LearningSara Hooker
 
Neural networks with python
Neural networks with pythonNeural networks with python
Neural networks with pythonTom Dierickx
 
Machine Learning and its Applications
Machine Learning and its ApplicationsMachine Learning and its Applications
Machine Learning and its ApplicationsBhuvan Chopra
 
Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci...
Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci...Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci...
Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci....NET Conf UY
 
Machine Learning Basics
Machine Learning BasicsMachine Learning Basics
Machine Learning BasicsSuresh Arora
 
Is Spark the right choice for data analysis ?
Is Spark the right choice for data analysis ?Is Spark the right choice for data analysis ?
Is Spark the right choice for data analysis ?Ahmed Kamal
 

Ähnlich wie Python Machine Learning - Getting Started (20)

ML.pdf
ML.pdfML.pdf
ML.pdf
 
Lambda Architecture and open source technology stack for real time big data
Lambda Architecture and open source technology stack for real time big dataLambda Architecture and open source technology stack for real time big data
Lambda Architecture and open source technology stack for real time big data
 
JavaScript and Artificial Intelligence by Aatman & Sagar - AhmedabadJS
JavaScript and Artificial Intelligence by Aatman & Sagar - AhmedabadJSJavaScript and Artificial Intelligence by Aatman & Sagar - AhmedabadJS
JavaScript and Artificial Intelligence by Aatman & Sagar - AhmedabadJS
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Data science presentation
Data science presentationData science presentation
Data science presentation
 
Hacking Predictive Modeling - RoadSec 2018
Hacking Predictive Modeling - RoadSec 2018Hacking Predictive Modeling - RoadSec 2018
Hacking Predictive Modeling - RoadSec 2018
 
How to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? EdurekaHow to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? Edureka
 
Machine learning a developer's perspective
Machine learning   a developer's perspectiveMachine learning   a developer's perspective
Machine learning a developer's perspective
 
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptxInternship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
 
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptxInternship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
 
Data Science.pptx
Data Science.pptxData Science.pptx
Data Science.pptx
 
A Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningA Friendly Introduction to Machine Learning
A Friendly Introduction to Machine Learning
 
Artificial Intelligence with Python | Edureka
Artificial Intelligence with Python | EdurekaArtificial Intelligence with Python | Edureka
Artificial Intelligence with Python | Edureka
 
Module 7: Unsupervised Learning
Module 7:  Unsupervised LearningModule 7:  Unsupervised Learning
Module 7: Unsupervised Learning
 
Data science
Data scienceData science
Data science
 
Neural networks with python
Neural networks with pythonNeural networks with python
Neural networks with python
 
Machine Learning and its Applications
Machine Learning and its ApplicationsMachine Learning and its Applications
Machine Learning and its Applications
 
Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci...
Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci...Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci...
Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci...
 
Machine Learning Basics
Machine Learning BasicsMachine Learning Basics
Machine Learning Basics
 
Is Spark the right choice for data analysis ?
Is Spark the right choice for data analysis ?Is Spark the right choice for data analysis ?
Is Spark the right choice for data analysis ?
 

Mehr von Rafey Iqbal Rahman

Verbal and Visual Support in Presentations.pdf
Verbal and Visual Support in Presentations.pdfVerbal and Visual Support in Presentations.pdf
Verbal and Visual Support in Presentations.pdfRafey Iqbal Rahman
 
Research Paper Writing 101: Grammatical Imperatives
Research Paper Writing 101: Grammatical ImperativesResearch Paper Writing 101: Grammatical Imperatives
Research Paper Writing 101: Grammatical ImperativesRafey Iqbal Rahman
 
Psychodynamic and Behavioristic Personality Theories
Psychodynamic and Behavioristic Personality TheoriesPsychodynamic and Behavioristic Personality Theories
Psychodynamic and Behavioristic Personality TheoriesRafey Iqbal Rahman
 
The Current State of Digital Privacy
The Current State of Digital PrivacyThe Current State of Digital Privacy
The Current State of Digital PrivacyRafey Iqbal Rahman
 
Handpicked #academicchatter Tweets
Handpicked #academicchatter TweetsHandpicked #academicchatter Tweets
Handpicked #academicchatter TweetsRafey Iqbal Rahman
 
Writing a Research Paper Abstract 101
Writing a Research Paper Abstract 101Writing a Research Paper Abstract 101
Writing a Research Paper Abstract 101Rafey Iqbal Rahman
 
Research Paper Writing 101: Checklist
Research Paper Writing 101: ChecklistResearch Paper Writing 101: Checklist
Research Paper Writing 101: ChecklistRafey Iqbal Rahman
 
Research Paper Writing for Undergrads 101 (2020 Edition)
Research Paper Writing for Undergrads 101 (2020 Edition)Research Paper Writing for Undergrads 101 (2020 Edition)
Research Paper Writing for Undergrads 101 (2020 Edition)Rafey Iqbal Rahman
 
Research Paper Writing 101: Mistakes to Avoid (Part-II)
Research Paper Writing 101: Mistakes to Avoid (Part-II)Research Paper Writing 101: Mistakes to Avoid (Part-II)
Research Paper Writing 101: Mistakes to Avoid (Part-II)Rafey Iqbal Rahman
 
Research Paper Writing 101: Mistakes to Avoid
Research Paper Writing 101: Mistakes to AvoidResearch Paper Writing 101: Mistakes to Avoid
Research Paper Writing 101: Mistakes to AvoidRafey Iqbal Rahman
 
Post-Coronavirus Retail Transformation
Post-Coronavirus Retail TransformationPost-Coronavirus Retail Transformation
Post-Coronavirus Retail TransformationRafey Iqbal Rahman
 
Research Paper Writing for Undergrads 101
Research Paper Writing for Undergrads 101Research Paper Writing for Undergrads 101
Research Paper Writing for Undergrads 101Rafey Iqbal Rahman
 

Mehr von Rafey Iqbal Rahman (14)

Verbal and Visual Support in Presentations.pdf
Verbal and Visual Support in Presentations.pdfVerbal and Visual Support in Presentations.pdf
Verbal and Visual Support in Presentations.pdf
 
Research Paper Writing 101: Grammatical Imperatives
Research Paper Writing 101: Grammatical ImperativesResearch Paper Writing 101: Grammatical Imperatives
Research Paper Writing 101: Grammatical Imperatives
 
Mission Meezan (Bank)
Mission Meezan (Bank)Mission Meezan (Bank)
Mission Meezan (Bank)
 
Process & Chronology
Process & ChronologyProcess & Chronology
Process & Chronology
 
Psychodynamic and Behavioristic Personality Theories
Psychodynamic and Behavioristic Personality TheoriesPsychodynamic and Behavioristic Personality Theories
Psychodynamic and Behavioristic Personality Theories
 
The Current State of Digital Privacy
The Current State of Digital PrivacyThe Current State of Digital Privacy
The Current State of Digital Privacy
 
Handpicked #academicchatter Tweets
Handpicked #academicchatter TweetsHandpicked #academicchatter Tweets
Handpicked #academicchatter Tweets
 
Writing a Research Paper Abstract 101
Writing a Research Paper Abstract 101Writing a Research Paper Abstract 101
Writing a Research Paper Abstract 101
 
Research Paper Writing 101: Checklist
Research Paper Writing 101: ChecklistResearch Paper Writing 101: Checklist
Research Paper Writing 101: Checklist
 
Research Paper Writing for Undergrads 101 (2020 Edition)
Research Paper Writing for Undergrads 101 (2020 Edition)Research Paper Writing for Undergrads 101 (2020 Edition)
Research Paper Writing for Undergrads 101 (2020 Edition)
 
Research Paper Writing 101: Mistakes to Avoid (Part-II)
Research Paper Writing 101: Mistakes to Avoid (Part-II)Research Paper Writing 101: Mistakes to Avoid (Part-II)
Research Paper Writing 101: Mistakes to Avoid (Part-II)
 
Research Paper Writing 101: Mistakes to Avoid
Research Paper Writing 101: Mistakes to AvoidResearch Paper Writing 101: Mistakes to Avoid
Research Paper Writing 101: Mistakes to Avoid
 
Post-Coronavirus Retail Transformation
Post-Coronavirus Retail TransformationPost-Coronavirus Retail Transformation
Post-Coronavirus Retail Transformation
 
Research Paper Writing for Undergrads 101
Research Paper Writing for Undergrads 101Research Paper Writing for Undergrads 101
Research Paper Writing for Undergrads 101
 

Kürzlich hochgeladen

Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 

Kürzlich hochgeladen (20)

Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 

Python Machine Learning - Getting Started

  • 1. Python Machine Learning Getting Started Rafey Iqbal Rahman GitHub: https://github.com/RafeyIqbalRahman LinkedIn: https://linkedin.com/in/rafeyirahman StackShare: https://stackshare.io/rafeyirahman
  • 3. Resource List ● Machine Learning Mastery blog (Highly recommended) https://machinelearningmastery.com/blog/ ● Kaggle Notebooks https://www.kaggle.com/notebooks ● Kaggle Questions & Answers https://www.kaggle.com/questions-and-an swers ● Towards Data Science blog https://towardsdatascience.com/ ● Data Science, Machine Learning, Programming, Artificial Intelligence, and Technology topics of https://medium.com/. ● Analytics Vidhya blog https://www.analyticsvidhya.com/blog-arch ive/ ● Google Colaboratory https://colab.research.google.com
  • 6. Here is what you should NOT do when you start studying machine learning in Python. 1. Get really good at Python programming and Python syntax. 2. Deeply understand the underlying theory and parameters for machine learning algorithms in scikit-learn*. 3. Avoid or lightly touch on all of the other tasks needed to complete a real project. - J. Brownlee in his book “Machine Learning Mastery with Python” * https://scikit-learn.org/stable/ Don’ts of Getting Started
  • 7. But it’s important to know about data structures before getting started.
  • 8. Data Structures in Python - An Overview ● list: sequence of mutable values ● tuple: sequence of immutable values ● dict: collection of key-value pairs
  • 10. “Machine Learning is the interaction between theoretically sound computer science and practically noisy data. Essentially, it’s about machines making sense out of data in much the same way as humans do. Machine learning is a type of artificial intelligence whereby an algorithm or method extracts patterns from data.” - Matthew Kirk in his book “Thoughtful Machine Learning with Python” Machine Learning Definitions
  • 11. “Machine Learning is the interaction between theoretically sound computer science and practically noisy data. Essentially, it’s about machines making sense out of data in much the same way as humans do. Machine learning is a type of artificial intelligence whereby an algorithm or method extracts patterns from data.” - Matthew Kirk in his book “Thoughtful Machine Learning with Python” Machine Learning Definitions
  • 12. “ML is a multi-disciplinary approach, involving several scientific domains (e.g., mathematics, computer science, physics, biology, etc.), that enable computers to automatically learn from data. By learning we mean here a process that takes as input data and gives as output algorithms capable of performing, over the same kind of data, a desired task.” - From the book “Machine Learning for Audio, Image and Video Analysis, 2e” Machine Learning Definitions
  • 13. “You will find it difficult to describe your mother’s face accurately enough for your friend to recognize her in a supermarket. But if you show him a few of her photos, he will immediately spot the tell-tale traits he needs. As they say, a picture- an example -is worth a thousand words. This is what we want our technology to emulate. Unable to define certain objects or concepts with accuracy, we want to convey them to the machine by ways of examples. For this to work, however, the computer has to be able to convert the examples into knowledge. Hence our interest in algorithms and techniques for machine learning …” - From the book “An Introduction to Machine Learning, 2e” Machine Learning Definitions
  • 14. “Machine learning is functionality that helps software perform a task without explicit programming or rules.” - Google Machine Learning Definitions
  • 15. - Image by “Amazon Machine Learning on SlideShare” How Explicit Programming Looks Like?
  • 16. - Image by “Amazon Machine Learning on SlideShare” How Explicit Programming Looks Like?
  • 17. - Image by “Amazon Machine Learning on SlideShare” How Explicit Programming Looks Like?
  • 18. - Image by “Amazon Machine Learning on SlideShare” How Explicit Programming Looks Like?
  • 19. - Image by “Amazon Machine Learning on SlideShare” How Explicit Programming Looks Like?
  • 20. - Image by “Amazon Machine Learning on SlideShare” How Explicit Programming Looks Like?
  • 21. - Image by “Amazon Machine Learning on SlideShare” How Explicit Programming Looks Like?
  • 22. - Image by “Amazon Machine Learning on SlideShare” How Explicit Programming Looks Like?
  • 23. - Image by “Amazon Machine Learning on SlideShare” How Explicit Programming Looks Like?
  • 24. - Image by “Amazon Machine Learning on SlideShare” Machine Learning - Ditch Explicit Programming
  • 26. - Image by “Amazon Machine Learning on SlideShare” Applications of Machine Learning
  • 27. - Image by “Amazon Machine Learning on SlideShare” Applications of Machine Learning
  • 29. “Facebook asks you to list your hometown and your current location, ostensibly to make it easier for your friends to find and connect with you. But it also analyzes these locations to identify global migration patterns and where the fanbases of different football teams live.” - From the book “Data Science from Scratch” Understanding Data Science
  • 30. Machine Learning and Data Science go hand-in-hand.
  • 32. Getting Started with ML Algorithms ● Regression: It is used to predict continuous variables (for e.g., salary, weight, temperature, etc.). It is a form of supervised learning since the input is mapped to an output using input-output pairs. Popular regression algorithms include Linear, eXtreme Gradient Boosting (XGBoost), CatBoost, LightGBM, Lasso, Decision Tree, Random Forest, and Quantile regression. ● Classification: It is used to categorize data points (for e.g., spam filtering, predicting survival of people due to a collapsed building, etc.). It is a form of supervised learning. Popular classification algorithms include Logistic regression (yes, I said what I said), Support Vector Machines (SVM), Naive Bayes, XGB, and KNN (K Nearest Neighbor) classifier.
  • 33. Getting Started with ML Algorithms ● Clustering: It involves grouping data points into ‘clusters’ on the basis of their similarity (for e.g., grouping customers into clusters on the basis of their consumer behavior). It is a form of unsupervised learning since the structure from the given input is not already defined. Unsupervised learning involves finding hidden structures in the data. Popular clustering algorithm K-Means, Hierarchical, DBSCAN clustering, and Gaussian Mixture Model (GMM). ● Dimensionality Reduction: As the name suggests, it reduces the number of input dimensions (variables). It is also used to conceal confidential data (for e.g., banking transactions, etc.). It is a form of unsupervised learning. Popular dimensionality reduction algorithms include t-SNE (t-distributed Stochastic Neighbor Embedding), and PCA (Principal Component Analysis).
  • 34. - Images by “SAS Blogs” Regression Classification
  • 35. - Images by “SAS Blogs” Clustering Dimensionality Reduction
  • 36. Getting Started with Core Libraries ● NumPy: NumPy (Numerical Python) is used to perform linear algebraic operations (for e.g., matrix operations). In Numpy, matrices are referred to as ‘arrays’. ● Pandas: Pandas is useful for performing analysis of the data. It can also perform basic visualization of the data (for e.g., line, scatter, box, bar plots, etc.) ● Matplotlib: The most comprehensive data visualization library Python ever had. Almost any graph can be plotted using the Matplotlib library. However, the resulting graphs are bland in nature by default and therefore require additional customization. ● Seaborn: Seaborn is a data visualization library and is one step ahead of Matplotlib. It requires less code to plot some graphs and produces more visually-appealing graphs.
  • 37. Getting Started with Core Libraries ● Plotly: The plots produced by Matplotlib and Seaborn are non-interactive, while Plotly yields interactive plots. The interactivity is done via hovering over the plot. ● Scikit-Learn: Often referred to as the Swiss Army knife of machine learning, Scikit-Learn (sklearn) can perform a multitude of ML operations on the data, including data scaling, clustering, dimensionality reduction, and encoding (converting categorical variables into numeric variables). ● Scipy: The go-to library for performing statistical operations on the data (for e.g., calculating the skewness and kurtosis, performing probability tests, hypothesis testing, etc.). ● OpenCV: OpenCV (opencv-python) is an intuitive library for performing image processing. Pose estimation, face mask detection, etc. are possible through this library.