ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Some Basics of
Machine Learning
Sidik Soleman
Prosa.ai
Email: sidik.soleman@prosa.ai
1. Machine Learning
2. Linear Regression
3. Logistic Regression
Agenda
2
3
1. Machine Learning
Machine Learning in Everyday Life
Search Engine
Machine Translation
Spelling Checker
Spam Detection
Chatbot
4
Definition of Artificial Intelligence (AI)
1. Acting Humanly
¡ð The turing test approach
¡ð Computer should to be able to do
¡ö Natural language processing
¡ö Knowledge representation
¡ö Automated reasoning
¡ö Machine learning (ML)
¡ñ To adapt to new circumstances and to detect and extrapolate patterns.
¡ö Computer vision
¡ö Robotics
5
Artificial Intelligence - A Modern Approach by Peter Norvig, Stuart J. Russell
Definition of Artificial Intelligent (AI)
2. Thinking Humanly
¡ð The cognitive approach
¡ð Understanding human brain by means
¡ö Introspection¡ªtrying to catch our own thoughts as they go by;
¡ö Psychological experiments¡ªobserving a person in action; and
¡ö Brain imaging¡ªobserving the brain in action
6
Artificial Intelligence - A Modern Approach by Peter Norvig, Stuart J. Russell
Definition of Artificial Intelligent (AI)
3. Thinking Rationally
¡ð The ¡°law of thought¡± approach
¡ð Logic ¡ú correct inference
4. Acting Rationally
¡ð The rational agent approach
¡ð Act rationally is to reason logically to the conclusion and then to act on that.
¡ð But, correct inference is not all of rationality; in some situations, there is no
provably correct thing to do, but something must still be done
7
Artificial Intelligence - A Modern Approach by Peter Norvig, Stuart J. Russell
Machine Learning Paradigms
1. Supervised Learning
¡ð Learning based on experience/examples, e.g. classification task
8
Training Data
Machine (Model)
Input
Cat
Machine Learning Paradigms (Cont¡¯d)
2. Unsupervised Learning
¡ð Finding hidden pattern from data, e.g. clustering task
9
Data
Machine (Model)
Output
Machine Learning Paradigms (Cont¡¯d)
3. Reinforcement Learning
¡ð Learning based on the interaction with environment to achieve a goal, e.g. to win chess game
¡ð Decision will be rewarded or punished
10
Machine (Model)
Environmen
t
(action)
(state, reward)
Machine Learning Algorithms
11
Supervised Learning Unsupervised Learning
Reinforcement
Learning
- Linear Regression
- Logistic Regression
- Support Vector
Machine
- Decision Tree
- Random Forest
- Naive Bayes
- Deep Learning
- K-Means Clustering
- K-Nearest Neighbour
- Apriori Algorithm
- Principal Component
Analysis
- Latent Dirichlet
Allocation
- Deep Learning
- Temporal Difference
Learning
- Monte Carlo
- Q-learning
- Policy Gradients
- Deep Reinforcement
Learning
12
2.Linear Regression
Based on machine learning course in Coursera by Andrew Ng
https://www.coursera.org/learn/machine-learning
Linear Regression
¡ñ Predicting the price of house
13
What is the price of a 200m2 house?
Finding the best linear function
f(x) g(x)
h(x)
Linear Regression (Cont¡¯d)
¡ñ Predicting the price of house
14
What is the price of a 200m2 house?
The best linear function
¡ñ
¡ñ Finding the best parameters
so that is close to y
General Setup
¡ñ m= # of training examples
¡ñ x = input variable/features
¡ñ y = output variable/target
¡ñ (x, y) = one training example
¡ñ (xi, yi) = i-th training example
h(x)
Linear Regression (Cont¡¯d)
¡ñ Predicting the price of house
15
What is the price of a 200m2 house?
Finding the best parameter
h(x)
cost function
Gradient Descent: Cost Function Derivation
¡ñ Predicting the price of house
16
What is the price of a 200m2 house?
Finding the best parameter
h(x)
Repeat until convergence {
}
Simultaneous Update
Derivation Intuition
17
Positive Slope
Negative Slope
Derivation guide the direction of
should be adjusted.
¦Á is the learning rate to control how big the
movement of
Gradient Descent Algorithm
¡ñ Predicting the price of house
18
What is the price of a 200m2 house?
Finding the best parameter
h(x)
Repeat until convergence {
}
Gradient Descent Algorithm
The Answer of the Prediction
¡ñ Predicting the price of house
19
What is the price of a 200m2 house?
h(x)
Multivariable Linear Regression
20
Previous linear regression function
¡ñ
Multivariable linear regression
¡ñ m= # of training examples
¡ñ x(i) = input variables/features of i-th
example
¡ñ y(i) = output variable of i-th example
¡ñ x(i)
j = value of feature j in i-th example
repeat {
}
Cost function
Gradient descent
21
3.Logistic Regression
Based on machine learning course in Coursera by Andrew Ng
https://www.coursera.org/learn/machine-learning
Classification Task
22
¡ñ Linear regression issues
¡ð Prediction score can be more or less than 1
¡ð Not suitable for classification task
¡ñ Solution: logistic regression
Parameter and x
as matrix
1
0.5
Score is also probability
Regression Model
23
Training Set
n parameter
Cost
repeat {
}
Gradient descent
Multi-class Classification
¡ñ Binary vs multi-class classification
¡ñ Handling multi-class classification
¡ð One vs Rest /One vs All
¡ö 4 Class Classification ¡ú 4 Classification Model
¡ö Label with maximum score is the answer
24
Machine Learning Problems
¡ñ Overfit
¡ð Hypothesis fit well with the training data ¡ú high performance
¡ð But fail to make generalization ¡ú poor performance on test data
¡ð High variance
¡ð Too many features
¡ñ Underfit
¡ð High bias ¡ú low performance
¡ð Fail to make generalization ¡ú poor performance on test data
25
Some solution for the problem
¡ñ Reduce number of features
¡ð Select features to keep
¡ð Model selection
¡ñ Regularization
¡ð Keep all features, but reduce magnitude or values of parameters (theta)
¡ð Works well when having a lot of features
26
Regularization
27
Regularization
Note:
Lambda high ¡ú underfit and high bias
Lambda too small ¡ú overfit
Take Home Message
¡ñ Machine learning is to adapt to new circumstances and to detect and
extrapolate patterns.
¡ñ Linear regression for predicting real continuous values
¡ñ Logistic regression for predicting class in classification
28

More Related Content

Similar to Fundamental of Machine Learning (20)

Uncertainty Awareness in Integrating Machine Learning and Game Theory
Uncertainty Awareness in Integrating Machine Learning and Game TheoryUncertainty Awareness in Integrating Machine Learning and Game Theory
Uncertainty Awareness in Integrating Machine Learning and Game Theory
Rikiya Takahashi
?
Introduction to Machine Learningg
Introduction    to    Machine  LearninggIntroduction    to    Machine  Learningg
Introduction to Machine Learningg
hmd3214
?
Memory for Lean Reinforcement Learning.pdf
Memory for Lean Reinforcement Learning.pdfMemory for Lean Reinforcement Learning.pdf
Memory for Lean Reinforcement Learning.pdf
Hung Le
?
Artificial Intelligence - Anna Uni -v1.pdf
Artificial Intelligence - Anna Uni -v1.pdfArtificial Intelligence - Anna Uni -v1.pdf
Artificial Intelligence - Anna Uni -v1.pdf
Jayanti Prasad Ph.D.
?
27332020002_PC-CS601_Robotics_Debjit Doira.pdf
27332020002_PC-CS601_Robotics_Debjit Doira.pdf27332020002_PC-CS601_Robotics_Debjit Doira.pdf
27332020002_PC-CS601_Robotics_Debjit Doira.pdf
Adharchandsaha
?
Unit - 1 - Introduction of the machine learning
Unit - 1 - Introduction of the machine learningUnit - 1 - Introduction of the machine learning
Unit - 1 - Introduction of the machine learning
Taranpreet Singh
?
Online advertising and large scale model fitting
Online advertising and large scale model fittingOnline advertising and large scale model fitting
Online advertising and large scale model fitting
Wush Wu
?
Reinforcement Learning
Reinforcement LearningReinforcement Learning
Reinforcement Learning
DongHyun Kwak
?
Reinforcement learning
Reinforcement learningReinforcement learning
Reinforcement learning
DongHyun Kwak
?
Introduction of Deep Reinforcement Learning
Introduction of Deep Reinforcement LearningIntroduction of Deep Reinforcement Learning
Introduction of Deep Reinforcement Learning
NAVER Engineering
?
L15.pptx
L15.pptxL15.pptx
L15.pptx
ImonBennett
?
General introduction to AI ML DL DS
General introduction to AI ML DL DSGeneral introduction to AI ML DL DS
General introduction to AI ML DL DS
Roopesh Kohad
?
lecture15-neural-nets (2).pptx
lecture15-neural-nets (2).pptxlecture15-neural-nets (2).pptx
lecture15-neural-nets (2).pptx
anjithaba
?
Jay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIJay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AI
AI Frontiers
?
Keynote at IWLS 2017
Keynote at IWLS 2017Keynote at IWLS 2017
Keynote at IWLS 2017
Manish Pandey
?
Brief History and Overview of LLM Agents
Brief History and Overview of LLM AgentsBrief History and Overview of LLM Agents
Brief History and Overview of LLM Agents
VincentLui15
?
Pycon 2012 Scikit-Learn
Pycon 2012 Scikit-LearnPycon 2012 Scikit-Learn
Pycon 2012 Scikit-Learn
Anoop Thomas Mathew
?
[Eestec] Machine Learning online seminar 1, 12 2016
[Eestec] Machine Learning online seminar 1, 12 2016[Eestec] Machine Learning online seminar 1, 12 2016
[Eestec] Machine Learning online seminar 1, 12 2016
Grigoris C
?
SKLearn Workshop.pptx
SKLearn Workshop.pptxSKLearn Workshop.pptx
SKLearn Workshop.pptx
fsxflyer789Productio
?
Machine Learning in Finance
Machine Learning in FinanceMachine Learning in Finance
Machine Learning in Finance
Hamed Vaheb
?
Uncertainty Awareness in Integrating Machine Learning and Game Theory
Uncertainty Awareness in Integrating Machine Learning and Game TheoryUncertainty Awareness in Integrating Machine Learning and Game Theory
Uncertainty Awareness in Integrating Machine Learning and Game Theory
Rikiya Takahashi
?
Introduction to Machine Learningg
Introduction    to    Machine  LearninggIntroduction    to    Machine  Learningg
Introduction to Machine Learningg
hmd3214
?
Memory for Lean Reinforcement Learning.pdf
Memory for Lean Reinforcement Learning.pdfMemory for Lean Reinforcement Learning.pdf
Memory for Lean Reinforcement Learning.pdf
Hung Le
?
Artificial Intelligence - Anna Uni -v1.pdf
Artificial Intelligence - Anna Uni -v1.pdfArtificial Intelligence - Anna Uni -v1.pdf
Artificial Intelligence - Anna Uni -v1.pdf
Jayanti Prasad Ph.D.
?
27332020002_PC-CS601_Robotics_Debjit Doira.pdf
27332020002_PC-CS601_Robotics_Debjit Doira.pdf27332020002_PC-CS601_Robotics_Debjit Doira.pdf
27332020002_PC-CS601_Robotics_Debjit Doira.pdf
Adharchandsaha
?
Unit - 1 - Introduction of the machine learning
Unit - 1 - Introduction of the machine learningUnit - 1 - Introduction of the machine learning
Unit - 1 - Introduction of the machine learning
Taranpreet Singh
?
Online advertising and large scale model fitting
Online advertising and large scale model fittingOnline advertising and large scale model fitting
Online advertising and large scale model fitting
Wush Wu
?
Introduction of Deep Reinforcement Learning
Introduction of Deep Reinforcement LearningIntroduction of Deep Reinforcement Learning
Introduction of Deep Reinforcement Learning
NAVER Engineering
?
General introduction to AI ML DL DS
General introduction to AI ML DL DSGeneral introduction to AI ML DL DS
General introduction to AI ML DL DS
Roopesh Kohad
?
lecture15-neural-nets (2).pptx
lecture15-neural-nets (2).pptxlecture15-neural-nets (2).pptx
lecture15-neural-nets (2).pptx
anjithaba
?
Jay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIJay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AI
AI Frontiers
?
Brief History and Overview of LLM Agents
Brief History and Overview of LLM AgentsBrief History and Overview of LLM Agents
Brief History and Overview of LLM Agents
VincentLui15
?
[Eestec] Machine Learning online seminar 1, 12 2016
[Eestec] Machine Learning online seminar 1, 12 2016[Eestec] Machine Learning online seminar 1, 12 2016
[Eestec] Machine Learning online seminar 1, 12 2016
Grigoris C
?
Machine Learning in Finance
Machine Learning in FinanceMachine Learning in Finance
Machine Learning in Finance
Hamed Vaheb
?

More from SARCCOM (20)

Week 3 Deep Learning And POS Tagging Hands-On
Week 3 Deep Learning And POS Tagging Hands-OnWeek 3 Deep Learning And POS Tagging Hands-On
Week 3 Deep Learning And POS Tagging Hands-On
SARCCOM
?
Week 2 Sentiment Analysis Using Machine Learning
Week 2 Sentiment Analysis Using Machine Learning Week 2 Sentiment Analysis Using Machine Learning
Week 2 Sentiment Analysis Using Machine Learning
SARCCOM
?
Week 1 Natural Language Processing Introduction
Week 1  Natural Language Processing IntroductionWeek 1  Natural Language Processing Introduction
Week 1 Natural Language Processing Introduction
SARCCOM
?
The Secret of Most Wanted Geek
The Secret of Most Wanted GeekThe Secret of Most Wanted Geek
The Secret of Most Wanted Geek
SARCCOM
?
Data Warehousing Tools on Data Ecosystem
Data Warehousing Tools on Data EcosystemData Warehousing Tools on Data Ecosystem
Data Warehousing Tools on Data Ecosystem
SARCCOM
?
Startup Engineering Culture
Startup Engineering CultureStartup Engineering Culture
Startup Engineering Culture
SARCCOM
?
Menggapai Paripurna Rekayasa
Menggapai Paripurna RekayasaMenggapai Paripurna Rekayasa
Menggapai Paripurna Rekayasa
SARCCOM
?
Requirement Gathering Jump Start
Requirement Gathering Jump StartRequirement Gathering Jump Start
Requirement Gathering Jump Start
SARCCOM
?
Legacy code - Taming The Beast
Legacy code  - Taming The BeastLegacy code  - Taming The Beast
Legacy code - Taming The Beast
SARCCOM
?
The Role of IT Architect in Enterprise Company (Garuda Indonesia)
The Role of IT Architect in Enterprise Company (Garuda Indonesia)The Role of IT Architect in Enterprise Company (Garuda Indonesia)
The Role of IT Architect in Enterprise Company (Garuda Indonesia)
SARCCOM
?
The Role of IT Architect in Startup Company
The Role of IT Architect in Startup CompanyThe Role of IT Architect in Startup Company
The Role of IT Architect in Startup Company
SARCCOM
?
Blibli Web Application Security Policy Enforcement Point
Blibli Web Application Security Policy Enforcement Point Blibli Web Application Security Policy Enforcement Point
Blibli Web Application Security Policy Enforcement Point
SARCCOM
?
Implement OpenSAMM on blibli.com
Implement OpenSAMM on blibli.comImplement OpenSAMM on blibli.com
Implement OpenSAMM on blibli.com
SARCCOM
?
Architecting for Huper Growth and Great Engineering Culture
Architecting for Huper Growth and Great Engineering CultureArchitecting for Huper Growth and Great Engineering Culture
Architecting for Huper Growth and Great Engineering Culture
SARCCOM
?
Software Architecture Introduction
Software Architecture IntroductionSoftware Architecture Introduction
Software Architecture Introduction
SARCCOM
?
Software Architecture Fundamentals Part-1 Architecture soft skill
Software Architecture Fundamentals Part-1 Architecture soft skillSoftware Architecture Fundamentals Part-1 Architecture soft skill
Software Architecture Fundamentals Part-1 Architecture soft skill
SARCCOM
?
Telco Business & Technology
Telco Business & TechnologyTelco Business & Technology
Telco Business & Technology
SARCCOM
?
Best Practice In Software Development
Best Practice In Software DevelopmentBest Practice In Software Development
Best Practice In Software Development
SARCCOM
?
The Evolution of Software for a Startup
The Evolution of Software for a Startup The Evolution of Software for a Startup
The Evolution of Software for a Startup
SARCCOM
?
Is your code SOLID enough?
 Is your code SOLID enough? Is your code SOLID enough?
Is your code SOLID enough?
SARCCOM
?
Week 3 Deep Learning And POS Tagging Hands-On
Week 3 Deep Learning And POS Tagging Hands-OnWeek 3 Deep Learning And POS Tagging Hands-On
Week 3 Deep Learning And POS Tagging Hands-On
SARCCOM
?
Week 2 Sentiment Analysis Using Machine Learning
Week 2 Sentiment Analysis Using Machine Learning Week 2 Sentiment Analysis Using Machine Learning
Week 2 Sentiment Analysis Using Machine Learning
SARCCOM
?
Week 1 Natural Language Processing Introduction
Week 1  Natural Language Processing IntroductionWeek 1  Natural Language Processing Introduction
Week 1 Natural Language Processing Introduction
SARCCOM
?
The Secret of Most Wanted Geek
The Secret of Most Wanted GeekThe Secret of Most Wanted Geek
The Secret of Most Wanted Geek
SARCCOM
?
Data Warehousing Tools on Data Ecosystem
Data Warehousing Tools on Data EcosystemData Warehousing Tools on Data Ecosystem
Data Warehousing Tools on Data Ecosystem
SARCCOM
?
Startup Engineering Culture
Startup Engineering CultureStartup Engineering Culture
Startup Engineering Culture
SARCCOM
?
Menggapai Paripurna Rekayasa
Menggapai Paripurna RekayasaMenggapai Paripurna Rekayasa
Menggapai Paripurna Rekayasa
SARCCOM
?
Requirement Gathering Jump Start
Requirement Gathering Jump StartRequirement Gathering Jump Start
Requirement Gathering Jump Start
SARCCOM
?
Legacy code - Taming The Beast
Legacy code  - Taming The BeastLegacy code  - Taming The Beast
Legacy code - Taming The Beast
SARCCOM
?
The Role of IT Architect in Enterprise Company (Garuda Indonesia)
The Role of IT Architect in Enterprise Company (Garuda Indonesia)The Role of IT Architect in Enterprise Company (Garuda Indonesia)
The Role of IT Architect in Enterprise Company (Garuda Indonesia)
SARCCOM
?
The Role of IT Architect in Startup Company
The Role of IT Architect in Startup CompanyThe Role of IT Architect in Startup Company
The Role of IT Architect in Startup Company
SARCCOM
?
Blibli Web Application Security Policy Enforcement Point
Blibli Web Application Security Policy Enforcement Point Blibli Web Application Security Policy Enforcement Point
Blibli Web Application Security Policy Enforcement Point
SARCCOM
?
Implement OpenSAMM on blibli.com
Implement OpenSAMM on blibli.comImplement OpenSAMM on blibli.com
Implement OpenSAMM on blibli.com
SARCCOM
?
Architecting for Huper Growth and Great Engineering Culture
Architecting for Huper Growth and Great Engineering CultureArchitecting for Huper Growth and Great Engineering Culture
Architecting for Huper Growth and Great Engineering Culture
SARCCOM
?
Software Architecture Introduction
Software Architecture IntroductionSoftware Architecture Introduction
Software Architecture Introduction
SARCCOM
?
Software Architecture Fundamentals Part-1 Architecture soft skill
Software Architecture Fundamentals Part-1 Architecture soft skillSoftware Architecture Fundamentals Part-1 Architecture soft skill
Software Architecture Fundamentals Part-1 Architecture soft skill
SARCCOM
?
Telco Business & Technology
Telco Business & TechnologyTelco Business & Technology
Telco Business & Technology
SARCCOM
?
Best Practice In Software Development
Best Practice In Software DevelopmentBest Practice In Software Development
Best Practice In Software Development
SARCCOM
?
The Evolution of Software for a Startup
The Evolution of Software for a Startup The Evolution of Software for a Startup
The Evolution of Software for a Startup
SARCCOM
?
Is your code SOLID enough?
 Is your code SOLID enough? Is your code SOLID enough?
Is your code SOLID enough?
SARCCOM
?

Recently uploaded (20)

Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)
nick896721
?
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Jonathan Bowen
?
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar PatturajInside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
ScyllaDB
?
EaseUS Partition Master Crack 2025 + Serial Key
EaseUS Partition Master Crack 2025 + Serial KeyEaseUS Partition Master Crack 2025 + Serial Key
EaseUS Partition Master Crack 2025 + Serial Key
kherorpacca127
?
UiPath Document Understanding - Generative AI and Active learning capabilities
UiPath Document Understanding - Generative AI and Active learning capabilitiesUiPath Document Understanding - Generative AI and Active learning capabilities
UiPath Document Understanding - Generative AI and Active learning capabilities
DianaGray10
?
BoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is DynamicBoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is Dynamic
Ortus Solutions, Corp
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
Tsuyoshi Hirayama
?
A Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin EngineeringA Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin Engineering
Daniel Lehner
?
Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025
kherorpacca00126
?
Deno ...................................
Deno ...................................Deno ...................................
Deno ...................................
Robert MacLean
?
Q4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor PresentationQ4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor Presentation
Dropbox
?
Technology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptxTechnology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptx
kaylagaze
?
UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1
DianaGray10
?
Wondershare Filmora Crack 14.3.2.11147 Latest
Wondershare Filmora Crack 14.3.2.11147 LatestWondershare Filmora Crack 14.3.2.11147 Latest
Wondershare Filmora Crack 14.3.2.11147 Latest
udkg888
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-StoryRevolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
ssuser52ad5e
?
Future-Proof Your Career with AI Options
Future-Proof Your  Career with AI OptionsFuture-Proof Your  Career with AI Options
Future-Proof Your Career with AI Options
DianaGray10
?
The Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nesThe Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nes
ScyllaDB
?
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
ScyllaDB
?
Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4
Margaret Maynard-Reid
?
Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)
nick896721
?
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Jonathan Bowen
?
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar PatturajInside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
ScyllaDB
?
EaseUS Partition Master Crack 2025 + Serial Key
EaseUS Partition Master Crack 2025 + Serial KeyEaseUS Partition Master Crack 2025 + Serial Key
EaseUS Partition Master Crack 2025 + Serial Key
kherorpacca127
?
UiPath Document Understanding - Generative AI and Active learning capabilities
UiPath Document Understanding - Generative AI and Active learning capabilitiesUiPath Document Understanding - Generative AI and Active learning capabilities
UiPath Document Understanding - Generative AI and Active learning capabilities
DianaGray10
?
BoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is DynamicBoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is Dynamic
Ortus Solutions, Corp
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
Tsuyoshi Hirayama
?
A Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin EngineeringA Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin Engineering
Daniel Lehner
?
Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025
kherorpacca00126
?
Deno ...................................
Deno ...................................Deno ...................................
Deno ...................................
Robert MacLean
?
Q4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor PresentationQ4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor Presentation
Dropbox
?
Technology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptxTechnology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptx
kaylagaze
?
UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1
DianaGray10
?
Wondershare Filmora Crack 14.3.2.11147 Latest
Wondershare Filmora Crack 14.3.2.11147 LatestWondershare Filmora Crack 14.3.2.11147 Latest
Wondershare Filmora Crack 14.3.2.11147 Latest
udkg888
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-StoryRevolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
ssuser52ad5e
?
Future-Proof Your Career with AI Options
Future-Proof Your  Career with AI OptionsFuture-Proof Your  Career with AI Options
Future-Proof Your Career with AI Options
DianaGray10
?
The Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nesThe Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nes
ScyllaDB
?
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
ScyllaDB
?
Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4
Margaret Maynard-Reid
?

Fundamental of Machine Learning

  • 1. Some Basics of Machine Learning Sidik Soleman Prosa.ai Email: sidik.soleman@prosa.ai
  • 2. 1. Machine Learning 2. Linear Regression 3. Logistic Regression Agenda 2
  • 4. Machine Learning in Everyday Life Search Engine Machine Translation Spelling Checker Spam Detection Chatbot 4
  • 5. Definition of Artificial Intelligence (AI) 1. Acting Humanly ¡ð The turing test approach ¡ð Computer should to be able to do ¡ö Natural language processing ¡ö Knowledge representation ¡ö Automated reasoning ¡ö Machine learning (ML) ¡ñ To adapt to new circumstances and to detect and extrapolate patterns. ¡ö Computer vision ¡ö Robotics 5 Artificial Intelligence - A Modern Approach by Peter Norvig, Stuart J. Russell
  • 6. Definition of Artificial Intelligent (AI) 2. Thinking Humanly ¡ð The cognitive approach ¡ð Understanding human brain by means ¡ö Introspection¡ªtrying to catch our own thoughts as they go by; ¡ö Psychological experiments¡ªobserving a person in action; and ¡ö Brain imaging¡ªobserving the brain in action 6 Artificial Intelligence - A Modern Approach by Peter Norvig, Stuart J. Russell
  • 7. Definition of Artificial Intelligent (AI) 3. Thinking Rationally ¡ð The ¡°law of thought¡± approach ¡ð Logic ¡ú correct inference 4. Acting Rationally ¡ð The rational agent approach ¡ð Act rationally is to reason logically to the conclusion and then to act on that. ¡ð But, correct inference is not all of rationality; in some situations, there is no provably correct thing to do, but something must still be done 7 Artificial Intelligence - A Modern Approach by Peter Norvig, Stuart J. Russell
  • 8. Machine Learning Paradigms 1. Supervised Learning ¡ð Learning based on experience/examples, e.g. classification task 8 Training Data Machine (Model) Input Cat
  • 9. Machine Learning Paradigms (Cont¡¯d) 2. Unsupervised Learning ¡ð Finding hidden pattern from data, e.g. clustering task 9 Data Machine (Model) Output
  • 10. Machine Learning Paradigms (Cont¡¯d) 3. Reinforcement Learning ¡ð Learning based on the interaction with environment to achieve a goal, e.g. to win chess game ¡ð Decision will be rewarded or punished 10 Machine (Model) Environmen t (action) (state, reward)
  • 11. Machine Learning Algorithms 11 Supervised Learning Unsupervised Learning Reinforcement Learning - Linear Regression - Logistic Regression - Support Vector Machine - Decision Tree - Random Forest - Naive Bayes - Deep Learning - K-Means Clustering - K-Nearest Neighbour - Apriori Algorithm - Principal Component Analysis - Latent Dirichlet Allocation - Deep Learning - Temporal Difference Learning - Monte Carlo - Q-learning - Policy Gradients - Deep Reinforcement Learning
  • 12. 12 2.Linear Regression Based on machine learning course in Coursera by Andrew Ng https://www.coursera.org/learn/machine-learning
  • 13. Linear Regression ¡ñ Predicting the price of house 13 What is the price of a 200m2 house? Finding the best linear function f(x) g(x) h(x)
  • 14. Linear Regression (Cont¡¯d) ¡ñ Predicting the price of house 14 What is the price of a 200m2 house? The best linear function ¡ñ ¡ñ Finding the best parameters so that is close to y General Setup ¡ñ m= # of training examples ¡ñ x = input variable/features ¡ñ y = output variable/target ¡ñ (x, y) = one training example ¡ñ (xi, yi) = i-th training example h(x)
  • 15. Linear Regression (Cont¡¯d) ¡ñ Predicting the price of house 15 What is the price of a 200m2 house? Finding the best parameter h(x) cost function
  • 16. Gradient Descent: Cost Function Derivation ¡ñ Predicting the price of house 16 What is the price of a 200m2 house? Finding the best parameter h(x) Repeat until convergence { } Simultaneous Update
  • 17. Derivation Intuition 17 Positive Slope Negative Slope Derivation guide the direction of should be adjusted. ¦Á is the learning rate to control how big the movement of
  • 18. Gradient Descent Algorithm ¡ñ Predicting the price of house 18 What is the price of a 200m2 house? Finding the best parameter h(x) Repeat until convergence { } Gradient Descent Algorithm
  • 19. The Answer of the Prediction ¡ñ Predicting the price of house 19 What is the price of a 200m2 house? h(x)
  • 20. Multivariable Linear Regression 20 Previous linear regression function ¡ñ Multivariable linear regression ¡ñ m= # of training examples ¡ñ x(i) = input variables/features of i-th example ¡ñ y(i) = output variable of i-th example ¡ñ x(i) j = value of feature j in i-th example repeat { } Cost function Gradient descent
  • 21. 21 3.Logistic Regression Based on machine learning course in Coursera by Andrew Ng https://www.coursera.org/learn/machine-learning
  • 22. Classification Task 22 ¡ñ Linear regression issues ¡ð Prediction score can be more or less than 1 ¡ð Not suitable for classification task ¡ñ Solution: logistic regression Parameter and x as matrix 1 0.5 Score is also probability
  • 23. Regression Model 23 Training Set n parameter Cost repeat { } Gradient descent
  • 24. Multi-class Classification ¡ñ Binary vs multi-class classification ¡ñ Handling multi-class classification ¡ð One vs Rest /One vs All ¡ö 4 Class Classification ¡ú 4 Classification Model ¡ö Label with maximum score is the answer 24
  • 25. Machine Learning Problems ¡ñ Overfit ¡ð Hypothesis fit well with the training data ¡ú high performance ¡ð But fail to make generalization ¡ú poor performance on test data ¡ð High variance ¡ð Too many features ¡ñ Underfit ¡ð High bias ¡ú low performance ¡ð Fail to make generalization ¡ú poor performance on test data 25
  • 26. Some solution for the problem ¡ñ Reduce number of features ¡ð Select features to keep ¡ð Model selection ¡ñ Regularization ¡ð Keep all features, but reduce magnitude or values of parameters (theta) ¡ð Works well when having a lot of features 26
  • 27. Regularization 27 Regularization Note: Lambda high ¡ú underfit and high bias Lambda too small ¡ú overfit
  • 28. Take Home Message ¡ñ Machine learning is to adapt to new circumstances and to detect and extrapolate patterns. ¡ñ Linear regression for predicting real continuous values ¡ñ Logistic regression for predicting class in classification 28