0% found this document useful (0 votes)
110 views2 pages

Contoh Perhitungan Decision Tree

The document contains weather data over 14 days that includes outlook, temperature, humidity, and wind conditions. It shows that there were mostly sunny or rainy days with hot or mild temperatures and high or normal humidity. Wind was mostly false except for 4 days with true readings. The data is categorized and totaled to analyze patterns in the weather conditions.

Uploaded by

Iwan Yunianto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views2 pages

Contoh Perhitungan Decision Tree

The document contains weather data over 14 days that includes outlook, temperature, humidity, and wind conditions. It shows that there were mostly sunny or rainy days with hot or mild temperatures and high or normal humidity. Wind was mostly false except for 4 days with true readings. The data is categorized and totaled to analyze patterns in the weather conditions.

Uploaded by

Iwan Yunianto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Outloo Temperat Humidit Win

Day k ure y d
D1 Sunny Hot High False
D2 Sunny Hot High True
D3 Cloudy Hot High False
D4 Rainy Mild High False
D5 Rainy Cool Normal False
D6 Rainy Cool Normal True
D7 Cloudy Cool Normal True
D8 Sunny Mild High False
D9 Sunny Cool Normal False
D10 Rainy Mild Normal False
D11 Sunny Mild Normal True
D12 Cloudy Mild High True
D13 Cloudy Hot Normal False
D14 Rainy Mild High True

JML NO (S1) YES


KASUS (S) (S2)
TOTAL 14 4 10
OUTLOOK
CLOUDY 4 0 4
RAIN 5 1 4
SUNNY 5 3 2
TEMPERATURE
COOL 4 0 4
HOT 4 2 2
MILD 6 2 4
HUMIDITY
HIGH 7 4 3
NORMAL 7 0 7
WIND
0 8 2 6
1 6 4 2

rumus imlog2 = log2


Play
Tennis
No
No
Yes
Yes
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
No

ENTROPY INFORMATION
GAIN
0.86312056856663
0.258521036658762
0
0.721928094887362
0.970950594454668
0.18385092540042
0
1
0.91829583405449
0.370506500549504
0.985228136034253
0
0.005977711423772
0.811278124459133
0.91829583405449

You might also like