wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Last Quiz

Total questions: 35

Worksheet time: 35mins

Name
Class
Date
1.

what is output :

import numpy
speed = [99,86,87,88,111,86,103,87,94,78,77,85,86]
x = numpy.mean(speed) print(x)

y = numpy.median(speed) print(y)

z = stats.mode(speed) print(z)

(a)  

2.

Regression is

a)

Supervised

b)

un Supervised

c)

rain forsment

3.

Logistic Regression is

a)

Regression

b)

Classification

4.

Regression data is

a)

continuous data

b)

category data

5.

Classification data is

a)

continuous data

b)

category data

6.

when learning rate almost to zero

in gradient descent Equation ??

a)

Maximum iterations

b)

Minimum iterations

7.

Machine learning models should work automatically without the need for the

user to manually set the hyperparameters.


a)

True

b)

False

8.

While training your regression model using Gradient Decent, you noticed that the

value of loss increases with epochs, this behavior can be due to high learning

rate.

a)

True

b)

False

9.

Cleaning Empty Cells which function we use ?

a)

df.dropna()

b)

df.fillna(130, inplace = True)

c)

df.loc[7, 'Duration'] = 45

d)

A & B

e)

Non of them

10.

Removing Duplicates which function we use ?

a)

df.dropna()

b)

df.fillna(130, inplace = True)

c)

df.loc[7, 'Duration'] = 45

d)

A & B

e)

NON of them

11.

Draw: underfitting regression

12.

Draw: overfitting regression

13.

Draw: Liner regression

14.

Draw: Multiple regression

15.

Draw : Polynomial regression

16.

which Equation is polynomial regreesion

a)

y=Ax+B

b)

y=Ax1+Bx2+c

c)

y=Ax1+Bx2^2+c

d)

e ^ -x

17.

Stochastic Gradient Descent (SGD) needs to go through the individual data

samples to update the model parameters.

a)

True

b)

False

18.

While training your regression model using Gradient Decent, you noticed that the

value of loss increases with epochs, this behavior can be due to high learning

rate.


a)

True

b)

False

19.

If you would run 5-fold cross validation on a dataset of 1000 examples, you will

need (a)   examples for the validation set in each run.


20.

Mention reasons for overfitting ??

a)

increase the model complexity (order of the hypothesis function)

b)

Increase number of used features

c)

Use small training dataset

d)

B&C

e)

all of them

21.

Ridge regression ?? && Lasso regression ??

a)

L2 , L1

b)

L1 , L2

22.

The ... problem occurs when the model performs well in the training set, but badly in the test set.

(a)  

23.

The learning rate is (a)  

24.

The mean square error function is used to solve the ....... problem.

a)

Regression

b)

Classification

c)

A&B

d)

Non of them

25.

(a)   learning is an area of machine learning concerned with how agents ought to take actions

in an environment to maximize some notion of cumulative reward.

26.

(a)   algorithm is used to reduce the loss function

27.

The output range of sigmoid activation function ??

a)

[-1,1]

b)

[0,1]

c)

nothing of them

28.

The output range of SVM function ??

a)

[-1,1]

b)

[0,1]

c)

nothing of them

29.

The output range of tradtional activation function ??

a)

[-1,1]

b)

[0,1]

c)

nothing of them

30.

The goal of Regularization is reduce ...... error

a)

generalization

b)

Validation

c)

training

31.

(a)   is a method for solving for the regression model parameters analytically.

32.

If you would run 10-fold cross validation on a dataset of 100 examples, how many

examples you will need for the training set in each run?




(a)  

33.

In Stochastic Gradient Descent used for optimizing your regression model, the model's

parameters would be updated after ..... training examples.

a)

one

b)

m

c)

all

34.

You observe the following while fitting a linear regression to the data; As you

increase the model complexity, the test error increases and the training error

decreases. What do you think is the main reason behind this behavior?

(a)  

35.

Which of the following statement(s) is/are true for batch Gradient Decent (GD)?

1) You update a set of parameters in an iterative manner to maximize the error

function.

2) You have not to run through all the samples in your training set for a single update

of a parameter in each iteration.

a)

Only 1

b)

Only 2

c)

1 & 2

d)

Both is error