Search Header Logo

Review Weeks 1-3

Authored by Emily Anne

Computers

University

Used 3+ times

Review Weeks 1-3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

58 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the purpose of splitting the dataset into training and testing sets? (Choose 2)

To test how well the model generalizes

To evaluate the model on unseen data

To improve training speed

To split the features from the target

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to split a dataset into training and testing sets in scikit-learn?

train_test_split()

split_train_test()

train_test()

split()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What parameter in train_test_split() controls the ratio of the test set size?

test_size

test_ratio

split_ratio

test_split

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data does the predict() method return in most ML models?

Raw data

Predictions for target variables

Evaluation metrics

Training errors

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In classification tasks, what does predict_proba() return?

Class labels

Class probabilities

Predictions with errors

Confusion matrix

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the fit() method do in a machine learning model?

Evaluates the model on the test data

Prepares the data for testing

Trains the model using training data

Makes predictions

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of feature scaling in machine learning?

To normalize target variables

To improve model interpretability

To ensure features are on the same scale

To remove outliers

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?