Get All Weeks Machine Learning Foundations: A Case Study Approach Quiz Answers
Table of Contents
Week 1: Machine Learning Foundations: A Case Study Approach Quiz Answer
Quiz 1: S Frames
Q 1:Download the Wiki People SFrame. Then open a new Jupyter notebook, import TuriCreate, and read the SFrame data.
Answer: Click here
Q 2: How many rows are in the SFrame? (Do NOT use commas or periods.)
ViewQ 3: Which name is in the last row?
ViewQ 4: Read the text column for Harpdog Brown. He was honored with:
ViewQ 5: Sort the SFrame according to the text column, in ascending order. What is the name entry in the first row?
ViewWeek 2: Machine Learning Foundations: A Case Study Approach Quiz Answer
Quiz 1: Regression
Q 2: True or false: The model that best minimizes training error is the one that will perform best for the task of prediction on new data.
ViewQ 3: The following table illustrates the results of evaluating 4 models with different parameter choices on some data set. Which of the following models fits this data the best?
Model index | Parameters (intercept, slope) | Residual sum of squares (RSS) |
1 | (0,1.4) | 20.51 |
2 | (3.1,1.4) | 15.23 |
3 | (2.7, 1.9) | 13.67 |
4 | (0, 2.3) | 18.99 |
2.Model 2
3.Model 4
Q 4: Assume we fit the following quadratic function: f(x) = w0+w1*x+w2*(x^2) to the dataset shown (blue circles). The fitted function is shown by the green curve in the picture below. Out of the 3 parameters of the fitted function (w0, w1, w2), which ones are estimated to be 0? (Note: you must select all parameters estimated as 0 to get the question correct.)<!– wp:shortcode –> View
Q 5: Assume we fit the following quadratic function: f(x) = w0+w1*x+w2*(x^2) to the dataset shown (blue circles). The fitted function is shown by the green curve in the picture below. Out of the 3 parameters of the fitted function (w0, w1, w2), which ones are estimated to be 0? (Note: you must select all parameters estimated as 0 to get the question correct.)
View2.w0
Q 6: Assume we fit the following quadratic function: f(x) = w0+w1*x+w2*(x^2) to the dataset shown (blue circles). The fitted function is shown by the green curve in the picture below. Out of the 3 parameters of the fitted function (w0, w1, w2), which ones are estimated to be 0? (Note: you must select all parameters estimated as 0 to get the question correct.)
Vieww1
w2
none of the above
Q 7: Assume we fit the following quadratic function: f(x) = w0+w1*x+w2*(x^2) to the dataset shown (blue circles). The fitted function is shown by the green curve in the picture below. Out of the 3 parameters of the fitted function (w0, w1, w2), which ones are estimated to be 0? (Note: you must select all parameters estimated as 0 to get the question correct.)
ViewQ 8: Which of the following plots would you not expect to see as a plot of training and test error curves?
Answer:
Q 9: True or false: One always prefers to use a model with more features since it better captures the true underlying process.
ViewQuiz 2: Predicting house prices
Q 1: Selection and summary statistics: We found the zip code with the highest average house price. What is the average house price of that zip code?
ViewQ 2: Filtering data: What fraction of the houses have living space between 2000 sq.ft. and 4000 sq.ft.?
ViewQ 3: Building a regression model with several more features: What is the difference in RMSE between the model trained with my_features and the one trained with advanced_features?
ViewWeek 3: Machine Learning Foundations: A Case Study Approach Quiz Answer
Quiz 1: Classification
Q 1: The simple threshold classifier for sentiment analysis described in the video (check all that apply):
ViewQ 2: For a linear classifier classifying between “positive” and “negative” sentiment in a review x, Score(x) = 0 implies (check all that apply):
ViewQ 3: For which of the following datasets would a linear classifier perform perfectly?
Answer:
Q 4: True or false: High classification accuracy always indicates a good classifier.
ViewQ 5: True or false: For a classifier classifying between 5 classes, there always exists a classifier with an accuracy greater than 0.18.
ViewQ 6: True or false: A false negative is always worse than a false positive.
ViewQ 7: Which of the following statements are true? (Check all that apply)
View2.Test error tends to decrease with more training data until a point, and then does not change (i.e., curve flattens out)
Quiz 2: Analyzing product sentiment
Q 1: Out of the 11 words in selected_words, which one is most used in the reviews in the dataset?
ViewQ 2: Out of the 11 words in selected_words, which one is least used in the reviews in the dataset?
ViewQ 3: Out of the 11 words in selected_words, which one got the most positive weight in the selected_words_model?
(Tip: when printing the list of coefficients, make sure to use print_rows(rows=12) to print ALL coefficients.)
ViewQuestion 4: Out of the 11 words in selected_words, which one got the most negative weight in the selected_words_model?
(Tip: when printing the list of coefficients, make sure to use print_rows(rows=12) to print ALL coefficients.)
ViewQ 5: Which of the following ranges contains the accuracy of the selected_words_model on the test_data?
ViewQ 6: Which of the following ranges contains the accuracy of the sentiment_model in the IPython Notebook from lecture on the test_data?
ViewQ 7: Which of the following ranges contains the accuracy of the majority class classifier, which simply predicts the majority class on the test_data?
ViewQ 8: How do you compare the different learned models with the baseline approach where we are just predicting the majority class?
View
Q 9: Which of the following ranges contains the ‘predicted_sentiment’ for the most positive review for ‘Baby Trend Diaper Champ’, according to the sentiment_model from the IPython Notebook from lecture?
ViewQ 10: Consider the most positive review for ‘Baby Trend Diaper Champ’ according to the sentiment_model from the IPython Notebook from lecture. Which of the following ranges contains the predicted_sentiment for this review, if we use the selected_words_model to analyze it?
ViewQ 11: Why is the value of the predicted_sentiment for the most positive review found using the sentiment_model much more positive than the value predicted using the selected_words_model?
ViewWeek 4: Machine Learning Foundations: A Case Study Approach Quiz Answer
Quiz 1: Clustering and Similarity
Q 1:A country, called Simpleland, has a language with a small vocabulary of just “the”, “on”, “and”, “go”, “round”, “bus”, and “wheels”. For a word count vector with indices ordered as the words appear above, what is the word count vector for a document that simply says “the wheels on the bus go round and round.”
Please enter the vector of counts as follows: If the counts were [“the”=1, “on”=3, “and”=2, “go”=1, “round”=2, “bus”=1, “wheels”=1], enter 1321211.
ViewQuestion 2: In Simpleland, a reader is enjoying a document with a representation: [1 3 2 1 2 1 1]. Which of the following articles would you recommend to this reader next?
ViewQuestion 3: A corpus in Simpleland has 99 articles. If you pick one article and perform a 1-nearest neighbor search to find the closest article to this query article, how many times must you compute the similarity between two articles?
ViewQuestion 4: For the TF-IDF representation, does the relative importance of words in a document depend on the base of the logarithm used? For example, take the words “bus” and “wheels” in a particular document. Is the ratio between the TF-IDF values for “bus” and “wheels” different when computed using log base 2 versus log base 10?
ViewQuestion 5:Which of the following statements are true? (Check all that apply):
View2.If we are performing clustering, we typically assume we either do not have or do not use class labels in training the model.
Question 6: Which of the following pictures represents the best k-means solution? (Squares represent observations, plus signs are cluster centers, and colors indicate assignments of observations to cluster centers.)
Answer
Quiz 2: Retrieving Wikipedia articles
Q 1: Top word count words for Elton John
ViewQuestion 2: Top TF-IDF words for Elton John
ViewQuestion 3: The cosine distance between ‘Elton John’s and ‘Victoria Beckham’s articles (represented with TF-IDF) falls within which range?
ViewQuestion 4: The cosine distance between ‘Elton John’s and ‘Paul McCartney’s articles (represented with TF-IDF) falls within which range?
ViewQuestion 5: Who is closer to ‘Elton John’, ‘Victoria Beckham’ or ‘Paul McCartney’?
ViewQuestion 6: Who is the nearest cosine-distance neighbor to ‘Elton John’ using raw word counts?
ViewQuestion 7: Who is the nearest cosine-distance neighbor to ‘Elton John’ using TF-IDF?
ViewQuestion 8: Who is the nearest cosine-distance neighbor to ‘Victoria Beckham’ using raw word counts?
ViewQuestion 9: Who is the nearest cosine-distance neighbor to ‘Victoria Beckham’ using TF-IDF?
ViewWeek 5: Machine Learning Foundations: A Case Study Approach Quiz Answer
Quiz 1: Recommender Systems
Q1: Recommending items based on global popularity can (check all that apply):
ViewQuestion 2: Recommending items using a classification approach can (check all that apply):
ViewQuestion 3:Recommending items using a simple count-based co-occurrence matrix can (check all that apply):
ViewQuestion 4:Recommending items using featured matrix factorization can (check all that apply):
ViewQuestion 5:Normalizing co-occurrence matrices is used primarily to account for:
ViewQuestion 6: A store has 3 customers and 3 products. Below are the learned feature vectors for each user and product. Based on this estimated model, which product would you recommend most highly to User #2?
User ID | Feature vector |
1 | (1.73, 0.01, 5.22) |
2 | (0.03, 4.41, 2.05) |
3 | (1.13, 0.89, 3.76) |
Product ID | Feature vector |
1 | (3.29, 3.44, 3.67) |
2 | (0.82, 9.71, 3.88) |
3 | (8.34, 1.72, 0.02) |
Question 7: For the liked and recommended items displayed below, calculate the recall and round to 2 decimal points. (As in the lesson, green squares indicate recommended items, and magenta squares are liked items. Items not recommended are grayed out for clarity.) Note: enter your answer in American decimal format (e.g. enter 0.98, not 0,98)
ViewQuestion 8: For the liked and recommended items displayed below, calculate the precision and round to 2 decimal points. (As in the lesson, green squares indicate recommended items, and magenta squares are liked items. Items not recommended are grayed out for clarity.) Note: enter your answer in American decimal format (e.g. enter 0.98, not 0,98)
ViewQuestion 9: Based on the precision-recall curves in the figure below, which recommender would you use?
ViewQuiz 2: Recommending songs
Question 1: Which of the artists below have had the most unique users listening to their songs?
ViewQuestion 2: Which of the artists below is the most popular artist, the one with the highest total listen_count, in the data set?
ViewQuestion 3: Which of the artists below is the least popular artist, the one with the smallest total listen_count, in the data set?
ViewWeek 6: Machine Learning Foundations: A Case Study Approach Quiz Answer
Quiz 1: Deep Learning
Question 1: Which of the following statements are true? (Check all that apply)
ViewQuestion 2: A simple linear classifier can represent which of the following functions? (Check all that apply)
Viewx1 AND x2 AND NOT x3
x1 OR (x2 AND NOT x3)
Question 3: Which of the following neural networks can represent the following function? Select all that apply.
(x1 AND x2) OR (NOT x1 AND NOT x2)
Answer:
Question 4: Which of the following statements is true? (Check all that apply)
ViewQuestion 5: If you have lots of images of different types of plankton labeled with their species name and lots of computational resources, what would you expect to perform better predictions:
ViewQuestion 6: If you have a few images of different types of plankton labeled with their species name, what would you expect to perform better predictions:
ViewQuiz 2: Deep features for image retrieval
Question 1: What’s the least common category in the training data?
ViewQuestion 2: Of the images below, which is the nearest ‘cat’ labeled image in the training data to the first image in the test data (image_test[0:1])?
Answer:
Question 3: Of the images below, which is the nearest ‘dog’ labeled image in the training data to the the first image in the test data (image_test[0:1])?
Answer:
Question 4: :For the first image in the test data, in what range is the mean distance between this image and its 5 nearest neighbors that were labeled ‘cat’ in the training data?
ViewQuestion 5: For the first image in the test data, in what range is the mean distance between this image and its 5 nearest neighbors that were labeled ‘dog’ in the training data?
ViewQuestion 6: On average, is the first image in the test data closer to its 5 nearest neighbors in the ‘cat’ data or in the ‘dog’ data?
ViewQuestion 7: In what range is the accuracy of the 1-nearest neighbor classifier at classifying ‘dog’ images from the test set?
ViewMachine Learning Foundations: A Case Study Approach Course Review
In our experience, we suggest you enroll in Machine Learning Foundations: A Case Study Approach courses and gain some new skills from Professionals completely free and we assure you will be worth it.
Machine Learning Foundations: A Case Study Approach for free, if you are stuck anywhere between a quiz or a graded assessment quiz, just visit Networking Funda to Machine Learning Foundations: A Case Study Approach Quiz Answers.
Get All Course Quiz Answers of Machine Learning Specialization
Machine Learning Foundations: A Case Study Approach Quiz Answer
Machine Learning: Regression Coursera Quiz Answers
Machine Learning: Classification Coursera Quiz Answers
Machine Learning: Clustering & Retrieval Quiz Answers