4 Ai ML - 2
4 Ai ML - 2
Machine Learning - 2
What is Learning?
• “Learning is making useful changes in our
minds” – Marvin Minsky
• “Learning is constructing or modifying
representations of what is being
experienced“ – Ryszard Michalski
• “Learning denotes changes in a system that
... enable a system to do the same task more
efficiently the next time” – Herbert Simon
CSCI363 2018 4
Machine Learning
• Machine learning is a subset of AI that learns
to make decisions by fitting mathematical
models to observed data.
Machine Learning?
• Getting computers to program themselves
• Traditional Programming
ML
Data Generated
Output
Program
Types of Learning
• Supervised learning
– Training data includes desired outputs
• Unsupervised learning
– Training data does not include desired outputs
• Reinforcement learning
– Rewards from sequence of actions
Examples of supervised learning
methods
• Supervised
– K Nearest Neighbors (KNN)
– Neural networks
– Bayesian learning
– Decision tree induction
– Support vector machines
– Model ensembles
Examples of unsupervised learning
methods
• Unsupervised
– Clustering such as
a. K-Means,
b. DBScan,
c. Hierarchical clustering
– Dimensionality reduction such as
a. Principal Component Analysis (PCA),
b. Singular Value Decomposition (SVD)
c. Linear Discriminant Analysis (LDA)
Reinforcement learning
• Learn by interacting with a space or an
environment
Reinforcement learning
• A set of states
• A set of actions
• A set of rewards
Clustering
(Unsupervised Classification)
Unsupervised learning
• Unsupervised learning
– machine learning algorithm
– used to draw inferences from datasets without labeled
responses.
• Used for exploratory data analysis to find
– hidden patterns or
– grouping in data.
• The clusters are modeled using a measure of
similarity
– which is defined upon metrics such as Euclidean or
probabilistic distance.
Supervised vs. Unsupervised learning
Supervised Unsupervised
of an artificial neuron.
Deep learning
• Deep learning is a subset
of machine learning that uses
multilayered neural networks
(ranging from three to several
hundred or thousands), called
deep neural networks.
• Deep learning requires a large
amount of data to train and
are computationally intensive.
However, they can achieve
higher accuracy and perform
better than shallow networks
for complex tasks.
References
• https://www.ibm.com/topics/deep-learning
• https://en.wikipedia.org/wiki/Deep_learning
• https://h2o.ai/wiki/neural-network-
architectures/#:~:text=Standard%20neural%2
0networks&text=Feed%2DForward%20Netwo
rks%20%2D%20A%20multi,way%20to%20the
%20output%20layer.
• https://udlbook.github.io/udlbook/
• CIS 313, AI course in Jouf University
Review Questions
• What is machine learning?
• What are the 3 types of ML? Discuss them.
• List 2 examples of supervised and 2 examples of
unsupervised learning methods.
نص
• What is reinforcement learning? Write the three sets of
RL?
• What is the x and f(x) for face recognition problem?
• Give two differences between supervised and
unsupervised learning?
• Discuss deep learning.
MCQ
1. What is one of the differences between
machine learning and deep learning?
(a) Data type (b) Use of AI
(c) Complexity of problem solving (d) Algorithm use