Machine Learning 3
Machine Learning 3
1
Instructor
• Iftikhar Ahmad
• Research Interests
• Machine Learning
• Explainable AI
• Social Network Analysis
• Email
• [email protected]
2
Motivation
3
How much a Data Scientist earns?
Source : Glassdoor
4
What is Data • No unique / agreed upon definition.
5
What is Data Data science is the study of the generalizable
extraction of knowledge from data (Dhar,
Science? 2013)
6
Data science is the application of
What is Data computational and statistical techniques to
Science? address or gain insight into some problem in
the real world. (Kolter, 2019)
7
Data science is an inter-disciplinary field that
What is Data uses scientific methods, processes,
algorithms and systems to extract knowledge
Science? and insights from structured and
unstructured data (Wikipedia)
8
What is Data
Science?
9
What is Machine Learning?
10
What is Machine Learning? (I)
• No single well-defined definition.
11
Arthur Samuel (1959)
12
Tom Mitchell (1999)
"A computer program is said to learn from
experience E with respect to some class of tasks
T and performance measure P, if its
performance at tasks in T, as measured by P,
improves with experience E.”
13
What is Machine Learning? (II)
• Tom Mitchell (1999)
• The checkers example,
• E = 10,000s games
• T is playing checkers
• P if you win or not
14
What is Machine Learning? (II)
• Tom Mitchell (1999)
• The checkers example,
• E = 10,000s games
• T is playing checkers
• P if you win or not
15
What is Machine Learning? (III)
• Machine learning is programming computers to optimize a
performance criterion using example data or past experience.
• There is no need to “learn” to calculate payroll
• Learning is used when:
• Human expertise does not exist (navigating on Mars),
• Humans are unable to explain their expertise (speech recognition)
• Solution changes in time (routing on a computer network)
• Solution needs to be adapted to particular cases (user biometrics)
16
What is Machine Learning? (IV)
• Learning general models from a data of particular examples
• Data is cheap and abundant (data warehouses, data marts);
knowledge is expensive and scarce.
• Example in retail: Customer transactions to consumer behavior:
• People who bought “Da Vinci Code” also bought “The Five People You
Meet in Heaven” (www.amazon.com)
17
What is Machine Learning? (V)
• Learning general models from a data of particular examples
• Data is cheap and abundant (data warehouses, data marts);
knowledge is expensive and scarce.
• Example in retail: Customer transactions to consumer behavior:
• People who bought “Da Vinci Code” also bought “The Five People You
Meet in Heaven” (www.amazon.com)
18
What is Machine Learning? (VI)
• Machine Learning
• Study of algorithms that
• improve their performance
• at some task
• with experience
• Optimize a performance criterion using example data or past
experience
• Role of Statistics : Inference from a sample
• Role of Computer Science: Efficient algorithms to
• Solve the optimization problem
• Representing and evaluating the model for inference
19
Types of Machine Learning Algorithms
• Several types of learning algorithms
• Supervised Learning
• Teach the computer how to do something, then let it use its newfound
knowledge to do it.
• Unsupervised Learning
• Let the computer learn how to do something, and use this to determine
structure and patterns in data
• Others
• Reinforcement Learning
• Generative AI
20
Analyze & Analyze and interpret data using an appropriate data
Interpret science approach
21
Data Science Methodology
Python
22
Grading Policy TBD
23
www.python.org/downloads/
Python 3
Software
www. jupyter.org/install
Jupyter Notebook
24
25
Installation
• Python
• Jupyter Notebook
26
Installation - Python
• Visit
https://www.python.org/downloads/
• Download a stable (no pre-release)
version for your platform (Win, Mac,
Linux)
• Follow the on-screen instructions
(see next slide)
27
Python Installation Steps
2
• Go to command line
• Windows + R
• Type “cmd”
• Type the following command to install
jupyterlab
• pip install jupyterlab
• After successful installation type the
following command
• jupyter lab
• If everything goes well, you should see a
screen as shown in the right panel
• Other installation option
• Conda
• https://docs.conda.io/en/latest/
Installation – Easy Way
• Google Colab
• Requires a Google account
• https://colab.research.google.com/
• Works online only
• Notebooks can be downloaded/uploaded