Search Header Logo
Model Training

Model Training

Assessment

Presentation

Information Technology (IT)

University

Practice Problem

Hard

Created by

Thomas School

Used 2+ times

FREE Resource

11 Slides • 22 Questions

1

media
media

2

media

3

media

4

Multiple Choice

What's the first step of model training?

1
Hyperparameter tuning
2

Loading the data

3
Model evaluation and testing
4
Algorithm selection and implementation

5

media

6

Drag and Drop

Put in correct order

Drag these tiles and drop them in the correct blank above
import
pandas
as
pd

7

Drag and Drop

Put in correct order

​ ​
Drag these tiles and drop them in the correct blank above
houses =
pd.read_csv
("houses.csv")
(houses.csv)

8

media

9

Multiple Choice

What's the purpose of data exploration?

1
To visualize data in a graphical format for presentations.
2
To clean the data by removing all outliers and errors.
3
To store data in a database for future retrieval and analysis.
4

To understand the data's structure, patterns and problems.

10

media

11

Multiple Choice

Why do we need to encode categorical data?

1

We need to encode categorical data becayse machine learning needs numbers.

2
We need to encode categorical data to simplify the data entry process.
3
We need to encode categorical data to enhance the quality of textual data.
4
We need to encode categorical data to improve data visualization techniques.

12

Multiple Choice

Which of the following columns in the houses dataset are categorical variables?

1

bedrooms, area_m2

2

district, apt_floor

3

year_built, total_floors

4

price, bathrooms

13

Multiple Choice

Which step in the model training process involves converting categorical variables into numerical format?

1

Load the data

2

Data exploration

3

Data encoding

4

Train the model

14

media

15

Multiple Choice

What do we import from sklearn to divide our data?

1
from sklearn.model_selection import train_test_split
2
from sklearn.preprocessing import train_test
3
from sklearn.model_selection import data_split
4
from sklearn.data import split_data

16

Fill in the Blanks

17

Multiple Choice

What's in variable y?

1

Prediction

2

Target

3
Zero
4

Features

18

Multiple Choice

What's in variable X?

1

Prediction

2

Target

3
Zero
4

Features

19

Multiple Select

What doest test_size = 0.2 mean?

1
test_size = 0.2 means 2% of the data is used for validation.
2
test_size = 0.2 indicates 20% of the data is ignored during training.
3

test_size = 0.2 means that 80% of the data is for training purposes.

4

test_size = 0.2 means 20% of the data is for testing.

20

media

21

Multiple Choice

How to train the model?

1

model.train()

2

model.fit()

3

model.predict()

4

model.AI()

22

Multiple Choice

Question image

Which variables do we train the model on?

1

X_test, y_test

2

X_train, y_train

3

X, y

4

Train, test

23

Multiple Choice

After training the model, which step should be performed next according to the model training steps?

1

Make predictions

2

Evaluate the model

3

Load the data

4

Data encoding

24

media

25

Multiple Choice

How do we make predictions?

1

model.predict()

2

model.pred()

3

model.fit()

4

model.answer()

26

Multiple Choice

Which variable do we use for prediction?

1

y_train

2

y_test

3

X_train

4

X_test

27

Multiple Choice

Why do we use X_test for predictions?

1
We use X_test to visualize the training process.
2
We use X_test to train the model on existing data.
3
We use X_test to improve the model's accuracy on training data.
4

We use X_test for predictions to see model performance on new, unseen data.

28

Multiple Choice

Which Python function is used to make predictions on the test set in a machine learning model?

1

model.fit(X_test)

2

model.evaluate(X_test)

3

model.predict(X_test)

4

model.score(X_test)

29

media

It means: On average, our prediction is wrong by 191万.

30

Multiple Choice

Why do we use both y_test and y_pred when evaluating the model?

1
y_pred is used to compare predictions from different models.
2
We use y_test to adjust the model's parameters during training.
3
y_test helps in selecting the best features for the model.
4

We use y_test to compare the model's predictions (y_pred) to real data.

31

Multiple Choice

The bigger MAEMAE the better the model.

1

True

2

False

32

media

33

Multiple Select

Question image

What's the meaning of this read line?

1

predicted price = actual price

2

x = y

3

the model is good

4

the model is bad

media
media

Show answer

Auto Play

Slide 1 / 33

SLIDE