Foundation to Machine Learning
Waziri Shebogholo
University of Dodoma
April 10, 2019
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 1 / 20
Truth
Machines don’t learn.
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 2 / 20
Machine Learning
Subfield of computer science that is concerned with
building algorithms, which rely on the collection of
examples of the world problems to become useful.
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 3 / 20
Applications
Text classification
Natural Language Processing
Computer vision tasks, eg. Image recognition, face recognition
Medical diagnosis
Recommendation systems
Games eg. AlphaGo
Speech recognition eg. Siri, Google Home
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 4 / 20
Types of Machine Learning
Machine Learning problems can be:-
1 Supervised Learning
2 Unsupervised Learning
3 Reinforcement Learning
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 5 / 20
Supervised Learning
Terminologies
Example: an object or instance of data used
Dataset: collection of examples
Features: set of attributes, often represented as vector (feature
vector), associated with an object
Labels/Target
1 In classification, category associated with an example
2 In regression, real-valued numbers
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 6 / 20
Supervised Learning
Goal
The goal of Supervised Learning algorithm is to use the dataset to create a
model that takes feature vector as input and output information that
allows to deduce a label for that feature vector.
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 7 / 20
Unsupervised Learning
Unlabeled examples
Goal
The goal of Unsupervised Learning is to create a model that take a feature
vector and either transform it into another vector or a value that can be
used to solve a problem.
Clustering, model return cluster id
Dimensionalty reduction, model return a feature vector that have
fewer features
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 8 / 20
Reinforcement Learning
Think of a machine in a certain environment that is able to perceive the
state of that environment as vector of features. The machine can execute
actions in every state. Different actions brings different rewards and could
also move the machine from one state to another.
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 9 / 20
Goal
The goal of Reinforcement Learning algorithm is to learn a policy.
Policy is a function that takes the feature vector of a state and output an
optimal action to execute in that state.
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 10 / 20
How it works?
Example
Let’s consider a problem in which we want to predict whether a person has
cancer or not.
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 11 / 20
How it works?
1 Let’s frame this as supervised learning problem in which we first start
with gathering data.
2 Data for supervised learning problems is a collection of pairs
inputs, outputs
After having data, we need to choose a Learning algorithm .
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 12 / 20
How it works?
Model
y = wx + b
Goal
The goal of Learning algorithm is to leverage the dataset and find optimal
values of parameters w and b.
How?
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 13 / 20
How it works?
Optimization
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 14 / 20
What you’ll hear the most with regard to a model?
1 Parameters
2 Hyperparameters
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 15 / 20
What you’ll hear the most with regard to a model?
Parameters are variables that define the model learned by the learning
algorithm. They are modified by the learning algorithm based on the
training data. We train models to find these variables.
Hyperparameter is a property of learning algorithm mostly, having a
numerical value. They influence the way the algorithm works.
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 16 / 20
Fundamental Algorithms
1 Linear regression
2 Logistic regression
3 Decision tree
4 Random Forest *
5 Support Vector Machine
6 k-Nearest Neighbors
7 Neural Networks
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 17 / 20
Linear Regression
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 18 / 20
Best practices
Feature Engineering
Learning algorithm selection
Data splitting
Underfitting and overfitting
Regularization
Model performance assesment
Hyperparameter tuning
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 19 / 20
Thank you.
Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 20 / 20

More Related Content

PPTX
Machine Learning
PDF
An introduction to Machine Learning
PPT
Machine Learning
PDF
The 7 steps of Machine Learning
PPTX
Machine learning ppt.
PDF
Machine Learning and its Applications
PPTX
Introduction to Machine Learning
PDF
Machine Learning
Machine Learning
An introduction to Machine Learning
Machine Learning
The 7 steps of Machine Learning
Machine learning ppt.
Machine Learning and its Applications
Introduction to Machine Learning
Machine Learning

What's hot (20)

PPTX
Machine learning seminar presentation
PPTX
Intro/Overview on Machine Learning Presentation
PDF
An Introduction to Supervised Machine Learning and Pattern Classification: Th...
PPTX
Machine learning
PDF
Machine learning
PPTX
A Gentle Introduction to AI, ML and DL
PDF
Practical Applications of Machine Learning in Cybersecurity
PPT
Machine Learning presentation.
PDF
Large Language Models Bootcamp
PPTX
Machine Learning
PDF
Machine Learning: Applications, Process and Techniques
PDF
Artificial Intelligence Machine Learning Deep Learning Ppt Powerpoint Present...
PPTX
Machine learning ppt
PDF
Presentation - Msc Thesis - Machine Learning Techniques for Short-Term Electr...
PPTX
Machine learning
PDF
Introduction to Data Science
PPTX
Machine learning seminar ppt
PDF
Introduction of Deep Learning
PPTX
Introduction to data science
PDF
Artificial Intelligence PowerPoint Presentation Slides
Machine learning seminar presentation
Intro/Overview on Machine Learning Presentation
An Introduction to Supervised Machine Learning and Pattern Classification: Th...
Machine learning
Machine learning
A Gentle Introduction to AI, ML and DL
Practical Applications of Machine Learning in Cybersecurity
Machine Learning presentation.
Large Language Models Bootcamp
Machine Learning
Machine Learning: Applications, Process and Techniques
Artificial Intelligence Machine Learning Deep Learning Ppt Powerpoint Present...
Machine learning ppt
Presentation - Msc Thesis - Machine Learning Techniques for Short-Term Electr...
Machine learning
Introduction to Data Science
Machine learning seminar ppt
Introduction of Deep Learning
Introduction to data science
Artificial Intelligence PowerPoint Presentation Slides
Ad

Similar to Foundation of Machine Learning (20)

PDF
Introduction to machine learning
PPTX
Machine learning
PDF
Le Machine Learning de A à Z
PDF
Fundementals of Machine Learning and Deep Learning
DOCX
Introduction to Machine Learning for btech 7th sem
PDF
27332020002_PC-CS601_Robotics_Debjit Doira.pdf
PPTX
Applied Artificial Intelligence Unit 3 Semester 3 MSc IT Part 2 Mumbai Univer...
PDF
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
PPTX
Introduction to Machine Learning Part1.pptx
PDF
1.1 Machine Learning Introduction (session 1).pdf
PPTX
machine learning
PPTX
Introduction to Machine Learning.pptx
PPTX
ECT463 Machine Learning Module 1 KTU 2019 Scheme.pptx
PPTX
Machine Learning.pptx
PPTX
ML PPT-1.pptx
PDF
Intro to AI - GDG on Campus European Universities in Egypt
PDF
Week 1.pdf
PPTX
MACHINE LEARNING PPT.pptx for the machine learning studnets
PDF
Mlmlmlmlmlmlmlmlmlmlmlmlmlmlmlml.lmlmlmlmlm
PPTX
Machine Learning and its Applications
Introduction to machine learning
Machine learning
Le Machine Learning de A à Z
Fundementals of Machine Learning and Deep Learning
Introduction to Machine Learning for btech 7th sem
27332020002_PC-CS601_Robotics_Debjit Doira.pdf
Applied Artificial Intelligence Unit 3 Semester 3 MSc IT Part 2 Mumbai Univer...
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
Introduction to Machine Learning Part1.pptx
1.1 Machine Learning Introduction (session 1).pdf
machine learning
Introduction to Machine Learning.pptx
ECT463 Machine Learning Module 1 KTU 2019 Scheme.pptx
Machine Learning.pptx
ML PPT-1.pptx
Intro to AI - GDG on Campus European Universities in Egypt
Week 1.pdf
MACHINE LEARNING PPT.pptx for the machine learning studnets
Mlmlmlmlmlmlmlmlmlmlmlmlmlmlmlml.lmlmlmlmlm
Machine Learning and its Applications
Ad

Recently uploaded (20)

PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
Configure Apache Mutual Authentication
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PPTX
Modernising the Digital Integration Hub
PPTX
The various Industrial Revolutions .pptx
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
Flame analysis and combustion estimation using large language and vision assi...
PPT
Geologic Time for studying geology for geologist
PDF
Architecture types and enterprise applications.pdf
PDF
Consumable AI The What, Why & How for Small Teams.pdf
Developing a website for English-speaking practice to English as a foreign la...
Configure Apache Mutual Authentication
A proposed approach for plagiarism detection in Myanmar Unicode text
Improvisation in detection of pomegranate leaf disease using transfer learni...
Modernising the Digital Integration Hub
The various Industrial Revolutions .pptx
UiPath Agentic Automation session 1: RPA to Agents
Getting started with AI Agents and Multi-Agent Systems
Microsoft Excel 365/2024 Beginner's training
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
A review of recent deep learning applications in wood surface defect identifi...
Convolutional neural network based encoder-decoder for efficient real-time ob...
Enhancing plagiarism detection using data pre-processing and machine learning...
Module 1.ppt Iot fundamentals and Architecture
A contest of sentiment analysis: k-nearest neighbor versus neural network
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Flame analysis and combustion estimation using large language and vision assi...
Geologic Time for studying geology for geologist
Architecture types and enterprise applications.pdf
Consumable AI The What, Why & How for Small Teams.pdf

Foundation of Machine Learning

  • 1. Foundation to Machine Learning Waziri Shebogholo University of Dodoma April 10, 2019 Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 1 / 20
  • 2. Truth Machines don’t learn. Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 2 / 20
  • 3. Machine Learning Subfield of computer science that is concerned with building algorithms, which rely on the collection of examples of the world problems to become useful. Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 3 / 20
  • 4. Applications Text classification Natural Language Processing Computer vision tasks, eg. Image recognition, face recognition Medical diagnosis Recommendation systems Games eg. AlphaGo Speech recognition eg. Siri, Google Home Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 4 / 20
  • 5. Types of Machine Learning Machine Learning problems can be:- 1 Supervised Learning 2 Unsupervised Learning 3 Reinforcement Learning Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 5 / 20
  • 6. Supervised Learning Terminologies Example: an object or instance of data used Dataset: collection of examples Features: set of attributes, often represented as vector (feature vector), associated with an object Labels/Target 1 In classification, category associated with an example 2 In regression, real-valued numbers Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 6 / 20
  • 7. Supervised Learning Goal The goal of Supervised Learning algorithm is to use the dataset to create a model that takes feature vector as input and output information that allows to deduce a label for that feature vector. Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 7 / 20
  • 8. Unsupervised Learning Unlabeled examples Goal The goal of Unsupervised Learning is to create a model that take a feature vector and either transform it into another vector or a value that can be used to solve a problem. Clustering, model return cluster id Dimensionalty reduction, model return a feature vector that have fewer features Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 8 / 20
  • 9. Reinforcement Learning Think of a machine in a certain environment that is able to perceive the state of that environment as vector of features. The machine can execute actions in every state. Different actions brings different rewards and could also move the machine from one state to another. Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 9 / 20
  • 10. Goal The goal of Reinforcement Learning algorithm is to learn a policy. Policy is a function that takes the feature vector of a state and output an optimal action to execute in that state. Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 10 / 20
  • 11. How it works? Example Let’s consider a problem in which we want to predict whether a person has cancer or not. Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 11 / 20
  • 12. How it works? 1 Let’s frame this as supervised learning problem in which we first start with gathering data. 2 Data for supervised learning problems is a collection of pairs inputs, outputs After having data, we need to choose a Learning algorithm . Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 12 / 20
  • 13. How it works? Model y = wx + b Goal The goal of Learning algorithm is to leverage the dataset and find optimal values of parameters w and b. How? Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 13 / 20
  • 14. How it works? Optimization Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 14 / 20
  • 15. What you’ll hear the most with regard to a model? 1 Parameters 2 Hyperparameters Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 15 / 20
  • 16. What you’ll hear the most with regard to a model? Parameters are variables that define the model learned by the learning algorithm. They are modified by the learning algorithm based on the training data. We train models to find these variables. Hyperparameter is a property of learning algorithm mostly, having a numerical value. They influence the way the algorithm works. Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 16 / 20
  • 17. Fundamental Algorithms 1 Linear regression 2 Logistic regression 3 Decision tree 4 Random Forest * 5 Support Vector Machine 6 k-Nearest Neighbors 7 Neural Networks Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 17 / 20
  • 18. Linear Regression Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 18 / 20
  • 19. Best practices Feature Engineering Learning algorithm selection Data splitting Underfitting and overfitting Regularization Model performance assesment Hyperparameter tuning Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 19 / 20
  • 20. Thank you. Waziri Shebogholo (University of Dodoma) Foundation to Machine Learning April 10, 2019 20 / 20