SlideShare a Scribd company logo
1 of 15
AI: More than If-else
statement
—
Qamar un Nisa
Developer Advocacy Leader
North, East and West
Africa
AI is everywhere - with
the rise of Social Media,
Smart devices etc. It is
impossible to avoid AI in
our lives today.
2
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Communication agents,
widely known as chatbots
like Siri, Google Assistant
etc.
Simple but hidden;
autocorrect and word
prediction in our phones
and MS word.
LinkedIn/Facebook
suggests jobs and people
to connect with.
Google spams and
categorizes email. Good
map analyzes speed of
movement of traffic.
Youtube/Netflix
recommends most popular
videos/movies to users
based on various factors
like rating, user patterns
etc.
We interact with AI
daily.
3
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
All Machine Learning
is Artificial
Intelligence, but
not all Artificial
Intelligence is
Machine Learning.
4
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Data that is generated
is of various types.
Group Name / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 5
Manager: “Hi, how are you?”
Karen: “I am fine. Thanks”
Manager: “Good to know, how
can I help you today?”
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Titanic Dataset
Group Name / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 6
Passenger class:
1
2
3
Gender:
Male
Female
Age:
1-92
Embarked:
S
C
Q
Survived:
0
1
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Modeling through IF-else
Too many if-else statements to code!
7
Pclass = 1
Pclass = 2
Pclass = 3
Gender = female
Gender = male
Age= 0-10
Age= 11-20
Age= 21-30
Age= 31-40
Age= 41-50
Age= 51-60
Age= 61-70
Age= 71-80
Age= 81-90
Embarked= S
Embarked= C
Embarked= Q
Survived= 0 or 1
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Modeling through Decision
Tree
8
= 1 – (1/# Classes)
- Gini index is a splitting criteria in
Decision Tree.
- Calculate Gini index of every column.
- Choose the column with lowest Gini
Index.
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Modeling through Decision
Tree
9
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Modeling through IF-else
Prone to Errors!
10
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Modeling through Decision Tree
11
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Modeling through IF-else
Error on unseen Data!
12
Passenger Class 1, male aged 92 years wasn’t in my data when I was modeling IF-else statements. So there is no if statement
for 92 years age. Hence error. Meanwhile, AI adjusts to unseen data and still makes prediction.
AI has predicted that PassengedId 306 survives
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
ML is just Mathematics/Statistics!!
13
Often argued that AI or
ML is just mathematics
or statistics.
But it is much more
than that because of
Big Data and Deep
learning models.
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
Why you can’t just use If-else statements
instead of AI
1. Can't make rules for everything
2. Rules are limited and don’t have 360 view of all data and gives
3. error on unseen data.
4. Processing power matters and optimized code used in industry
14
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation 15

More Related Content

Similar to Ai more than if-else

Opportunities and Pitfalls of Prototyping with Artificial Intelligence berl...
Opportunities and Pitfalls of Prototyping with Artificial Intelligence   berl...Opportunities and Pitfalls of Prototyping with Artificial Intelligence   berl...
Opportunities and Pitfalls of Prototyping with Artificial Intelligence berl...DAIN Studios
 
7 Rules for Surviving the AI Hype Machine
7 Rules for Surviving the AI Hype Machine7 Rules for Surviving the AI Hype Machine
7 Rules for Surviving the AI Hype MachineAllen Bonde
 
5 biggest artificial intelligence trends in 2022
5 biggest artificial intelligence trends in 20225 biggest artificial intelligence trends in 2022
5 biggest artificial intelligence trends in 2022ArpitGautam20
 
5 ways to enhance your business using ai venkat k - medium
5 ways to enhance your business using ai   venkat k - medium5 ways to enhance your business using ai   venkat k - medium
5 ways to enhance your business using ai venkat k - mediumusmsystem
 
Real World Artificial Intelligence in Education - IBM Angela Bates
Real World Artificial Intelligence in Education - IBM Angela BatesReal World Artificial Intelligence in Education - IBM Angela Bates
Real World Artificial Intelligence in Education - IBM Angela BatesAngela Bates
 
Superannuation don't change the player, change the game
Superannuation   don't change the player, change the gameSuperannuation   don't change the player, change the game
Superannuation don't change the player, change the gameCristene Gonzalez-Wertz
 
C 04-internet of things - horizon watch trend report (client version) 28jan2015
C 04-internet of things - horizon watch trend report (client version) 28jan2015C 04-internet of things - horizon watch trend report (client version) 28jan2015
C 04-internet of things - horizon watch trend report (client version) 28jan2015Diane Shimmon
 
Auto AI : AI used to create AI applications
Auto AI : AI used to create AI applicationsAuto AI : AI used to create AI applications
Auto AI : AI used to create AI applicationsKaran Sachdeva
 
Wearable Computing: A 2014 HorizonWatching Trend Summary Report
Wearable Computing:  A 2014 HorizonWatching Trend Summary ReportWearable Computing:  A 2014 HorizonWatching Trend Summary Report
Wearable Computing: A 2014 HorizonWatching Trend Summary ReportBill Chamberlin
 
Mobliciti's Mobile & Cloud Technical Showcase
Mobliciti's Mobile & Cloud Technical Showcase Mobliciti's Mobile & Cloud Technical Showcase
Mobliciti's Mobile & Cloud Technical Showcase Aanya Ali
 
Apple’s SWOT AnalysisPoints of Strength· Globally Recognize.docx
Apple’s SWOT AnalysisPoints of Strength· Globally Recognize.docxApple’s SWOT AnalysisPoints of Strength· Globally Recognize.docx
Apple’s SWOT AnalysisPoints of Strength· Globally Recognize.docxarmitageclaire49
 
Forward thinking: What's next for AI
Forward thinking: What's next for AIForward thinking: What's next for AI
Forward thinking: What's next for AIIBM
 
Solve for X with AI: a VC view of the Machine Learning & AI landscape
Solve for X with AI: a VC view of the Machine Learning & AI landscapeSolve for X with AI: a VC view of the Machine Learning & AI landscape
Solve for X with AI: a VC view of the Machine Learning & AI landscapeEd Fernandez
 
Preparing the next generation for the cognitive era
Preparing the next generation for the cognitive eraPreparing the next generation for the cognitive era
Preparing the next generation for the cognitive eraSteven Miller
 
Privacy 2.0: Building a Winning Mobile Strategy in a Privacy-first World
Privacy 2.0: Building a Winning Mobile Strategy in a Privacy-first WorldPrivacy 2.0: Building a Winning Mobile Strategy in a Privacy-first World
Privacy 2.0: Building a Winning Mobile Strategy in a Privacy-first WorldTinuiti
 
Trust in Brands in the Age of AI
Trust in Brands in the Age of AITrust in Brands in the Age of AI
Trust in Brands in the Age of AIJ F Grossen
 
Internet trends report 2018
Internet trends report 2018 Internet trends report 2018
Internet trends report 2018 Steve Silver
 
Mary Meeker Internet Trends Report 2018
Mary Meeker Internet Trends Report 2018Mary Meeker Internet Trends Report 2018
Mary Meeker Internet Trends Report 2018Harsha MV
 
Global Internet trends-report-2018
Global Internet trends-report-2018Global Internet trends-report-2018
Global Internet trends-report-2018Paulo Ratinecas
 

Similar to Ai more than if-else (20)

Opportunities and Pitfalls of Prototyping with Artificial Intelligence berl...
Opportunities and Pitfalls of Prototyping with Artificial Intelligence   berl...Opportunities and Pitfalls of Prototyping with Artificial Intelligence   berl...
Opportunities and Pitfalls of Prototyping with Artificial Intelligence berl...
 
7 Rules for Surviving the AI Hype Machine
7 Rules for Surviving the AI Hype Machine7 Rules for Surviving the AI Hype Machine
7 Rules for Surviving the AI Hype Machine
 
5 biggest artificial intelligence trends in 2022
5 biggest artificial intelligence trends in 20225 biggest artificial intelligence trends in 2022
5 biggest artificial intelligence trends in 2022
 
5 ways to enhance your business using ai venkat k - medium
5 ways to enhance your business using ai   venkat k - medium5 ways to enhance your business using ai   venkat k - medium
5 ways to enhance your business using ai venkat k - medium
 
Real World Artificial Intelligence in Education - IBM Angela Bates
Real World Artificial Intelligence in Education - IBM Angela BatesReal World Artificial Intelligence in Education - IBM Angela Bates
Real World Artificial Intelligence in Education - IBM Angela Bates
 
Superannuation don't change the player, change the game
Superannuation   don't change the player, change the gameSuperannuation   don't change the player, change the game
Superannuation don't change the player, change the game
 
C 04-internet of things - horizon watch trend report (client version) 28jan2015
C 04-internet of things - horizon watch trend report (client version) 28jan2015C 04-internet of things - horizon watch trend report (client version) 28jan2015
C 04-internet of things - horizon watch trend report (client version) 28jan2015
 
Auto AI : AI used to create AI applications
Auto AI : AI used to create AI applicationsAuto AI : AI used to create AI applications
Auto AI : AI used to create AI applications
 
Wearable Computing: A 2014 HorizonWatching Trend Summary Report
Wearable Computing:  A 2014 HorizonWatching Trend Summary ReportWearable Computing:  A 2014 HorizonWatching Trend Summary Report
Wearable Computing: A 2014 HorizonWatching Trend Summary Report
 
Mobliciti's Mobile & Cloud Technical Showcase
Mobliciti's Mobile & Cloud Technical Showcase Mobliciti's Mobile & Cloud Technical Showcase
Mobliciti's Mobile & Cloud Technical Showcase
 
Apple’s SWOT AnalysisPoints of Strength· Globally Recognize.docx
Apple’s SWOT AnalysisPoints of Strength· Globally Recognize.docxApple’s SWOT AnalysisPoints of Strength· Globally Recognize.docx
Apple’s SWOT AnalysisPoints of Strength· Globally Recognize.docx
 
Forward thinking: What's next for AI
Forward thinking: What's next for AIForward thinking: What's next for AI
Forward thinking: What's next for AI
 
Solve for X with AI: a VC view of the Machine Learning & AI landscape
Solve for X with AI: a VC view of the Machine Learning & AI landscapeSolve for X with AI: a VC view of the Machine Learning & AI landscape
Solve for X with AI: a VC view of the Machine Learning & AI landscape
 
Preparing the next generation for the cognitive era
Preparing the next generation for the cognitive eraPreparing the next generation for the cognitive era
Preparing the next generation for the cognitive era
 
Meet
MeetMeet
Meet
 
Privacy 2.0: Building a Winning Mobile Strategy in a Privacy-first World
Privacy 2.0: Building a Winning Mobile Strategy in a Privacy-first WorldPrivacy 2.0: Building a Winning Mobile Strategy in a Privacy-first World
Privacy 2.0: Building a Winning Mobile Strategy in a Privacy-first World
 
Trust in Brands in the Age of AI
Trust in Brands in the Age of AITrust in Brands in the Age of AI
Trust in Brands in the Age of AI
 
Internet trends report 2018
Internet trends report 2018 Internet trends report 2018
Internet trends report 2018
 
Mary Meeker Internet Trends Report 2018
Mary Meeker Internet Trends Report 2018Mary Meeker Internet Trends Report 2018
Mary Meeker Internet Trends Report 2018
 
Global Internet trends-report-2018
Global Internet trends-report-2018Global Internet trends-report-2018
Global Internet trends-report-2018
 

Recently uploaded

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 

Recently uploaded (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Ai more than if-else

  • 1. AI: More than If-else statement — Qamar un Nisa Developer Advocacy Leader North, East and West Africa
  • 2. AI is everywhere - with the rise of Social Media, Smart devices etc. It is impossible to avoid AI in our lives today. 2 AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 3. Communication agents, widely known as chatbots like Siri, Google Assistant etc. Simple but hidden; autocorrect and word prediction in our phones and MS word. LinkedIn/Facebook suggests jobs and people to connect with. Google spams and categorizes email. Good map analyzes speed of movement of traffic. Youtube/Netflix recommends most popular videos/movies to users based on various factors like rating, user patterns etc. We interact with AI daily. 3 AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 4. All Machine Learning is Artificial Intelligence, but not all Artificial Intelligence is Machine Learning. 4 AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 5. Data that is generated is of various types. Group Name / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 5 Manager: “Hi, how are you?” Karen: “I am fine. Thanks” Manager: “Good to know, how can I help you today?” AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 6. Titanic Dataset Group Name / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 6 Passenger class: 1 2 3 Gender: Male Female Age: 1-92 Embarked: S C Q Survived: 0 1 AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 7. Modeling through IF-else Too many if-else statements to code! 7 Pclass = 1 Pclass = 2 Pclass = 3 Gender = female Gender = male Age= 0-10 Age= 11-20 Age= 21-30 Age= 31-40 Age= 41-50 Age= 51-60 Age= 61-70 Age= 71-80 Age= 81-90 Embarked= S Embarked= C Embarked= Q Survived= 0 or 1 AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 8. Modeling through Decision Tree 8 = 1 – (1/# Classes) - Gini index is a splitting criteria in Decision Tree. - Calculate Gini index of every column. - Choose the column with lowest Gini Index. AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 9. Modeling through Decision Tree 9 AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 10. Modeling through IF-else Prone to Errors! 10 AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 11. Modeling through Decision Tree 11 AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 12. Modeling through IF-else Error on unseen Data! 12 Passenger Class 1, male aged 92 years wasn’t in my data when I was modeling IF-else statements. So there is no if statement for 92 years age. Hence error. Meanwhile, AI adjusts to unseen data and still makes prediction. AI has predicted that PassengedId 306 survives AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 13. ML is just Mathematics/Statistics!! 13 Often argued that AI or ML is just mathematics or statistics. But it is much more than that because of Big Data and Deep learning models. AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 14. Why you can’t just use If-else statements instead of AI 1. Can't make rules for everything 2. Rules are limited and don’t have 360 view of all data and gives 3. error on unseen data. 4. Processing power matters and optimized code used in industry 14 AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation
  • 15. AI: More than If- Else statement/ April 2, 2021 / © 2021 IBM Corporation 15

Editor's Notes

  1. Evenly distributed would be 1 – (1/# Classes).
  2. Evenly distributed would be 1 – (1/# Classes).