You are on page 1of 39

STMIK Amikom Purwokerto

“Sarana Pasti Meraih Prestasi”

Introduction of
Machine Learning
Wiga Maulana Baihaqi, S.Kom., M.Eng.

Senin, 11 November 2019 Wiga Maulana Baihaqi, S.Kom., M.Eng. 1


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Agenda for Today’s Session


What is Algorithm?

What is machine Learning?

Types of Machine Learning

Example of Machine Learning

How is a problem solved using machine


learning?

Senin, 11 November 2019 Nama Dosen 2


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

What is an Algorithm?
• To tell a computer what it has to do, you need a program.

Senin, 11 November 2019 Nama Dosen 3


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

What is an Algorithm?
• To tell a computer what it has to do, you need a program.
• A program is nothing but logic in some language’s syntax.
• This logic is what an algorithm is.

Senin, 11 November 2019 Nama Dosen 4


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

What is an Algorithm?
• A Process or set of rules to be followed in calculations or other
problem-solving operations, especially by a computer.

Senin, 11 November 2019 Nama Dosen 5


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Algorithm - Example
• This is a simple algorithm to print
numbers from 1 to 20

Senin, 11 November 2019 Nama Dosen 6


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

What is Machine Learning?


Machine learning is a type of artificial intelligence (AI) that
provides computers with the ability to learn without being
Explicit programmed. Machine learning focuses on the
development of computer programs that can change when
exposed to new data

Machine Learning is a subset of artificial intelligence. It


focuses mainly on the designing of systems, thereby allowing
them to learn and make predictions based on some
experience which is data in case of machines.

Senin, 11 November 2019 Nama Dosen 7


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

What do you get from this data?

Senin, 11 November 2019 Nama Dosen 8


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning Types


Types of
Machine
Learning

Supervised Unsupervised Reinforcement


Learning Learning Learning

Senin, 11 November 2019 Nama Dosen 9


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Supervised learning is type of machine learning algorithm that uses a


known dataset (called the training dataset) to make predictions. The
training dataset includes input data and response values. From in, the
supervised learning algorithm seeks to build a model that can make
Supervised Learning predictions of the respons values for a new dataset.

Let’s take an example here. Say you are a teacher, and your way teaching is:
Unsupervised Learning
ToToteach
teach by example,i.ei.efor
by example, forevery
every problem
problem in their
in their life are
life you youproviding
are providing
Rainforcement Learning solutions
solutions to them,
them,this
thistype
typeofof learning
learning is called
is called supervised
Supervised learning.
Learning.

Let’s take the same example forward:

Senin, 11 November 2019 Nama Dosen 10


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Unsupervised learning is atype of machine learning algorithm used to draw


inferences from datasets consisting of input data without labeled
responses.
Supervised Learning

Unsupervised Learning When your kids are taking decisions out of their own understanding, this type
of learning would be Unsupervised Learning.

Rainforcement Learning

Let’s take the same example forward:

Senin, 11 November 2019 Nama Dosen 11


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Renforcment learning is an area of machine learning inspired by behaviorist


pschology. Concernedwith how software agents ought to take actions in an
environment so as to maximize some notion of cumulative reward.
Supervised Learning
If a new situation comes up, the kid will take actions on his own i.e from his
Unsupervised Learning past experiences, but as aparent towards the end of an action you can tell
him whether he did good or bad

Rainforcement Learning

Let’s take the same example forward:

Senin, 11 November 2019 Nama Dosen 12


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning: Supervised

Senin, 11 November 2019 Nama Dosen 13


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Supervised Learning Example

Senin, 11 November 2019 Nama Dosen 14


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Supervised Example & Use Cases

Senin, 11 November 2019 Nama Dosen 15


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Supervised Example & Use Cases

Senin, 11 November 2019 Nama Dosen 16


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Supervised Example & Use Cases

Senin, 11 November 2019 Nama Dosen 17


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Supervised Example & Use Cases

Senin, 11 November 2019 Nama Dosen 18


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning: Unsupervised

Senin, 11 November 2019 Nama Dosen 19


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning: Unsupervised

Senin, 11 November 2019 Nama Dosen 20


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning: Unsupervised

Senin, 11 November 2019 Nama Dosen 21


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning: Unsupervised

Senin, 11 November 2019 Nama Dosen 22


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning: Reincforcment

Senin, 11 November 2019 Nama Dosen 23


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning: Reincforcment

Senin, 11 November 2019 Nama Dosen 24


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning: Reincforcment

Senin, 11 November 2019 Nama Dosen 25


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Machine Learning: Reincforcment

Senin, 11 November 2019 Nama Dosen 26


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Reincforcment Training with Dog

Senin, 11 November 2019 Nama Dosen 27


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Senin, 11 November 2019 Nama Dosen 28


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Senin, 11 November 2019 Nama Dosen 29


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Senin, 11 November 2019 Nama Dosen 30


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

How a problem is solved using Machine Learning?


• We like a top down approach to answer the same:
• These are the 5 questions which can be answered in data science.

Q1
• Is this A or B? Classification Algorithm

Q2
• Is this weird? Anomaly Detection Algorithm

Q3
• How much or how many? Regression Algorithm

• How is this organized? Clustering Algorithm


Q4

• What should I do next? Reincforcment Learning


Q5

Senin, 11 November 2019 Nama Dosen 31


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Classification Algorithm
• Classification Algorithms are used to classify a record
• It is used for questions which can have only a limited
number of answer.
• For Example:

It is cold? Yes or No
Will you go to work today? Yes, No, pr Maybe

• When you have only two choices, its called Two Class Classification, if
you have more than 2 choices its called Multi Class Classification.
Senin, 11 November 2019 Nama Dosen 32
STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Regression Algorithm
• Regression Algorithms are used to calculate numerice value.
• For example:

What will the temperature be tomorrow?

How much discount can you give on a particular item?

Senin, 11 November 2019 Nama Dosen 33


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Anomaly Detection Algorithm


• It analyzed a certain pattern and alerts you whenever there is
change in the pttern.
Anomaly
• For Example:

Did you know?


In real life, your credit card company uses these anomaly detection
algorithms, and flag any transaction, which is not usual as per your
transaction history.

Senin, 11 November 2019 Nama Dosen 34


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Clustering
• It helps you understand the structure of a dataset.
• These algorithms separates the data into groups or clusters, to ease out the
interpretation of the data.

Goup C

Goup A

Goup B

• By understanding, how data is organized, you can better predict the


behavior of a practicular event.

Senin, 11 November 2019 Nama Dosen 35


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Reinforcement Algorithms
• These algorithms were designed as to how brains of humans or rats respond
to punishment and reward, they learn from outcomes and decide on next
action.
• They are good for system which have to make iot of small decisions without
human guidance.
• For example:

A system which plays chess

A temperature control system, when it has to decide whether temperature should be


increased or decreased.

Senin, 11 November 2019 Nama Dosen 36


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Summary
Supervised Unsupervised Reinforcment
Learning Learning Learning

Labeled Data No Labels Decision Process

Direct Feedback No Feedback Reward System

Find Hidden
Predict Learn Series of
Structure in
Outcome/future Actions
Data

Senin, 11 November 2019 Nama Dosen 37


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Home Work

Senin, 11 November 2019 Nama Dosen 38


STMIK Amikom Purwokerto
“Sarana Pasti Meraih Prestasi”

Thank You

Senin, 11 November 2019 Nama Dosen 39

You might also like