Question 7 Color Size Shape Edible Yellow Small Round Yes Yellow Small Round Green No Small Irregular Yes Green Large Irregular No Yellow Large Round Yellow Small Round Yellow Small Yellow Yes Yes Round Yes Small Round Yes Green Small Round Yellow Large Round No No Yellow Large Round Yes Yellow Large Round No Yellow Large Round No No Yellow Large Round Yellow Small Irregular Yes Yellow Large Irregular Yes a) Considering 'Edible' as the class, Compute entropy for this dataset. b) Between Color, Size, and Shape, which one is the better feature? Show full calculation and explain.

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter12: Enhancing A Document
Section: Chapter Questions
Problem 9QY
icon
Related questions
Question
100%

Please solve this question correctly. It's on Naive Bayes.

 

Question 7
Color
Size Shape Edible
Yellow Small Round
Yes
Yellow Small Round
Green
No
Small Irregular Yes
Green Large Irregular No
Yellow
Large Round
Yellow Small Round
Yellow Small
Yellow
Yes
Yes
Round
Yes
Small Round
Yes
Green Small Round
Yellow Large Round
No
No
Yellow Large Round
Yes
Yellow Large Round
No
Yellow Large Round
No
No
Yellow Large Round
Yellow Small Irregular Yes
Yellow
Large Irregular Yes
a) Considering 'Edible' as the class, Compute entropy for this dataset.
b) Between Color, Size, and Shape, which one is the better feature? Show full calculation and
explain.
Transcribed Image Text:Question 7 Color Size Shape Edible Yellow Small Round Yes Yellow Small Round Green No Small Irregular Yes Green Large Irregular No Yellow Large Round Yellow Small Round Yellow Small Yellow Yes Yes Round Yes Small Round Yes Green Small Round Yellow Large Round No No Yellow Large Round Yes Yellow Large Round No Yellow Large Round No No Yellow Large Round Yellow Small Irregular Yes Yellow Large Irregular Yes a) Considering 'Edible' as the class, Compute entropy for this dataset. b) Between Color, Size, and Shape, which one is the better feature? Show full calculation and explain.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage