• Tidak ada hasil yang ditemukan

Decision Tree Artificial Intelegence | Kuliah bersama Dosen Stress...!!!

N/A
N/A
Protected

Academic year: 2018

Membagikan "Decision Tree Artificial Intelegence | Kuliah bersama Dosen Stress...!!!"

Copied!
15
0
0

Teks penuh

(1)
(2)

Data Mentah

(3)

Pembentukan Node

• Hitung Entropy

• Hitung Information Gain

(4)

Entropy Awal

• Jumlah instance = 8

• Jumlah instance positif = 3

• Jumlah instance negatif = 5

Hipertensi

P

ins ce positif

P

ins ce positif

P

ins ce negatif

P

ins ce negatif

Entropy

tan _

log

2 tan _

tan _

log

2 tan _

 

 

0,955

0,424

0,531

0.678

-

625

.

0

-1.415

375

.

0

625

.

0

log

625

.

0

375

.

0

log

375

.

0

8

5

log

8

5

8

(5)

Entropy Usia

• Jumlah instance = 8

• Instance Usia

– Muda

• Entropy Usia

– Entropy(muda) = 0.906

– Entropy(tua) = 1

ins ce positif ins ce positif ins ce negatif ins ce negatif

negatif ce

ins negatif

ce ins positif

ce ins positif

ce ins

P

P

P

P

Tua

Entropy

P

P

P

P

Muda

Entropy

_ tan 2

_ tan _

tan 2

_ tan

_ tan 2

_ tan _

tan 2

_ tan

log

log

log

log

(6)

Gain Usia

 

 

 

 

002

.

0

5

.

0

453

.

0

955

.

0

1

8

4

906

.

0

8

4

955

.

Tua Tua

Muda Muda

v Tua

Muda v

v

S

Entropy

S

S

S

Entropy

S

S

S

Entropy

S

Entropy

S

S

S

Entropy

Usia

(7)

Entropy Berat

• Jumlah instance = 8 • Intance Berat

– Overweight

• Instance positif = 3 • Instance negatif = 1

– Average

• Instance positif = 0 • Instance negatif = 2

– Underweight

• Instance positif = 0 • Instance negatif = 2

– Entropy(Overweight)=0.906 – Entropy(Average)=0.5

– Entropy(Underweight)=0.5

ins ce positif ins ce positif ins ce negatif ins ce negatif negatif ce

ins negatif

ce ins positif

ce ins positif

ce ins

negatif ce

ins negatif

ce ins positif

ce ins positif

ce ins

P P

P P

t Underweigh Entropy

P P

P P

Average Entropy

P P

P P

Overweight Entropy

_ tan 2

_ tan _

tan 2

_ tan

_ tan 2

_ tan _

tan 2

_ tan

_ tan 2

_ tan _

tan 2

_ tan

log log

log log

log log

(8)

Gain Usia

 

 

 

0,252

125 . 0 125 . 0 453 . 0 955 . 906 . 0 8 4 955 . Underweigh t

Underweigh average

Average Overweight

Overweight

v t

Underweigh Average

Overwight v

v

S Entropy S

S S

Entropy S

S S

Entropy S

S S Entropy

S Entropy S

S S

Entropy Berat

(9)

Entropy Jenis Kelamin

• Jumlah instance = 8

• Intance Jenis Kelamin

– Pria

• Instance positif = 2 • Instance negatif = 4

– Wanita

• Instance positif = 1 • Instance negatif = 1

– Entropy(Pria)=1

– Entropy(Wanita)=0.75

ins ce positif ins ce positif ins ce negatif ins ce negatif

negatif ce

ins negatif

ce ins positif

ce ins positif

ce ins

P P

P P

Wanita Entropy

P P

P P

ia Entropy

_ tan 2

_ tan _

tan 2

_ tan

_ tan 2

_ tan _

tan 2

_ tan

log log

log log

(10)

Gain Usia

 

 

 

 

0,017

188

.

0

75

.

0

955

.

955

.

0

min

,

Wanita Wanita

ia ia

v Wanita

ia v

v

S

Entropy

S

S

S

Entropy

S

S

S

Entropy

S

Entropy

S

S

S

Entropy

JenisKela

(11)

• Atribut yang dipilih adalah atribut berat karena nilai

Information Gainnya paling tinggi

• Jumlah Instance untuk Overweight = 4

• Jumlah Instance untuk Average = 2

• Jumlah Instance untuk Underweight = 2

• Hitung Gain paling tinggi untuk dijadikan cabang

berikutnya

Berat Overweight

Average

(12)

Node untuk cabang Overweight

• Jumlah instance = 4

• Instance (Berat = Overwight ) & Usia =

– Muda

• Instance positif = 1 • Instance negatif = 0

– Tua

• Instance positif = 2 • Instance negatif = 1

• Instance (Berat = Overwight ) & Jenis Kelamin =

– Pria

• Instance positif = 2 • Instance negatif = 1

– Wanita

(13)
(14)
(15)

Referensi

Dokumen terkait

Jadi yang penulis maksud dari judul di atas adalah pengelolaan bimbingan manasik haji melalui fungsi-fungsi manajemen yang mencakup perencanaan,

Tujuan dari penelitian ini adalah (1) Mengkaji bagaimana proses spasial penggunaan lahan di perkebunan teh Jamus Kabupaten Ngawi tahun 1990-2010; (2) Mengkaji

[r]

Then put a new node in the decision tree, where the new attribute being tested in the node is the one which scores highest for information gain relative to Sv (note: not relative

Dalam meningkatkan Sistem Penjaminan Mutu Universitas Khairun (Unkhair), khususnya proses pembelajaran yang sesuai Standar Nasional Pendidikan Tinggi (SNPT), Unkhair telah

Berdasarkan uji hipotesis, hasil dari penelitian ini adalah lingkungan kerja, stres kerja dan motivasi kerja berpengaruh terhadap loyalitas karyawan.. Kata Kunci:

a. Menjelaskan tujuan pembelajaran atau kompetensi yang ingin dicapai. Menyampaikan cakupan materi dan penjelasan uraian kegiatan sesuai silabus. Guru menjelaskan tata cara

Colorectal Cancer atau dikenal sebagai Ca Colon atau Kanker Usus Besar adalah Colorectal Cancer atau dikenal sebagai Ca Colon atau Kanker Usus Besar adalah suatu bentuk keganasan