Free Online Flashcard Deck

3 Training and Testing Free Online FlashCards

Study 3 Training and Testing with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What is the training set used for?

Back

The training set is used to fit the model’s parameters from examples and their targets.

02
Front

In machine learning, what does “fit” mean?

Back

To fit means to use data to learn something, such as model parameters or a preprocessing transformation’s values.

03
Front

When does a feature cause leakage through prediction timing?

Back

A feature leaks information if it uses facts unavailable at prediction time, such as a later medical test result used to predict an earlier diagnosis.

04
Front

What is the validation set used for?

Back

The validation set helps compare models and choose settings, features, and other design choices during development.

05
Front

What is the test set used for?

Back

The test set provides a final estimate of performance on unseen data after development is complete.

06
Front

How should you choose the proportions of training, validation, and test sets?

Back

There is no universally correct proportion. Keep enough examples in each set for effective learning, useful comparisons, and reliable estimates.

07
Front

How can cross-validation help with a small dataset?

Back

Cross-validation trains on some folds and validates on the remaining fold, repeating the process to use development data efficiently.

08
Front

Which data should be used to fit learned preprocessing steps?

Back

Fit data-dependent preprocessing, such as a scaler or imputer, on training data only.

09
Front

How should a fitted preprocessing step be applied to held-out data?

Back

Apply the transformation learned from training data to validation and test data with transform; do not refit it on those sets.

10
Front

Why is it leakage to fit a scaler using test data?

Back

Using test examples to calculate a scaler’s values lets test information influence modeling, causing data leakage and potentially optimistic scores.

11
Front

How does a pipeline help prevent inconsistent preprocessing?

Back

A pipeline keeps preprocessing and model fitting together, helping steps be learned from training data and applied consistently to held-out examples.

12
Front

Why should you avoid tuning a model using repeated test-set results?

Back

Repeatedly adjusting a model based on test results makes the test set part of development and weakens its value as an independent estimate.