SlideShare a Scribd company logo
1 of 12
Download to read offline
Machine Learning
Dr. Mostafa A. Elhosseini
Big Picture
≡ Dataset
≡ Find pattern that best match
≡ Problem in pattern
≡ predict
≡ Can a computer observe a photograph and say “Ah ha, I see a lovely
couple walking over a bridge under an umbrella in the rain”?
≡ Can software make medical decisions as accurately as that of
trained professionals?
≡ Can software predictions about the stock market perform better
that human reasoning?
Spam filter - traditional programming
≡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.
≡Perhaps you would also notice a few other patterns in the sender’s
name, the email’s body, and so on.
≡ 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
▪ Long list of complex rules
Spam filter - traditional programming
≡ 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.
Spam filter
by ML
≡ 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
≡ Spam filter based on Machine Learning techniques automatically notices
that “For U” has become unusually frequent in spam flagged by users,
and it starts flagging them without your intervention
Applications
≡ Facebook: friends you might know
≡ Google Email::: attachment – CC – autocomplete – search
≡ Amazon:: filling your shopping cart
≡ Netflix // YouTube
▪ Media sites rely on Machine learning to sift through millions of options to give
you song or movie recommendation
▪ Retailers use it to gain insight into their customer’s purchasing behavior
≡ Self driving cars
≡ Tumor:: cancerous // benign
Data…
≡ We live in a world that is drowning in data
≡ Websites track every user’s every click
≡ Your smartphone is building up a record of your location and speed every
second of every day
≡ Smart cars – collect driving habits
≡ Smart homes – collect living habits
≡ Smart marketers collect purchasing habits
≡ Buried in these data are answers to countless questions that no one’s
ever thought to ask
≡ If Machine learning is the steam engine of this revolution, then data is its
coal
Applications // Heart attack
≡ Predict whether someone will have a heart attack within a year
≡ They have data on previous patients, including
▪ Age
▪ Weight
▪ Height
▪ And blood pressure
≡ Athletics // injury – stroke - champions
Inspiration…
≡ The algorithm learns from data, similar to how humans learn from
experiences.
≡ Human learn by reading books, observing situations, studying in
schools, exchanging conversations, browsing websites, among other
means
ML Jargons
≡ Training set: the examples that the system uses to learn
≡ Training instance: Training sample -> each training example
≡ Label: spam or not
≡ feature = attribute + value
≡ Predictors: features
≡ Ex. Price of a car
▪ Set of features (mileage, age, brand) called predictors
▪ Feature : Mileage = 15,000
≡ Performance measure P:
≡ Ratio of correctly classified emails
Machine learning definition
≡ Machine Learning is the science (and art) of programming
computers so they can learn from data
≡ The field of study that gives computers the ability to learn without
being explicitly programmed – Arthur Samuel, 1959
≡ A computer program is said to learn from experience E with respect
to some task T and some performance measure P, if its performance
on T, as measured by P, improves with experience E. Tom Mitchell,
1997

More Related Content

Similar to Lecture 01 intro. to ml and overview

i2ml-chap1-v1-1.ppt
i2ml-chap1-v1-1.ppti2ml-chap1-v1-1.ppt
i2ml-chap1-v1-1.pptSivamkasi64
 
Everyday examples of artificial intelligence and machine learning
Everyday examples of artificial intelligence and machine learningEveryday examples of artificial intelligence and machine learning
Everyday examples of artificial intelligence and machine learningUSM Systems
 
Algorithmic Bias : What is it? Why should we care? What can we do about it?
Algorithmic Bias : What is it? Why should we care? What can we do about it?Algorithmic Bias : What is it? Why should we care? What can we do about it?
Algorithmic Bias : What is it? Why should we care? What can we do about it?University of Minnesota, Duluth
 
Eick/Alpaydin Introduction
Eick/Alpaydin IntroductionEick/Alpaydin Introduction
Eick/Alpaydin Introductionbutest
 
chapter1-introduction1.ppt
chapter1-introduction1.pptchapter1-introduction1.ppt
chapter1-introduction1.pptSeshuSrinivas2
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceEnes Bolfidan
 
Machine learning applications nurturing growth of various business domains
Machine learning applications nurturing growth of various business domainsMachine learning applications nurturing growth of various business domains
Machine learning applications nurturing growth of various business domainsShrutika Oswal
 
Machine learning - session 1
Machine learning - session 1Machine learning - session 1
Machine learning - session 1Luis Borbon
 
2.17Mb ppt
2.17Mb ppt2.17Mb ppt
2.17Mb pptbutest
 
ML All Chapter PDF.pdf
ML All Chapter PDF.pdfML All Chapter PDF.pdf
ML All Chapter PDF.pdfexample43
 
Amazon Machine Learning for Developers
Amazon Machine Learning for DevelopersAmazon Machine Learning for Developers
Amazon Machine Learning for DevelopersAmazon Web Services
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learningHimanshu Arora
 
Offshore Ruby on Rails Development and Bacancy Technology – A Match Made in H...
Offshore Ruby on Rails Development and Bacancy Technology – A Match Made in H...Offshore Ruby on Rails Development and Bacancy Technology – A Match Made in H...
Offshore Ruby on Rails Development and Bacancy Technology – A Match Made in H...Katy Slemon
 
Machine learning
Machine learningMachine learning
Machine learningeonx_32
 
Introduction to Machine Learning and different types of Learning
Introduction to Machine Learning and different types of LearningIntroduction to Machine Learning and different types of Learning
Introduction to Machine Learning and different types of LearningAnshika865276
 
Basics of machine learning
Basics of machine learningBasics of machine learning
Basics of machine learningGopal Verma
 
Machine Learning in Business What It Is and How to Use It
Machine Learning in Business What It Is and How to Use ItMachine Learning in Business What It Is and How to Use It
Machine Learning in Business What It Is and How to Use ItKashish Trivedi
 

Similar to Lecture 01 intro. to ml and overview (20)

i2ml-chap1-v1-1.ppt
i2ml-chap1-v1-1.ppti2ml-chap1-v1-1.ppt
i2ml-chap1-v1-1.ppt
 
Machine learning
Machine learningMachine learning
Machine learning
 
Everyday examples of artificial intelligence and machine learning
Everyday examples of artificial intelligence and machine learningEveryday examples of artificial intelligence and machine learning
Everyday examples of artificial intelligence and machine learning
 
Algorithmic Bias : What is it? Why should we care? What can we do about it?
Algorithmic Bias : What is it? Why should we care? What can we do about it?Algorithmic Bias : What is it? Why should we care? What can we do about it?
Algorithmic Bias : What is it? Why should we care? What can we do about it?
 
Eick/Alpaydin Introduction
Eick/Alpaydin IntroductionEick/Alpaydin Introduction
Eick/Alpaydin Introduction
 
chapter1-introduction1.ppt
chapter1-introduction1.pptchapter1-introduction1.ppt
chapter1-introduction1.ppt
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Machine learning applications nurturing growth of various business domains
Machine learning applications nurturing growth of various business domainsMachine learning applications nurturing growth of various business domains
Machine learning applications nurturing growth of various business domains
 
Machine learning - session 1
Machine learning - session 1Machine learning - session 1
Machine learning - session 1
 
2.17Mb ppt
2.17Mb ppt2.17Mb ppt
2.17Mb ppt
 
ML All Chapter PDF.pdf
ML All Chapter PDF.pdfML All Chapter PDF.pdf
ML All Chapter PDF.pdf
 
Amazon Machine Learning for Developers
Amazon Machine Learning for DevelopersAmazon Machine Learning for Developers
Amazon Machine Learning for Developers
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learning
 
Offshore Ruby on Rails Development and Bacancy Technology – A Match Made in H...
Offshore Ruby on Rails Development and Bacancy Technology – A Match Made in H...Offshore Ruby on Rails Development and Bacancy Technology – A Match Made in H...
Offshore Ruby on Rails Development and Bacancy Technology – A Match Made in H...
 
Machine learning
Machine learningMachine learning
Machine learning
 
Introduction to Machine Learning and different types of Learning
Introduction to Machine Learning and different types of LearningIntroduction to Machine Learning and different types of Learning
Introduction to Machine Learning and different types of Learning
 
Basics of machine learning
Basics of machine learningBasics of machine learning
Basics of machine learning
 
AI-ML.pdf
AI-ML.pdfAI-ML.pdf
AI-ML.pdf
 
Machine Learning in Business What It Is and How to Use It
Machine Learning in Business What It Is and How to Use ItMachine Learning in Business What It Is and How to Use It
Machine Learning in Business What It Is and How to Use It
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 

More from Mostafa El-Hosseini

More from Mostafa El-Hosseini (17)

why now Deep Neural Networks?
why now Deep Neural Networks?why now Deep Neural Networks?
why now Deep Neural Networks?
 
Activation functions types
Activation functions typesActivation functions types
Activation functions types
 
Why activation function
Why activation functionWhy activation function
Why activation function
 
Logistic Regression (Binary Classification)
Logistic Regression (Binary Classification)Logistic Regression (Binary Classification)
Logistic Regression (Binary Classification)
 
Model validation and_early_stopping_-_shooting
Model validation and_early_stopping_-_shootingModel validation and_early_stopping_-_shooting
Model validation and_early_stopping_-_shooting
 
Lecture 01 _perceptron_intro
Lecture 01 _perceptron_introLecture 01 _perceptron_intro
Lecture 01 _perceptron_intro
 
Lecture 19 chapter_4_regularized_linear_models
Lecture 19 chapter_4_regularized_linear_modelsLecture 19 chapter_4_regularized_linear_models
Lecture 19 chapter_4_regularized_linear_models
 
Svm rbf kernel
Svm rbf kernelSvm rbf kernel
Svm rbf kernel
 
Lecture 24 support vector machine kernel
Lecture 24  support vector machine kernelLecture 24  support vector machine kernel
Lecture 24 support vector machine kernel
 
Lecture 23 support vector classifier
Lecture 23  support vector classifierLecture 23  support vector classifier
Lecture 23 support vector classifier
 
Lecture 12 binary classifier confusion matrix
Lecture 12 binary classifier confusion matrixLecture 12 binary classifier confusion matrix
Lecture 12 binary classifier confusion matrix
 
Lecture 11 linear regression
Lecture 11 linear regressionLecture 11 linear regression
Lecture 11 linear regression
 
Numpy 02
Numpy 02Numpy 02
Numpy 02
 
Naive bayes classifier python session
Naive bayes classifier  python sessionNaive bayes classifier  python session
Naive bayes classifier python session
 
Ga
GaGa
Ga
 
Numpy 01
Numpy 01Numpy 01
Numpy 01
 
Lecture 08 prepare the data for ml algorithm
Lecture 08 prepare the data for ml algorithmLecture 08 prepare the data for ml algorithm
Lecture 08 prepare the data for ml algorithm
 

Recently uploaded

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 

Lecture 01 intro. to ml and overview

  • 2. Big Picture ≡ Dataset ≡ Find pattern that best match ≡ Problem in pattern ≡ predict
  • 3. ≡ Can a computer observe a photograph and say “Ah ha, I see a lovely couple walking over a bridge under an umbrella in the rain”? ≡ Can software make medical decisions as accurately as that of trained professionals? ≡ Can software predictions about the stock market perform better that human reasoning?
  • 4. Spam filter - traditional programming ≡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. ≡Perhaps you would also notice a few other patterns in the sender’s name, the email’s body, and so on. ≡ 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 ▪ Long list of complex rules
  • 5. Spam filter - traditional programming ≡ 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.
  • 6. Spam filter by ML ≡ 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 ≡ Spam filter based on Machine Learning techniques automatically notices that “For U” has become unusually frequent in spam flagged by users, and it starts flagging them without your intervention
  • 7. Applications ≡ Facebook: friends you might know ≡ Google Email::: attachment – CC – autocomplete – search ≡ Amazon:: filling your shopping cart ≡ Netflix // YouTube ▪ Media sites rely on Machine learning to sift through millions of options to give you song or movie recommendation ▪ Retailers use it to gain insight into their customer’s purchasing behavior ≡ Self driving cars ≡ Tumor:: cancerous // benign
  • 8. Data… ≡ We live in a world that is drowning in data ≡ Websites track every user’s every click ≡ Your smartphone is building up a record of your location and speed every second of every day ≡ Smart cars – collect driving habits ≡ Smart homes – collect living habits ≡ Smart marketers collect purchasing habits ≡ Buried in these data are answers to countless questions that no one’s ever thought to ask ≡ If Machine learning is the steam engine of this revolution, then data is its coal
  • 9. Applications // Heart attack ≡ Predict whether someone will have a heart attack within a year ≡ They have data on previous patients, including ▪ Age ▪ Weight ▪ Height ▪ And blood pressure ≡ Athletics // injury – stroke - champions
  • 10. Inspiration… ≡ The algorithm learns from data, similar to how humans learn from experiences. ≡ Human learn by reading books, observing situations, studying in schools, exchanging conversations, browsing websites, among other means
  • 11. ML Jargons ≡ Training set: the examples that the system uses to learn ≡ Training instance: Training sample -> each training example ≡ Label: spam or not ≡ feature = attribute + value ≡ Predictors: features ≡ Ex. Price of a car ▪ Set of features (mileage, age, brand) called predictors ▪ Feature : Mileage = 15,000 ≡ Performance measure P: ≡ Ratio of correctly classified emails
  • 12. Machine learning definition ≡ Machine Learning is the science (and art) of programming computers so they can learn from data ≡ The field of study that gives computers the ability to learn without being explicitly programmed – Arthur Samuel, 1959 ≡ A computer program is said to learn from experience E with respect to some task T and some performance measure P, if its performance on T, as measured by P, improves with experience E. Tom Mitchell, 1997