SlideShare a Scribd company logo
1 of 31
Download to read offline
Models and Learning
Ridho Rahmadi
Center of Data Science UII
May 10, 2020
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 1 / 30
Human Intelligence
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 2 / 30
Artificial Intelligence (AI)
Note that most of processes are automatic procedure.
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 3 / 30
ML, DL, CM
Machine Learning (ML), Deep Learning (DL), and Causal Modeling (CM) are parts of
AI.
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 4 / 30
Redefining Data
49K photos in Instagram
3.9M Google searches
4.3M Youtube watch
473K Twitter tweets
12.9M text sent
750K Spotify stream
156M emails sent
154K Skype calls
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 5 / 30
Data To Expect
Estimated there are
> 2.500.000.000.000.000.000 bytes
generated per day
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 6 / 30
Perspectives in Data Science
Problem Activity Questions Examples
Association
P(y|x)
Seeing
What is?
How would seeing X
change my belief in Y ?
What does a symptom tell
me about a disease?
Intervention
P(y|do(x), z)
Doing
What if?
What if I do X = x?
What if I take aspirin, will
my headache be cured?
Counterfactual
P(yx|x0
, y0
)
Imagining
Why?
Was it X that caused Y ?
What if I had acted differ-
ently?
What if I had not been
smoking the past 2 years?
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 7 / 30
Machine Learning
Data {x, y}
House area
Calories intake
Supervised
Machine
Learning f
Linear regression
Polynomial regression
etc.
Linear regression model
E.g., House price,
Weight gain
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 8 / 30
Machine Learning
Data {x, y}
Twitter tweets
Clinical assessment
Students’ study hour
Supervised
Machine
Learning f
Logistic regression
Naiv̈e Bayes Classifier
Random forest
Support vector machine
etc.
Classification model
E.g., Hoax or not
Diabetes or not
Pass exam or not
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 9 / 30
Example when x and y are continuous
1 2 3 4
1
2
3
4
5
6
eat 1 cookie
eat 2 cookies
cookies
Kg
What if I eat 3 cookies?
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 10 / 30
Extend the problem
1,000 2,000 3,000 4,000
200
400
600
Area in m2
Price
What is the price of a house if the area is 558 M2?
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 11 / 30
A good model?
1,000 2,000 3,000 4,000
200
400
600
Area in m2
Price
Draw a line by connecting all the points like this?
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 12 / 30
A good model?
1,000 2,000 3,000 4,000
200
400
600
Area in m2
Price
Draw a line by connecting all the points like this? Our objective is a model
generalization; the model above will not fit well other data.
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 12 / 30
A better model?
1,000 2,000 3,000 4,000 5,000
0
200
400
600
800
Area in m2
Price
Draw a line like this?
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 13 / 30
Which one?
1,000 2,000 3,000 4,000 5,000
0
200
400
600
800
Area in m2
Price
But which line?
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 14 / 30
Which one?
1,000 2,000 3,000 4,000 5,000
0
200
400
600
800
Area in m2
Price
But which line?
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 15 / 30
Linear Regression
1 Pick an initial line/model
h(θ) by randomly choosing
parameter θ
2 Compute the corresponding
cost function J
3 Update the line/model h(θ)
by updating θ that makes
J(θ) smaller, using, e.g.
gradient descent
4 Repeat steps 2 and 3 until
converges
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 16 / 30
When x continuous and y discrete
Cholesterol x1 Exercise x2 Status y
100 200 healthy
200 50 unhealthy
90 300 healthy
95 250 healthy
250 30 unhealthy
.
.
.
.
.
.
x2
x1
Given a training set consisting of two classes “healthy” or “unhealthy”,
what is the class of a new sample with x1 = 300, x2 = 20?
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 17 / 30
A good classifier?
x2
x1
Note that this is a slightly different data set with the previous one.
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 18 / 30
Which one?
x2
x1
Which classifier?
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 19 / 30
Support Vector Machine (SVM)
y
x
m
a
r
g
i
n
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 20 / 30
Unsupervised Learning
Cholesterol x1 Exercise x2
100 200
200 50
90 300
95 250
250 30
.
.
.
.
.
.
x2
x1
In unsupervised learning, our training set has no target variable y, that is,
{x(1), . . . , x(m)}, and thus regression and classification is no longer of
interest.
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 21 / 30
Unsupervised Learning
In unsupervised learning, we want to
find an interesting
patterns/structures in the data.
x2
x1
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 22 / 30
Unsupervised Learning
For example, clusters or smaller
groups in a data set
The idea: partitioning data into
distinct groups
observations within each
group are similar
observations in different
groups are different
x2
x1
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 23 / 30
An algorithm fo clustering: K-Means
1 Initialize cluster centroids
2 Repeat until convergence (no
change)
1 Assign each ith observation to
the closest cluster centroid
2 For each cluster, move the
centroid to the mean of
observations belong to the
cluster
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 24 / 30
K-Means
1 Initialize cluster centroids
2 Repeat until convergence (no
change)
1 Assign each ith observation to
the closest cluster centroid
2 For each cluster, move the
centroid to the mean of
observations belong to the
cluster
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 25 / 30
K-Means
1 Initialize cluster centroids
2 Repeat until convergence (no
change)
1 Assign each ith observation to
the closest cluster centroid
2 For each cluster, move the
centroid to the mean of
observations belong to the
cluster
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 26 / 30
K-Means
1 Initialize cluster centroids
2 Repeat until convergence (no
change)
1 Assign each ith observation to
the closest cluster centroid
2 For each cluster, move the
centroid to the mean of
observations belong to the
cluster
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 27 / 30
K-Means
1 Initialize cluster centroids
2 Repeat until convergence (no
change)
1 Assign each ith observation to
the closest cluster centroid
2 For each cluster, move the
centroid to the mean of
observations belong to the
cluster
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 28 / 30
K-Means
1 Initialize cluster centroids
2 Repeat until convergence (no
change)
1 Assign each ith observation to
the closest cluster centroid
2 For each cluster, move the
centroid to the mean of
observations belong to the
cluster
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 29 / 30
Happy Learning!
Matur Nuwun
ridho.rahmadi@uii.ac.id
Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 30 / 30

More Related Content

Similar to Ridho Rahmadi ML Models Learning May 10

International Conference on Data Mining and Machine Learning (DMML 2020)
International Conference on Data Mining and Machine Learning (DMML 2020)International Conference on Data Mining and Machine Learning (DMML 2020)
International Conference on Data Mining and Machine Learning (DMML 2020)dannyijwest
 
Mlds 2020
Mlds 2020Mlds 2020
Mlds 2020pijans
 
Big Data Expo 2015 - Itility Grasduinen in data met machine learning
Big Data Expo 2015 - Itility Grasduinen in data met machine learningBig Data Expo 2015 - Itility Grasduinen in data met machine learning
Big Data Expo 2015 - Itility Grasduinen in data met machine learningBigDataExpo
 
Generating Realistic Synthetic Data in Finance
Generating Realistic Synthetic Data in FinanceGenerating Realistic Synthetic Data in Finance
Generating Realistic Synthetic Data in FinanceGautier Marti
 
Introduction to Machine Learning and it's Role during COVID-19 Pandemic
Introduction to Machine Learning and it's Role during COVID-19 PandemicIntroduction to Machine Learning and it's Role during COVID-19 Pandemic
Introduction to Machine Learning and it's Role during COVID-19 PandemicMoch Ari Nasichuddin
 
introduction computational Intlelgent
introduction computational Intlelgentintroduction computational Intlelgent
introduction computational Intlelgentteguhkukuh p
 
International Conference on Data Science and Machine Learning (DSML 2020)
International Conference on Data Science and Machine Learning (DSML 2020)International Conference on Data Science and Machine Learning (DSML 2020)
International Conference on Data Science and Machine Learning (DSML 2020)ijdms
 
International Conference on Data Mining and Machine Learning (DMML 2020)
International Conference on Data Mining and Machine Learning (DMML 2020)International Conference on Data Mining and Machine Learning (DMML 2020)
International Conference on Data Mining and Machine Learning (DMML 2020)dannyijwest
 
IRJET- A Survey on Current Apply in Teaching of AI
IRJET-  	  A Survey on Current Apply in Teaching of AIIRJET-  	  A Survey on Current Apply in Teaching of AI
IRJET- A Survey on Current Apply in Teaching of AIIRJET Journal
 
9_dl_agriculture_16.12.2020.pdf
9_dl_agriculture_16.12.2020.pdf9_dl_agriculture_16.12.2020.pdf
9_dl_agriculture_16.12.2020.pdfSENTHILR44
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learningNayeem Rahman
 
Ntegra 20180523 v10 copy.pptx
Ntegra 20180523 v10 copy.pptxNtegra 20180523 v10 copy.pptx
Ntegra 20180523 v10 copy.pptxISSIP
 
Data Science & Artificial Intelligence for ALL
Data Science & Artificial Intelligence for ALLData Science & Artificial Intelligence for ALL
Data Science & Artificial Intelligence for ALLProf. Neeta Awasthy
 
[DOLAP2023] The Whys and Wherefores of Cubes
[DOLAP2023] The Whys and Wherefores of Cubes[DOLAP2023] The Whys and Wherefores of Cubes
[DOLAP2023] The Whys and Wherefores of CubesUniversity of Bologna
 
Will Robots Take all the Jobs? Not yet.
Will Robots Take all the Jobs? Not yet.Will Robots Take all the Jobs? Not yet.
Will Robots Take all the Jobs? Not yet.Dagmar Monett
 
AI Sensors and Dashboards: Gauging and Monitoring the Inferences Capabilities...
AI Sensors and Dashboards: Gauging and Monitoring the Inferences Capabilities...AI Sensors and Dashboards: Gauging and Monitoring the Inferences Capabilities...
AI Sensors and Dashboards: Gauging and Monitoring the Inferences Capabilities...Huber Flores
 
8 th International Conference on Computational Science and Engineering (CSE 2...
8 th International Conference on Computational Science and Engineering (CSE 2...8 th International Conference on Computational Science and Engineering (CSE 2...
8 th International Conference on Computational Science and Engineering (CSE 2...ijcseit
 

Similar to Ridho Rahmadi ML Models Learning May 10 (20)

PyData Paris 2015 - Track 2.3 AXA
PyData Paris 2015 - Track 2.3 AXA PyData Paris 2015 - Track 2.3 AXA
PyData Paris 2015 - Track 2.3 AXA
 
International Conference on Data Mining and Machine Learning (DMML 2020)
International Conference on Data Mining and Machine Learning (DMML 2020)International Conference on Data Mining and Machine Learning (DMML 2020)
International Conference on Data Mining and Machine Learning (DMML 2020)
 
Mlds 2020
Mlds 2020Mlds 2020
Mlds 2020
 
Big Data Expo 2015 - Itility Grasduinen in data met machine learning
Big Data Expo 2015 - Itility Grasduinen in data met machine learningBig Data Expo 2015 - Itility Grasduinen in data met machine learning
Big Data Expo 2015 - Itility Grasduinen in data met machine learning
 
Generating Realistic Synthetic Data in Finance
Generating Realistic Synthetic Data in FinanceGenerating Realistic Synthetic Data in Finance
Generating Realistic Synthetic Data in Finance
 
Introduction to Machine Learning and it's Role during COVID-19 Pandemic
Introduction to Machine Learning and it's Role during COVID-19 PandemicIntroduction to Machine Learning and it's Role during COVID-19 Pandemic
Introduction to Machine Learning and it's Role during COVID-19 Pandemic
 
introduction computational Intlelgent
introduction computational Intlelgentintroduction computational Intlelgent
introduction computational Intlelgent
 
International Conference on Data Science and Machine Learning (DSML 2020)
International Conference on Data Science and Machine Learning (DSML 2020)International Conference on Data Science and Machine Learning (DSML 2020)
International Conference on Data Science and Machine Learning (DSML 2020)
 
International Conference on Data Mining and Machine Learning (DMML 2020)
International Conference on Data Mining and Machine Learning (DMML 2020)International Conference on Data Mining and Machine Learning (DMML 2020)
International Conference on Data Mining and Machine Learning (DMML 2020)
 
IRJET- A Survey on Current Apply in Teaching of AI
IRJET-  	  A Survey on Current Apply in Teaching of AIIRJET-  	  A Survey on Current Apply in Teaching of AI
IRJET- A Survey on Current Apply in Teaching of AI
 
9_dl_agriculture_16.12.2020.pdf
9_dl_agriculture_16.12.2020.pdf9_dl_agriculture_16.12.2020.pdf
9_dl_agriculture_16.12.2020.pdf
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learning
 
Ntegra 20180523 v10 copy.pptx
Ntegra 20180523 v10 copy.pptxNtegra 20180523 v10 copy.pptx
Ntegra 20180523 v10 copy.pptx
 
Data Science & Artificial Intelligence for ALL
Data Science & Artificial Intelligence for ALLData Science & Artificial Intelligence for ALL
Data Science & Artificial Intelligence for ALL
 
[DOLAP2023] The Whys and Wherefores of Cubes
[DOLAP2023] The Whys and Wherefores of Cubes[DOLAP2023] The Whys and Wherefores of Cubes
[DOLAP2023] The Whys and Wherefores of Cubes
 
Will Robots Take all the Jobs? Not yet.
Will Robots Take all the Jobs? Not yet.Will Robots Take all the Jobs? Not yet.
Will Robots Take all the Jobs? Not yet.
 
Identifying research tools for quality publications
Identifying research tools for quality publicationsIdentifying research tools for quality publications
Identifying research tools for quality publications
 
AI Sensors and Dashboards: Gauging and Monitoring the Inferences Capabilities...
AI Sensors and Dashboards: Gauging and Monitoring the Inferences Capabilities...AI Sensors and Dashboards: Gauging and Monitoring the Inferences Capabilities...
AI Sensors and Dashboards: Gauging and Monitoring the Inferences Capabilities...
 
2015_FIT_Talk.pptx
2015_FIT_Talk.pptx2015_FIT_Talk.pptx
2015_FIT_Talk.pptx
 
8 th International Conference on Computational Science and Engineering (CSE 2...
8 th International Conference on Computational Science and Engineering (CSE 2...8 th International Conference on Computational Science and Engineering (CSE 2...
8 th International Conference on Computational Science and Engineering (CSE 2...
 

Recently uploaded

Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
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
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 

Recently uploaded (20)

Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
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...
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 

Ridho Rahmadi ML Models Learning May 10

  • 1. Models and Learning Ridho Rahmadi Center of Data Science UII May 10, 2020 Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 1 / 30
  • 2. Human Intelligence Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 2 / 30
  • 3. Artificial Intelligence (AI) Note that most of processes are automatic procedure. Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 3 / 30
  • 4. ML, DL, CM Machine Learning (ML), Deep Learning (DL), and Causal Modeling (CM) are parts of AI. Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 4 / 30
  • 5. Redefining Data 49K photos in Instagram 3.9M Google searches 4.3M Youtube watch 473K Twitter tweets 12.9M text sent 750K Spotify stream 156M emails sent 154K Skype calls Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 5 / 30
  • 6. Data To Expect Estimated there are > 2.500.000.000.000.000.000 bytes generated per day Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 6 / 30
  • 7. Perspectives in Data Science Problem Activity Questions Examples Association P(y|x) Seeing What is? How would seeing X change my belief in Y ? What does a symptom tell me about a disease? Intervention P(y|do(x), z) Doing What if? What if I do X = x? What if I take aspirin, will my headache be cured? Counterfactual P(yx|x0 , y0 ) Imagining Why? Was it X that caused Y ? What if I had acted differ- ently? What if I had not been smoking the past 2 years? Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 7 / 30
  • 8. Machine Learning Data {x, y} House area Calories intake Supervised Machine Learning f Linear regression Polynomial regression etc. Linear regression model E.g., House price, Weight gain Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 8 / 30
  • 9. Machine Learning Data {x, y} Twitter tweets Clinical assessment Students’ study hour Supervised Machine Learning f Logistic regression Naiv̈e Bayes Classifier Random forest Support vector machine etc. Classification model E.g., Hoax or not Diabetes or not Pass exam or not Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 9 / 30
  • 10. Example when x and y are continuous 1 2 3 4 1 2 3 4 5 6 eat 1 cookie eat 2 cookies cookies Kg What if I eat 3 cookies? Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 10 / 30
  • 11. Extend the problem 1,000 2,000 3,000 4,000 200 400 600 Area in m2 Price What is the price of a house if the area is 558 M2? Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 11 / 30
  • 12. A good model? 1,000 2,000 3,000 4,000 200 400 600 Area in m2 Price Draw a line by connecting all the points like this? Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 12 / 30
  • 13. A good model? 1,000 2,000 3,000 4,000 200 400 600 Area in m2 Price Draw a line by connecting all the points like this? Our objective is a model generalization; the model above will not fit well other data. Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 12 / 30
  • 14. A better model? 1,000 2,000 3,000 4,000 5,000 0 200 400 600 800 Area in m2 Price Draw a line like this? Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 13 / 30
  • 15. Which one? 1,000 2,000 3,000 4,000 5,000 0 200 400 600 800 Area in m2 Price But which line? Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 14 / 30
  • 16. Which one? 1,000 2,000 3,000 4,000 5,000 0 200 400 600 800 Area in m2 Price But which line? Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 15 / 30
  • 17. Linear Regression 1 Pick an initial line/model h(θ) by randomly choosing parameter θ 2 Compute the corresponding cost function J 3 Update the line/model h(θ) by updating θ that makes J(θ) smaller, using, e.g. gradient descent 4 Repeat steps 2 and 3 until converges Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 16 / 30
  • 18. When x continuous and y discrete Cholesterol x1 Exercise x2 Status y 100 200 healthy 200 50 unhealthy 90 300 healthy 95 250 healthy 250 30 unhealthy . . . . . . x2 x1 Given a training set consisting of two classes “healthy” or “unhealthy”, what is the class of a new sample with x1 = 300, x2 = 20? Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 17 / 30
  • 19. A good classifier? x2 x1 Note that this is a slightly different data set with the previous one. Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 18 / 30
  • 20. Which one? x2 x1 Which classifier? Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 19 / 30
  • 21. Support Vector Machine (SVM) y x m a r g i n Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 20 / 30
  • 22. Unsupervised Learning Cholesterol x1 Exercise x2 100 200 200 50 90 300 95 250 250 30 . . . . . . x2 x1 In unsupervised learning, our training set has no target variable y, that is, {x(1), . . . , x(m)}, and thus regression and classification is no longer of interest. Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 21 / 30
  • 23. Unsupervised Learning In unsupervised learning, we want to find an interesting patterns/structures in the data. x2 x1 Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 22 / 30
  • 24. Unsupervised Learning For example, clusters or smaller groups in a data set The idea: partitioning data into distinct groups observations within each group are similar observations in different groups are different x2 x1 Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 23 / 30
  • 25. An algorithm fo clustering: K-Means 1 Initialize cluster centroids 2 Repeat until convergence (no change) 1 Assign each ith observation to the closest cluster centroid 2 For each cluster, move the centroid to the mean of observations belong to the cluster Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 24 / 30
  • 26. K-Means 1 Initialize cluster centroids 2 Repeat until convergence (no change) 1 Assign each ith observation to the closest cluster centroid 2 For each cluster, move the centroid to the mean of observations belong to the cluster Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 25 / 30
  • 27. K-Means 1 Initialize cluster centroids 2 Repeat until convergence (no change) 1 Assign each ith observation to the closest cluster centroid 2 For each cluster, move the centroid to the mean of observations belong to the cluster Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 26 / 30
  • 28. K-Means 1 Initialize cluster centroids 2 Repeat until convergence (no change) 1 Assign each ith observation to the closest cluster centroid 2 For each cluster, move the centroid to the mean of observations belong to the cluster Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 27 / 30
  • 29. K-Means 1 Initialize cluster centroids 2 Repeat until convergence (no change) 1 Assign each ith observation to the closest cluster centroid 2 For each cluster, move the centroid to the mean of observations belong to the cluster Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 28 / 30
  • 30. K-Means 1 Initialize cluster centroids 2 Repeat until convergence (no change) 1 Assign each ith observation to the closest cluster centroid 2 For each cluster, move the centroid to the mean of observations belong to the cluster Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 29 / 30
  • 31. Happy Learning! Matur Nuwun ridho.rahmadi@uii.ac.id Ridho Rahmadi (Center of Data Science UII) Models and Learning May 10, 2020 30 / 30