SlideShare a Scribd company logo
Introduction to Machine Learning
Machine learning algorithms learn from data to improve performance.
Instead of explicit programming, ML identifies patterns autonomously. It's
used in spam filtering, recommendation systems, and medical diagnoses.
The core idea is to 'learn from experience.'
Eng. Anas Khodayf
What is Machine Learning?
Definition
Machine learning is all about
training the computer with lots
and lots of data to make it do
intelligent tasks
Key Components
Data, algorithms, models, and
evaluation metrics are crucial.
Types of ML
Supervised, unsupervised, and reinforcement learning approaches.
The Machine Learning Process
Data Collection
Gather relevant data from diverse sources.
Data Preprocessing
Clean, transform, and format raw data.
Model Selection
Choose appropriate algorithms for the task.
Training
Fit the model to the preprocessed data.
ML Algorithm Overview
Supervised Learning
Use labeled data for training models.
Includes regression and classification.
Unsupervised Learning
Leverage unlabeled data for pattern
discovery. Includes clustering and
dimensionality reduction.
Reinforcement Learning
Learn through trial and error in
dynamic environments.
Supervised Learning
Supervised learning involves training models with labeled data. The goal is
to predict outputs for new, unseen inputs. Spam detection and image
classification are examples of supervised learning. Training data informs a
model to map inputs to outputs.
Labeled Data
Input-output pairs used for
training.
Prediction
Predicting outputs for new data
points.
Model Training
Mapping inputs to outputs using the data.
Classification vs. Regression
Classification
• Predicts categories (discrete output)
• Examples: Spam detection, image labeling
• Algorithms: Logistic Regression, SVM, Decision Trees
• Metrics: Accuracy, Precision, Recall, F1-score
Regression
• Predicts continuous values
• Examples: House prices, temperature forecasting
• Algorithms: Linear Regression, SVR, Random Forest Regression
• Metrics: MSE, RMSE, MAE, R-squared
Linear Regression
Linear regression predicts a continuous output variable. It uses one or more
input variables. The equation is Y = b0 + b1*X1 + b2*X2 + ... + bn*Xn. A
practical example is predicting house prices based on square footage, using
national average of $250/sq ft. Evaluation metrics are MSE and R-squared
(target > 0.7).
Continuous Output
Predicts a continuous
variable based on inputs.
House Prices
Example using square
footage to predict price.
Evaluation
Metrics include MSE and R-squared.
Logistic Regression
Logistic regression predicts a binary outcome. It outputs probabilities using a sigmoid function (threshold 0.5). Predicting customer
churn is a use case, based on demographics and usage. Accuracy, Precision, Recall, and F1-score are the main evaluation metrics
(target > 0.8).
Binary Outcome Sigmoid Function Customer Churn
K-Nearest Neighbors (KNN)
KNN classifies a new data point. It uses the majority class of its k nearest neighbors. Small K is sensitive to noise, large K is expensive.
Support Vector Machines (SVM)
SVM finds the optimal hyperplane. It separates data points into different
classes. The kernel trick maps data into higher dimensions. Image
classification (cats and dogs) is a use case. SVM is effective in high
dimensional spaces.
Optimal Hyperplane Kernel Trick Image Classification
Decision Trees
Decision Trees use a tree-like structure. Each node represents a feature. Each branch represents a decision. They are easy to
interpret and visualize.
Random Forests
Random Forests combine multiple decision trees. This ensemble learning method reduces overfitting. It also improves
accuracy. Important parameters are the number of trees and max depth.
Unsupervised Learning:
Unsupervised learning: find hidden patterns in unlabeled data
Unsupervised Learning: Clustering Algorithms
K-Means Clustering
• Partitions data into k clusters
• Example: Customer segmentation
• Simple, scalable algorithm
Hierarchical Clustering
• Builds tree of clusters
• Example: Grouping documents
• Detailed cluster relationships
Metrics: Silhouette score, Davies-Bouldin index
Reinforcement Learning: Key Concepts
Agent
Decision maker
Environment
Interacts with agent
State
Current situation
Action
Agent's choice
Reward
Feedback signal
Policy
Strategy for actions
Eng : Anas Khodayf
anaskhodayf@gmail.com
Summary
Machine learning empowers systems to learn from data. Supervised learning leverages labeled data for
predictive models. Regression handles continuous outcomes, while classification addresses categorical ones.
Unsupervised Learning, Discover patterns, no labels needed.
Reinforcement Learning Learn actions from feedback.
Choose the algorithm that best suits your data and problem.

More Related Content

PPT
Machine-Learning-Algorithms- A Overview.ppt
Anusha10399
 
PPT
Machine-Learning-Algorithms- A Overview.ppt
Prabu P
 
PPTX
Introduction to Machine Learning Concepts
RyujiChanneru
 
PDF
Choosing a Machine Learning technique to solve your need
GibDevs
 
PDF
Introduction MAchine Learning . Machine Learning is trendy concept
KiranMittal7
 
PPTX
Machine Learning course in Chandigarh Join
asmeerana605
 
PPTX
Foundations-of-Machine-Learning_in Engineering.pptx
pagolholi
 
PPTX
Introduction-to-Machine-Learning.pptx this a file of ml algo
Sumit730034
 
Machine-Learning-Algorithms- A Overview.ppt
Anusha10399
 
Machine-Learning-Algorithms- A Overview.ppt
Prabu P
 
Introduction to Machine Learning Concepts
RyujiChanneru
 
Choosing a Machine Learning technique to solve your need
GibDevs
 
Introduction MAchine Learning . Machine Learning is trendy concept
KiranMittal7
 
Machine Learning course in Chandigarh Join
asmeerana605
 
Foundations-of-Machine-Learning_in Engineering.pptx
pagolholi
 
Introduction-to-Machine-Learning.pptx this a file of ml algo
Sumit730034
 

Similar to ML howtodo.pptx. Get learning how to do a (20)

PDF
Machine learning
Dr Geetha Mohan
 
PDF
Machine learning it is time...
Sandip Chatterjee
 
PDF
Intro to Machine Learning by Microsoft Ventures
microsoftventures
 
PDF
Overview of machine learning
SolivarLabs
 
PPTX
machine learning
soundaryasarya
 
PDF
Computational decision making
Boris Adryan
 
PPTX
PowerPoint presentation on Introduction to Machine Learning
rachid89aziz
 
PPTX
Machine Learning: Transforming Data into Insights
pemac73062
 
PPT
Machine Learning and its Appplications--
sudarmani rajagopal
 
PPTX
introduction to machine learning .pptx
SulemanKtk2
 
PPTX
IMPLEMENTATION OF MACHINE LEARNING IN E-COMMERCE & BEYOND
Rabi Das
 
PDF
machine_learning_section1_ebook.pdf
agfi
 
PPTX
AI-900 - Fundamental Principles of ML.pptx
kprasad8
 
PPTX
An-Overview-of-Machine-Learning.pptx
someyamohsen3
 
PDF
Introduction to Data Science
Christy Abraham Joy
 
PPTX
Machine learning
Sandeep Singh
 
PPTX
Machine Learning Basics
Suresh Arora
 
PPTX
578_Machine _learning @_presentationnn_12
susmithalanka2
 
PDF
Introduction to Machine Learning
SATHVIK MANIKANTAN N U
 
PPTX
demo lecture for foundation class for btech
ROHIT738213
 
Machine learning
Dr Geetha Mohan
 
Machine learning it is time...
Sandip Chatterjee
 
Intro to Machine Learning by Microsoft Ventures
microsoftventures
 
Overview of machine learning
SolivarLabs
 
machine learning
soundaryasarya
 
Computational decision making
Boris Adryan
 
PowerPoint presentation on Introduction to Machine Learning
rachid89aziz
 
Machine Learning: Transforming Data into Insights
pemac73062
 
Machine Learning and its Appplications--
sudarmani rajagopal
 
introduction to machine learning .pptx
SulemanKtk2
 
IMPLEMENTATION OF MACHINE LEARNING IN E-COMMERCE & BEYOND
Rabi Das
 
machine_learning_section1_ebook.pdf
agfi
 
AI-900 - Fundamental Principles of ML.pptx
kprasad8
 
An-Overview-of-Machine-Learning.pptx
someyamohsen3
 
Introduction to Data Science
Christy Abraham Joy
 
Machine learning
Sandeep Singh
 
Machine Learning Basics
Suresh Arora
 
578_Machine _learning @_presentationnn_12
susmithalanka2
 
Introduction to Machine Learning
SATHVIK MANIKANTAN N U
 
demo lecture for foundation class for btech
ROHIT738213
 
Ad

Recently uploaded (20)

PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PDF
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
Ad

ML howtodo.pptx. Get learning how to do a

  • 1. Introduction to Machine Learning Machine learning algorithms learn from data to improve performance. Instead of explicit programming, ML identifies patterns autonomously. It's used in spam filtering, recommendation systems, and medical diagnoses. The core idea is to 'learn from experience.' Eng. Anas Khodayf
  • 2. What is Machine Learning? Definition Machine learning is all about training the computer with lots and lots of data to make it do intelligent tasks Key Components Data, algorithms, models, and evaluation metrics are crucial. Types of ML Supervised, unsupervised, and reinforcement learning approaches.
  • 3. The Machine Learning Process Data Collection Gather relevant data from diverse sources. Data Preprocessing Clean, transform, and format raw data. Model Selection Choose appropriate algorithms for the task. Training Fit the model to the preprocessed data.
  • 4. ML Algorithm Overview Supervised Learning Use labeled data for training models. Includes regression and classification. Unsupervised Learning Leverage unlabeled data for pattern discovery. Includes clustering and dimensionality reduction. Reinforcement Learning Learn through trial and error in dynamic environments.
  • 5. Supervised Learning Supervised learning involves training models with labeled data. The goal is to predict outputs for new, unseen inputs. Spam detection and image classification are examples of supervised learning. Training data informs a model to map inputs to outputs. Labeled Data Input-output pairs used for training. Prediction Predicting outputs for new data points. Model Training Mapping inputs to outputs using the data.
  • 6. Classification vs. Regression Classification • Predicts categories (discrete output) • Examples: Spam detection, image labeling • Algorithms: Logistic Regression, SVM, Decision Trees • Metrics: Accuracy, Precision, Recall, F1-score Regression • Predicts continuous values • Examples: House prices, temperature forecasting • Algorithms: Linear Regression, SVR, Random Forest Regression • Metrics: MSE, RMSE, MAE, R-squared
  • 7. Linear Regression Linear regression predicts a continuous output variable. It uses one or more input variables. The equation is Y = b0 + b1*X1 + b2*X2 + ... + bn*Xn. A practical example is predicting house prices based on square footage, using national average of $250/sq ft. Evaluation metrics are MSE and R-squared (target > 0.7). Continuous Output Predicts a continuous variable based on inputs. House Prices Example using square footage to predict price. Evaluation Metrics include MSE and R-squared.
  • 8. Logistic Regression Logistic regression predicts a binary outcome. It outputs probabilities using a sigmoid function (threshold 0.5). Predicting customer churn is a use case, based on demographics and usage. Accuracy, Precision, Recall, and F1-score are the main evaluation metrics (target > 0.8). Binary Outcome Sigmoid Function Customer Churn
  • 9. K-Nearest Neighbors (KNN) KNN classifies a new data point. It uses the majority class of its k nearest neighbors. Small K is sensitive to noise, large K is expensive.
  • 10. Support Vector Machines (SVM) SVM finds the optimal hyperplane. It separates data points into different classes. The kernel trick maps data into higher dimensions. Image classification (cats and dogs) is a use case. SVM is effective in high dimensional spaces. Optimal Hyperplane Kernel Trick Image Classification
  • 11. Decision Trees Decision Trees use a tree-like structure. Each node represents a feature. Each branch represents a decision. They are easy to interpret and visualize.
  • 12. Random Forests Random Forests combine multiple decision trees. This ensemble learning method reduces overfitting. It also improves accuracy. Important parameters are the number of trees and max depth.
  • 13. Unsupervised Learning: Unsupervised learning: find hidden patterns in unlabeled data
  • 14. Unsupervised Learning: Clustering Algorithms K-Means Clustering • Partitions data into k clusters • Example: Customer segmentation • Simple, scalable algorithm Hierarchical Clustering • Builds tree of clusters • Example: Grouping documents • Detailed cluster relationships Metrics: Silhouette score, Davies-Bouldin index
  • 15. Reinforcement Learning: Key Concepts Agent Decision maker Environment Interacts with agent State Current situation Action Agent's choice Reward Feedback signal Policy Strategy for actions
  • 16. Eng : Anas Khodayf [email protected] Summary Machine learning empowers systems to learn from data. Supervised learning leverages labeled data for predictive models. Regression handles continuous outcomes, while classification addresses categorical ones. Unsupervised Learning, Discover patterns, no labels needed. Reinforcement Learning Learn actions from feedback. Choose the algorithm that best suits your data and problem.