0% found this document useful (0 votes)
1 views4 pages

Extract pages from 1 ML

The document outlines a series of assignments related to machine learning concepts, including unsupervised learning, reinforcement learning, regression tasks, and classification tasks. It provides questions with accepted answers and scores for each question, indicating the correctness of the responses. The document also discusses concepts like bias and variance in model performance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views4 pages

Extract pages from 1 ML

The document outlines a series of assignments related to machine learning concepts, including unsupervised learning, reinforcement learning, regression tasks, and classification tasks. It provides questions with accepted answers and scores for each question, indicating the correctness of the responses. The document also discusses concepts like bias and variance in model performance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

…Week 1 : Assignment 1

1) Which of the following is/are unsupervised learning problem(s)? 1 point

Sorting a set of news articles into four categories based on their titles
Forecasting the stock price of a given company based on historical data
Predicting the type of interaction (positive/negative) between a new drug and a set of human
proteins
Identifying close-knit communities of people in a social network
Learning to generate artificial human faces using the faces from a facial recognition dataset

No, the answer is incorrect.


Score: 0
Accepted Answers:
Identifying close-knit communities of people in a social network
Learning to generate artificial human faces using the faces from a facial recognition dataset

2) Which of the following statement(s) about Reinforcement Learning (RL) is/are true? 1 point

While learning a policy, the goal is to maximize the reward for the current time step
During training, the agent is explicitly provided the most optimal action to be taken in each
state.
The actions taken by an agent do no affect the environment in any way.
RL agents used for playing turn based games like chess can be trained by playing the agent
against itself (self play).
RL can be used in a autonomous driving system.

Yes, the answer is correct.


Score: 1
Accepted Answers:
RL agents used for playing turn based games like chess can be trained by playing the agent
against itself (self play).
RL can be used in a autonomous driving system.

3) Which of the following is/are regression tasks(s)? 1 point

Predicting whether an email is spam or not spam


Predicting the number of new CoVID cases in a given time period
Predicting the total number of goals a given football team scores in an year
Identifying the language used in a given text document

Yes, the answer is correct.

1 of 4 21-Apr-25, 9:53 AM
Firefox https://onlinecourses.nptel.ac.in/noc25_cs46/unit?unit=22&assessment=306

Score: 1
Accepted Answers:
Predicting the number of new CoVID cases in a given time period
Predicting the total number of goals a given football team scores in an year

4) Which of the following is/are classification task(s)? 1 point

Predicting whether or not a customer will repay a loan based on their credit history
Forecasting the weather (temperature, humidity, rainfall etc.) at a given place for the
following 24 hours
Predict the price of a house 10 years after it is constructed.
Predict if a house will be standing 50 years after it is constructed.

Yes, the answer is correct.


Score: 1
Accepted Answers:
Predicting whether or not a customer will repay a loan based on their credit history
Predict if a house will be standing 50 years after it is constructed.

5) Consider the following dataset. Fit a linear regression model of the form 1 point
using the mean-squared error loss. Using this model, the predicted value
of at the point ( ) = (0.5, −1.0) is

4.05
2.05
−1.95
−3.95

Yes, the answer is correct.


Score: 1
Accepted Answers:
4.05

6) Consider the following dataset. Using a k-nearest neighbour (k-NN) regression model 1 point
with = 3, predict the value of at ( ) = (1.0, 0.5). Use the Euclidean distance to find the
nearest neighbours.

2 of 4
Firefox

−1.766
−1.166
1.133
1.733

Yes, the answer is correct.


Score: 1
Accepted Answers:
1.733

7) Consider the following dataset with three classes: 0, 1 and 2. x1 and x2 are the 1 point
independent variables whereas y is the class label. Using a k-NN classifier with k = 5, predict the
class label at the point ( ) = (1.0, 1.0). Use the Euclidean distance to find the nearest
neighbours.

0 ## KNN is supervised learning can be used in both regression and classification


1
2
Cannot be predicted

Yes, the answer is correct.


Score: 1
Accepted Answers:
1

8) Consider the following statements regarding linear regression and k-NN regression 1 point
models. Select the true statements.

A linear regressor requires the training data points during inference.


A k-NN regressor requires the training data points during inference.
A k-NN regressor with a higher value of k is less prone to overfitting.
A linear regressor partitions the input space into multiple regions such that the prediction
over a given region is constant.

Yes, the answer is correct.


Score: 1
Accepted Answers:
A k-NN regressor requires the training data points during inference.
A k-NN regressor with a higher value of k is less prone to overfitting.

9) Which of the following statement(s) regarding bias and variance is/are correct? 1 point

3 of 4 21-Apr-25, 9:53 AM
Firefox https://onlinecourses.nptel.ac.in/noc25_cs46/unit?unit=22&assessment=306

Low bias and high variance is a sign of overfitting


Low variance and high bias is a sign of overfitting
Low variance and high bias is a sign of underfitting

Partially Correct.
Score: 0.67
Accepted Answers:

Low bias and high variance is a sign of overfitting


Low variance and high bias is a sign of underfitting

10) Suppose that we train two kinds of regression models corresponding to the following 1 point
equations.
(i).
(ii).

Which of the following statement(s) is/are correct?

On a given training dataset, the mean-squared error of (i) is always less than or equal to that
of (ii).
(i) is likely to have a higher variance than (ii).
(ii) is likely to have a higher variance than (i).
If (i) overfits the data, then (ii) will definitely overfit.
If (ii) underfits the data, then (i) will definitely underfit.

Partially Correct.
Score: 0.67
Accepted Answers:
(ii) is likely to have a higher variance than (i).
If (i) overfits the data, then (ii) will definitely overfit.
If (ii) underfits the data, then (i) will definitely underfit.

4 of 4 21-Apr-25, 9:53 AM

You might also like