2.1 Problem 1
Load the iris sample dataset from sklearn (load iris()) into Python using a Pandas dataframe.
Induce a set of binary Decision Trees with a minimum of 2 instances in the leaves, no splits of subsets below 5, and an maximal tree depth from 1 to 5 (you can leave other parameters at their defaults). Which depth values result in the highest Recall? Why? Which value resulted in the lowest Precision? Why? Which value results in the best F1 score? Explain the difference between the micro/macro/weighted methods of score calculation.
Recently Asked Questions
- how can i write a code for this? def classify(s): """ Classify all the elements of a sequence as odd or even >>> classify([0, 1, 2, 4]) ['even', 'odd', 'even',
- how can i write a code for this? def deep_list(seq): """Returns a new list containing elements of the original list that are lists. >>> seq = [49, 8, 2, 1,
- May I please get the answers for the following questions: Question 1 (0.25 points) (True/False). If the definition of an IS is the medium for recording and