Question
language:python This is the question my professor gave us an assignment and he gave an example and I have mentioned that below (python code) in
language:python
This is the question my professor gave us an assignment and he gave an example and I have mentioned that below (python code) in the formof link,and my job is to :
Implement C4.5. You have the code for ID3, but it was changed to use gain-ratio instead of information-gain. Modify the code to implement the C4.5, so your code can work with numeric data as well. Once finished, test your version of C4.5 with the Golf dataset, and print the resulting tree. The resulting tree should be something like the one below. Note that It is different from the tree given in the tutorial (the pdf file). Give an argument why our tree is the better tree. :
temperature <=83:outlook sunny:humidity <=70:Play >70:Don't Play overcast:Play rain:windy false:Play true:Don't Play >83:Don't Play According to the tree, first we have to check the temperature if > 83 then "don't play" otherwise we have to check outlook, etc.
{ https://ucmo.blackboard.com/bbcswebdav/pid-5027065-dt-content-rid-33824965_1/courses/201910CS471014559/id3-algorithm.html }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started