Lecture 4.1 Machine Learning Deep Learning Reinforcement Learning
Lecture 4.1 Machine Learning Deep Learning Reinforcement Learning
• Identify possible applications of Natural Language Processing in the Kenyan local context
• Explain how robotics and computer vision can be used in different application contexts
Page 1
Module Outline
Four core topics will be covered in the module:
Machine Learning,
Deep Learning &
Natural Language
Reinforcement Computer Vision Robotics
Processing
Learning
Module Session
Machine Learning,
Deep Learning &
Natural Language
Reinforcement Computer Vision Robotics
Processing
Learning
Learning Objectives for Session
• Describe and differentiate machine learning paradigms
• Appreciate the need for quality data for building machine learning models
Page 4
Machine Learning, Deep Learning & Reinforcement
Learning
• Course Outline
• Machine Learning overview
• Supervised
• Unsupervised
• Reinforcement
• Deep learning
• Data for Machine Learning
• Quiz
Page 5
Titel of the presentation
Machine Learning
1. In basic terms, ML is the process of training a
piece of software, called a model, to make
useful predictions using a data set.
2. This predictive model can then serve up
predictions about previously unseen data.
We use these predictions to take action in a
product; for example, the system predicts
that a user will like a certain video, so the
system recommends that video to the user.
3. Often, people talk about ML as having three
broadly speaking paradigms, supervised and
unsupervised learning, Reinforcement.
References:
Image source: https://www.potentiaco.com/what-is-machine-learning-definition-types-applications-and-examples/
https://online.atingi.org/course/view.php?id=1107
Supervised learning is a type of ML where the model is provided with labeled training data.
Supervised learning can be separated into two types of problems —classification and regression:
• Classification uses an algorithm to accurately assign test data into specific categories. It recognizes specific entities within the
dataset and attempts to draw some conclusions on how those entities should be labeled or defined.
• Regression is used to understand the relationship between dependent and independent variables. It is commonly used to make
projections, such as for sales revenue for a given business.
References:
https://online.atingi.org/course/view.php?id=1107
https://www.ibm.com/topics/supervised-learning
References:
https://online.atingi.org/course/view.php?id=1107
Leaf width and leaf length are the features (which is why the
graph is next slide labels both of these dimensions as X), while
the species is the label.
A real life botanical data set would probably contain far more
features (including descriptions of flowers, blooming times,
arrangement of leaves) but still have only one label.
Features are measurements or descriptions; the label is
essentially the "answer." For example, the goal of the data set is
to help other botanists answer the question, "Which species is
this plant?“ Therefore this dataset “labelled” because the
answer is already given.
This data set consists of only four examples. A real life data set
would likely contain vastly more examples.
References:
https://online.atingi.org/course/view.php?id=1107
References:
https://online.atingi.org/course/view.php?id=1107
References:
https://online.atingi.org/course/view.php?id=1107
Image source: https://medium.com/@metehankozan/supervised-and-unsupervised-learning-an-intuitive-approach-cd8f8f64b644
References:
https://online.atingi.org/course/view.php?id=1107
Image source: https://ivypanda.com/essays/business-statistics/
Image source: https://www.expressanalytics.com/blog/social-media-sentiment-analysis/
References:
https://online.atingi.org/course/view.php?id=1107
References:
https://online.atingi.org/course/view.php?id=1107
References:
https://online.atingi.org/course/view.php?id=1107 While clustering is very common, it is NOT the only type of unsupervised learning
Check here to view a blog post by Aneek Das on The very basics of Reinforcement Learning
References:
https://online.atingi.org/course/view.php?id=1107
https://becominghuman.ai/the-very-basics-of-reinforcement-learning-154f28a79071
References:
https://online.atingi.org/course/view.php?id=1107
https://towardsdatascience.com/types-of-machine-learning-algorithms-you-should-know-953a08248861
Image source: https://becominghuman.ai/the-very-basics-of-reinforcement-learning-154f28a79071
References:
https://towardsdatascience.com/types-of-machine-learning-algorithms-you-should-know-953a08248861
Image source: https://www.deepmind.com/research/highlighted-research/alphago
Image source: https://www.therobotreport.com/reinforcement-learning-industrial-robotics/
Image source: https://www.researchgate.net/figure/Deep-reinforcement-learning-DRL-for-self-driving-cars_fig1_346369704
The term ‘deep learning’ is coined because the neural networks have various layers that
enable
learning, unlearning, and relearning. The network is said to be deeper based on the
number of layers it has.
1. ANN comprising many layers, drive deep learning. Deep Neural Networks (DNNs) are
such types of networks where each layer can perform complex operations such as
representation and abstraction that make sense of images, sound, and text.
2. A single neuron in the human brain receives thousands of signals from other neurons.
In an artificial neural network, signals travel between nodes and assign corresponding
weights. A heavier weighted node will exert more effect on the next layer of nodes.
4. Deep learning systems require powerful hardware because they have a large amount of
data being processed and involves several complex mathematical calculations. Even
with such advanced hardware, however, training a neural network can take weeks.
References:
https://www.simplilearn.com/tutorials/deep-learning-tutorial/what-is-deep-learning
1. Image Recognition: Deep learning is beneficial for computer vision applications, as discussed previously. Google,
Facebook, IBM, and others have successfully used deep learning to train computers to recognize human faces and
identify the contents of images.
2. Speech Processing: Deep learning recognizes human speech, converts text into addresses, and processes natural
language. As a result, chatbots and voice assistants such as Siri and Cortana can carry on conversations with users based
on their context.
3. Translation: After a deep learning system has been trained to understand one language, the next logical step is to teach
it to understand multiple languages and translate between them. Several vendors offer APIs with deep learning-based
translation capabilities.
4. Recommendation Engines: Users have grown accustomed to websites like Amazon and services like Netflix offering
recommendations based on their past usage. A lot of these recommendation engines are powered by deep learning.
This allows them to improve over time and find hidden correlations in preferences that humans might miss.
5. Medicine: Deep learning also has many potential uses in the medical field. It could, for instance, perform better than
human radiologists at reading scans and power diagnostic engines that could augment human physicians.
References:
https://h2o.ai/wiki/deep-learning-use-cases/
https://www.knowledgehut.com/blog/data-science/deep-learning-applications
As machine learning models grow in number and size, they will require more training data.
Unfortunately, obtaining training data and labeling still requires considerable manual
effort and is largely application specific.
ML teams can start with prelabeled datasets, but they will eventually need to collect and
label their own custom data to scale their efforts. Depending on the application, labeling
can become extremely expensive and labor-intensive.
In many cases, companies have enough data, but they can’t deal with quality issues.
Biased, mislabeled, inconsistent or incomplete data reduces the quality of ML models,
which in turn harms the ROI of AI initiatives.
If you train ML models with bad data, model predictions will be inaccurate.
References:
https://venturebeat.com/ai/why-data-remains-the-greatest-challenge-for-machine-learning-projects/
• ML is the process of training a piece of software, called a model, to make useful predictions
using a data set.
• There are three basic types of machine learning algorithms including supervised, unsupervised
and reinforcement learning algorithms.
• Supervised learning is a type of ML where the model is provided with labeled training data.
Supervised learning can be separated into two types of problems: classification and regression
• In unsupervised learning, the goal is to identify meaningful patterns in the data and the
machine learns from unlabeled data set.
• Reinforcement learning (RL) differs from other types of machine learning. During training, the
agent receives a reward when it performs this task, which is called a reward function.
• Deep Learning is a computer software that mimics the network of neurons in a brain. It is a
subset of machine learning.
• Quality data is at the heart of the success of enterprise AI. If you train ML models with bad data,
model predictions will be inaccurate
9/25/2023 31
Additional Reading