All Coursera Quiz Answers

Applied Machine Learning in Python Module 4 Quiz Answer

Hello Friends in this article i am gone to share Applied Machine Learning in Python Coursera Module 4 Quiz Answers with you..

Applied Machine Learning in Python Quiz Answer


Also visit this link:ย  Applied Machine Learning in Python Module 3 Quiz Answer


 

Module 4 Quiz Answer

Question 1) Which of the following is an example of clustering?

  • Separate the data into distinct groups by similarity
  • Creating a new representation of the data with fewer features
  • Compress elongated clouds of data into more spherical representations
  • Accumulate data into groups based on labels

ย 

Question 2) Which of the following are advantages to using decision trees over other models? (Select all that apply)

  • Decision trees can learn complex statistical models using a variety of kernel functions
  • Trees are naturally resistant to overfitting
  • Trees often require less preprocessing of data
  • Trees are easy to interpret and visualize

 

Question 3) What is the main reason that each tree of a random forest only looks at a random subset of the features when building each node?

  • To increase interpretability of the model
  • To improve generalization by reducing correlation among the trees and making the model more robust to bias.
  • To reduce the computational complexity associated withย 
  • training each of the trees needed for the random forest.
  • To learn which features are not strong predictors

 

Question 4) Which of the following supervised machine learning methods are greatly affected by feature scaling? (Select all that apply)

  • Neural Networks
  • KNN
  • Decision Trees
  • Support Vector Machines
  • Naive Bayes

 

Question 5) Select which of the following statements are true.

  • For a model that wonโ€™t overfit a training set, Naive Bayes would be a better choice than a decision tree.
  • For having an audience interpret the fitted model, a support vector machine would be a better choice than a decision tree.
  • For a fitted model that doesnโ€™t take up a lot of memory, KNN would be a better choice than logistic regression.
  • For predicting future sales of a clothing line, Linear regression would be a better choice than a decision tree regressor.
Question 6) Match each of the prediction probabilities decision boundaries visualized below with the model that created them.
Applied Machine Learning in Python Module 4 Quiz Answer

1. KNN (k=1)
2. Decision Tree
3. Neural Network

1. KNN (k=1)
2. Neural Network
3. Decision Tree

1. Neural Network
2. Decision Tree
3. KNN (k=1)

 

1. Neural Network
2. KNN (k=1)
3. Decision Tree

 

Question 7) A decision tree of depth 2 is visualized below. Using the `value` attribute of each leaf, find the accuracy score for the tree of depth </b >2 and the accuracy score for a tree of depth 1.

Applied Machine Learning in Python Module 4 Quiz Answer

What is the improvement in accuracy between the model of depth 1 and the model of depth 2?</b >

  • 0.06745
Question 8) For the autograded assignment in this module, you will create a classifier to predict whether a given blight ticket will be paid on time (See the module 4 assignment notebook for a more detailed description). Which of the following features should be removed from the training of the model to prevent data leakage? (Select all that apply)
  • grafitti_status – Flag for graffiti violations
  • collection_status – Flag for payments in collectionsย 
  • compliance_detail – More information on why each ticket was marked compliant or non-compliant
  • ticket_issued_date – Date and time the ticket was issuedย 
  • agency_name – Agency that issued the ticket
Question 9) Which of the following might be good ways to help prevent a data leakage situation?
  • If time is a factor, remove any data related to the event of interest that doesnโ€™t take place prior to the event.
  • Ensure that data is preprocessed outside of any cross validation folds.
  • Remove variables that a model in production wouldnโ€™t have access to
  • Sanity check the model with an unseen validation set
Question 10) Given the neural network below, find the correct outputs for the given values of x1 and x2.
ย 
The neurons that are shaded have an activation threshold, e.g. the neuron with >1? will be activated and output 1 if the input is greater than 1 and will output 0 otherwise.
Applied Machine Learning in Python Module 4 Quiz Answer
Answer:
Applied Machine Learning in Python Module 4 Quiz Answer