Free Practice Quiz Question List

3 Training and Testing Models Online Quiz Questions

Use this free practice quiz with 20 questions to review 3 Training and Testing Models, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

During supervised training, a model produces predictions for examples whose targets are known. What is the loss function's role?

  1. A

    It adjusts the model's parameters to reduce prediction error.

  2. B

    It measures how far predictions are from known targets.

  3. C

    It applies learned parameters to new input data.

  4. D

    It guarantees that each prediction is correct.

02
True or false
1 point

A trained home-price model receives the size of a new home and produces a price estimate. This is inference, and it does not ordinarily update the model's parameters.

  1. A

    True

  2. B

    False

03
Choose one
1 point

What do we call the output a model produces for a particular input?

  1. A

    A target

  2. B

    A parameter

  3. C

    A prediction

  4. D

    A loss function

04
Choose all
1 point

A supervised-learning dataset is being prepared to predict home sale prices. Select all statements that correctly describe the examples.

  1. A

    A home's characteristics can serve as input features.

  2. B

    A home's characteristics are the target sale price.

  3. C

    The known sale price can serve as the target.

  4. D

    A supervised example must omit its target.

05
True or false
1 point

A training process may repeat over examples or batches for multiple passes, stopping according to a chosen rule.

  1. A

    True

  2. B

    False

06
Fill in the blank
1 point

During training, a measures how far predictions are from targets, while an adjusts parameters to reduce that measure.

07
Choose one
1 point

In scikit-learn, an estimator has already been fitted. Which operation should be used to obtain its prediction for a new input without training it again?

  1. A

    Use fit on every new input to obtain a prediction.

  2. B

    Use predict to change the estimator's parameters.

  3. C

    Use fit to measure the prediction for a new input.

  4. D

    Use predict with the fitted estimator to obtain an output.

08
Written response
1 point

A home-price model uses the formula predicted price=weight×size+bias\text{predicted price} = \text{weight} \times \text{size} + \text{bias}. If the weight is 22, the size is 33, and the bias is 55, what numerical value does the model predict?

09
Choose all
1 point

Which actions are part of a typical model-training process? Select all that apply.

  1. A

    Produce predictions for training examples.

  2. B

    Measure the predictions against known targets.

  3. C

    Apply learned parameters to new inputs without changing them.

  4. D

    Adjust parameters to reduce the measured loss.

10
Choose one
1 point

What makes up a trained model after its parameter values have been learned?

  1. A

    Only the examples used during training

  2. B

    The learned parameter values together with the model's structure

  3. C

    Only the loss function and optimization method

  4. D

    The predictions made for the training examples

11
Written response
1 point

Enter the single term for the output a model produces for an input.

12
Open ended
1 point

An email classifier produces a spam score and then assigns the email a “spam” or “not spam” label. Explain how the score and label relate, and whether the model's result is guaranteed to be correct.

13
True or false
1 point

A machine-learning model's prediction is always guaranteed to be correct.

  1. A

    True

  2. B

    False

14
Choose one
1 point

A supervised-learning example contains a home’s characteristics and its known sale price. What role does the known sale price play?

  1. A

    It is an input feature used to describe the home.

  2. B

    It is the target the model learns to predict from the home’s features.

  3. C

    It is a parameter that the model adjusts during training.

  4. D

    It is the loss function used to measure prediction error.

15
Choose one
1 point

During training, a model’s predictions differ from known targets. Which description correctly distinguishes the roles of the loss function and the optimization method?

  1. A

    The optimization method measures prediction error, and the loss function changes the parameters.

  2. B

    The loss function produces predictions, and the optimization method supplies the known targets.

  3. C

    The loss function measures how far predictions are from targets, and the optimization method adjusts parameters to reduce that difference.

  4. D

    The loss function selects new input features, and the optimization method decides the model’s output type.

16
Choose one
1 point

A fitted home-price model receives the size of a new home and returns a price estimate. The model’s parameters are not changed. What is the model doing?

  1. A

    It is training because every new input automatically changes the model’s parameters.

  2. B

    It is inference because the trained model applies its learned parameters to produce an output.

  3. C

    It is training because the model must first compare the new input with a known target.

  4. D

    It is neither training nor inference because the input has not yet been assigned a class.

17
Written response
1 point

In the model expression predicted price=weight×size+bias\text{predicted price} = \text{weight} \times \text{size} + \text{bias}, what is the name of the parameter that multiplies size?

18
Written response
1 point

A home-price model uses predicted price=weight×size+bias\text{predicted price} = \text{weight} \times \text{size} + \text{bias}. For a home with size 66, weight 2.52.5, and bias 44, what value does the model predict?

19
Choose one
1 point

In scikit-learn, which pairing correctly describes the operations used to train an estimator and then obtain its predictions?

  1. A

    fit trains the estimator; predict obtains outputs from the fitted estimator.

  2. B

    predict trains the estimator; fit obtains outputs from it.

  3. C

    Both fit and predict train the estimator, but on different inputs.

  4. D

    fit measures the loss; predict adjusts the parameters to reduce it.

20
Fill in the blank
1 point

A home-price model receives the size of a new home and predicts its price. The sale price is not yet known, and the input is used only to make a prediction. It is not yet a .