[SOLVED] Machine Learning Mini 1

25.00 $

Category: Tags: , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Homework1-d9wcho.zip (2241.1 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

 

I.   Pen-and-paper [12v]

Given the following decision tree learnt from 20 observation using               Shannon entropy, with leaf annotations (#correct/#total)

  • [4v] Draw the training confusion matrix.
  • [3v] Identify the training F1 after a post-pruning of the given tree under a maximum depth of 1.
  • [2v] Identify two different reasons as to why the left tree path was not further decomposed.
  • [3v] Compute the information gain of variable y1.

II.  Programming [8v]

Considering the pd_speech.arff dataset available at the homework tab:

  • [6v] Using sklearn, apply a stratified 70-30 training-testing split with a fixed seed

(random_state=1), and assess in a single plot the training and testing accuracies of a decision tree with no depth limits (and remaining default behavior) for a varying number of selected features in {5,10,40,100,250,700}. Feature selection should be performed before decision tree learning considering the discriminative power of the input variables according to mutual information criterion (mutual_info_classif).

  • [2v] Why training accuracy is persistently 1? Critically analyze the gathered results.

 

 

  • Homework1-d9wcho.zip