wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MAchine-learning-2

Total questions: 20

Worksheet time: 13mins

Name
Class
Date
1.

Increasing λ (lambda) in Ridge Regression will

a)

A) Increase coefficient magnitudes

b)

B) Shrink coefficients toward zero

c)

C) Make coefficients exactly zero

d)

D) Have no effect

2.

Learning rate too high in GD may cause:

a)

A) Slow convergence

b)

B) Oscillation around minimum

c)

C) Perfect convergence

d)

D) No change

3.
  1. One step of gradient descent with MSE loss involves updating:

a)
  1. A) Only bias

b)
  1. B) Only weights

c)
  1. C) Both weights and bias

d)
  1. D) Only λ

4.

  1. High bias leads to: underfitting or overfitting?



(a)  

5.

R² can never be:

a)

A) 1

b)

B) 0

c)

C) -0.5

d)

D) 0.7

6.

Spam email detection is an example of:

a)

A) Regression

b)

B) Classification

c)

C) Clustering

d)

D) Dimensionality reduction

7.

Grouping customers based on buying behavior without predefined categories is:

a)

A) Regression

b)

B) Classification

c)

C) Clustering

d)

D) Association Rule Mining

8.

Answer (one step gradient Descent step with MAE):
Given y={(0,1),(1,3),(2,5)} m=0.5 b=0.5, α=0.05

a)

m=0.55 b=0.55

b)

m=0.55 b=0.45

c)

m=0.45 b=0.55

d)

m=0.45 b=0.45

9.

apply normalization on x={10,11,12,13,200} answer should include 4 decimal numbers

(a)  

10.

Polynomial regression is useful when:

a)

A) Data shows a linear trend

b)

B) Data shows a non-linear trend

c)

C) There is only one feature

d)

D) No features are correlated

11.
  1. Overfitting in polynomial regression usually occurs when:

a)
  1. A) The degree is too low

b)
  1. B) The degree is too high

c)
  1. C) Learning rate is high

d)
  1. D) Number of data points is very large

12.

Compute the slope m of the best-fit line using linear regression formula for x=[1,2,3],y=[2,4,6]

(a)  

13.

With one features (x1) and total polynomial degree M=6 (with all cross-terms, plus bias), how many coefficients are there?

(a)  

14.

A regression model has features x1​,x2​,x3​,x4​ and output y. Write the full linear model including bias, and indicate which symbols represent:

(a)  

15.

x=[0,1,2,3,4],y=[1,3,7,13,21]
Which regression model is more suitable?

a)
  • Linear

b)
  • Polynomial

16.

Training a self-driving car to navigate a track by maximizing score is an example of:

a)

A) Supervised Learning

b)

B) Unsupervised Learning

c)

C) Reinforcement Learning

d)

D) Semi-supervised Learning

17.

Linear regression can model non-linear data accurately if you apply a polynomial feature transformation. True/False

(a)  

18.

If the training error is low but test error is high in polynomial regression, the model is:

a)

A) Underfitting

b)

B) Overfitting

c)

C) Perfect fit

d)

D) Linear

19.

You have a dataset with many features, and you want feature selection while reducing overfitting. Which method is preferred?

a)

A) Lasso Regression

b)

B) Ridge Regression

c)

C) Linear Regression

d)

D) None

20.

You have a dataset where all features are somewhat important, and you want to reduce model complexity but not eliminate features. Which method is preferred?

a)

A) Lasso Regression

b)

B) Ridge Regression

c)

C) Linear Regression

d)

D) Elastic Net