0% found this document useful (0 votes)
16 views

ML-session 01-Introduction to Machine Learning

Subset of AI
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

ML-session 01-Introduction to Machine Learning

Subset of AI
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Course Title: Machine Learning

Course Code: DSU07320

Lecturer: Eliah kazumali


Email: [email protected]
Eastern Africa Statistical Training Centre

10/25/2024 MACHINE LEARNING-DSU07320 1


Learning Resources:
1. Geron, A. (2017). Hands-On Machine Learning with
Scikit-Learn & Tensorflow O’Reilly Media, Inc.
O’Reilly Media, Inc, 1005, 564.
2. Russell, R. (2020). Machine Learning: Step-by-Step
Guide To Implement Machine Learning Algorithms
with Python. (Knxb)
3. Marsland, S. (2011). Machine learning: an algorithmic
perspective. Chapman and Hall/CRC.

10/25/2024 MACHINE LEARNING-DSU07320 2


Method of Assessment:
▪ Test 10%
▪ Assignment 10%
▪ Practicals 20%
▪ S/Exam (Practical +theory) 60%

10/25/2024 MACHINE LEARNING-DSU07320 3


Introduction to Machine
Learning
What is Machine Learning?

❖ Machine Learning is the field of study


that gives computers the ability to learn
without being explicitly programmed.

❖ Just like human being, ML enables


computers learn how to do a given task
without being programmed to do so.
10/25/2024 MACHINE LEARNING-DSU07320 4
❖ Machine learning is a subset of AI that
deals with the development of
algorithms and models that enable
computers to learn from data and
make predictions or decisions without
being explicitly programmed.

❖ ML focuses on learning from data


10/25/2024 MACHINE LEARNING-DSU07320 5
❖ Say you need the computer that can
tell the difference between picture of a
dog and a picture of a cat, you could
begin by feeding its images and telling
it this is a dog and that is a cat.

10/25/2024 MACHINE LEARNING-DSU07320 6


Examples of Machine Learning Programs

▪ Spam filter (Detect unsolicited, unwanted


and virus-infected emails and prevent
those messages from getting to a user's
inbox)

10/25/2024 MACHINE LEARNING-DSU07320 7


▪ Image recognition
(like plate number recognition, facial
recognition!)
▪ Text to speech/speech to text

10/25/2024 MACHINE LEARNING-DSU07320 8


▪ Google search (results based on your
personal interests)
▪ Viewing recommendations/
recommending next video to watch

▪ Find ONE more ML program

10/25/2024 MACHINE LEARNING-DSU07320 9


Why Use Machine Learning?
Consider how you would write a spam filter
using traditional programming techniques
1. First you would look at what spam typically
looks like. You might notice that some words
or phrases (such as “4U,” “credit card,”
“free,” and “amazing”) tend to come up a
lot in the subject.

10/25/2024 MACHINE LEARNING-DSU07320 10


2. You would write a detection algorithm for
each of the patterns that you noticed, and
your program would flag emails as spam if a
number of these patterns are detected.
3. You would test your program, and repeat
steps 1 and 2 until it is good enough.

10/25/2024 MACHINE LEARNING-DSU07320 11


The traditional approach

10/25/2024 MACHINE LEARNING-DSU07320 12


Machine Learning approach
❖In contrast, a spam
filter based on
Machine Learning
techniques
automatically learns
which words and
phrases are good
predictors of spam by
detecting unusually
frequent patterns of
words in the spam
examples compared
to the ham examples
10/25/2024 MACHINE LEARNING-DSU07320 13
ML approach offers;
❖ Shorter program ( the traditional
requires many long lists of rules)
❖ Easier maintenance of the program,
❖ More accurate
❖ Flexible

10/25/2024 MACHINE LEARNING-DSU07320 14


Flexibility in ML
❖ Example, if spammers notice that all their emails
containing “4U” are blocked, they might start writing “For
U” instead. A spam filter using traditional programming
techniques would need to be updated to flag “For U”
emails. If spammers keep working around your spam filter,
you will need to keep writing new rules forever.

❖ In contrast, a spam filter based on ML techniques


automatically notices that “For U” has become unusually
frequent in spam flagged by users, and it starts flagging
them without your intervention.
10/25/2024 MACHINE LEARNING-DSU07320 15
When should you use machine learning?

❖ When you have a problem that requires many


long lists of rules to find the solution.
❖ Very complex problems (or have no known
algorithm) for which there is no solution with a
traditional approach.
❖ Non-stable environments’: machine-learning
software can adapt to new data.

10/25/2024 MACHINE LEARNING-DSU07320 16


Assignment 1
ML is one of AI subset. Briefly explain
another subset of AI and highlight how
it differs from ML."

(Submission next session

10/25/2024 MACHINE LEARNING-DSU07320 17

You might also like