Model training objectives, steps and techniques

Model training objectives, steps and techniques

Published September 28, 2026

Model training objectives, steps and techniques

On this page

Learning Outcome Statement

Describe objectives, steps, and techniques in model training.

On the exam: You get a model-training workflow, data-split roles, techniques, and observed performance. You describe the objective, make a selection decision, or diagnose behavior in a short explanation or multiple-choice question.

Think of training as a controlled rehearsal. The model learns patterns from data, but the training score alone cannot tell you how it will behave on new observations. The training objective is to optimize a loss on the training sample while preserving out-of-sample performance.

ComponentRule
Training dataFits parameters on observed outcomes
Validation dataSelects models or hyperparameters
Test dataEstimates final generalization
Cross-validationRotates validation folds within development data
RegularizationTrades fit for lower complexity

The development sample supports fitting and selection, while the final test set stays untouched until those decisions are finished so its loss can estimate final generalization. A lower loss is better, and cross-validation rotates validation folds within the development sample to make selection less dependent on a particular split without turning the final test set into a tuning set.

Reconstruct the sequence in a vignette from the deployment loss to the final estimate.

Loading diagram…

Use the following rule to show fitting and selection. Training loss, $L_{\mathrm{train}}$, measures forecast error on training data in the deployment unit. Validation loss, $L_{\mathrm{val}}$, measures that same loss on validation data. A parameter vector, $\theta$, contains values the fitting process can learn.

A candidate specification, $m$, includes its model form and hyperparameters. The candidate set is $\mathcal{M}$, and the selected specification is $\hat{m}$. The fitted parameters for candidate $m$ are $\hat{\theta}_m$. Regularization adds complexity measure $\Omega(\theta,m)$ weighted by penalty weight $\lambda$.

$$ \begin{aligned} \hat{\theta}m &= \operatorname{argmin}{\theta} \left[ L_{\mathrm{train}}(\theta,m) + \lambda \Omega(\theta,m) \right] \ \hat{m} &= \operatorname{argmin}{m \text{ in } \mathcal{M}} L{\mathrm{val}}(\hat{\theta}_m,m) \end{aligned} $$

Read the parameter line as a contest between values inside a candidate. Lower training loss pulls the fit toward observed data, while a larger $\lambda$ makes complexity more expensive. That trade can accept a worse in-sample score for lower model complexity and potentially better out-of-sample performance. The selection line chooses the candidate and its hyperparameters using validation loss, which must reflect the data and loss function expected at deployment.

When training performance improves while validation or test performance stalls or worsens, the widening gap signals overfitting. The model is learning quirks of the training sample that do not travel to new data.

Worked example

You are handed monthly account-return observations for an asset manager’s forecasting task. The team has set forecast-error loss as the deployment loss and has separated development data from a final test set. The exam asks which selection decision is defensible and what the final test loss means.

GivenDetail
FrequencyMonthly observations
TargetAccount return, percentage points
Deployment lossForecast-error loss
Development candidatesSimple and flexible specifications
Training resultFlexible specification has lower loss
Validation resultSimple specification has lower loss
Test statusUntouched

Read the two performance rows together: the flexible specification fits the training observations better, but the simple one performs better on validation data. That reversal is the useful evidence for selection, because validation represents new development observations under the chosen forecast-error loss. Keep the final test set outside this comparison; its untouched status preserves a later estimate of generalization.

  1. Use monthly account returns as the target and forecast error as the deployment loss. This fixes the observation frequency and scoring unit before you compare models. The output is a monthly account-return target measured in percentage points and a forecast-error loss value for each forecast.
  2. Fit each candidate specification on training data. This measures each model’s in-sample fit without using validation information to choose between them. The output is a training-loss number for each candidate, with the flexible specification showing the lower loss.
  3. Use validation data to select the specification and its hyperparameters. This compares out-of-sample development performance under the loss the team will deploy. The output is a validation-loss number for each candidate, with the simple specification showing the lower loss.
  4. Apply the selected specification to untouched test data only after selection is complete. This gives an unbiased final check because the test observations did not influence the choice. The output is the selected model’s test-performance number, which estimates final generalization and cannot be used to retune the model.

Select the simple specification and report its untouched test performance as the estimate of final generalization.

Changed condition

ConditionOriginal caseChanged case
Validation resultSimple specification favoredFlexible specification favored
Deployment lossForecast-error lossForecast-error loss
Test statusUntouchedUntouched

Predict the move before reading the result. The deployment loss and test boundary are unchanged, so the selection rule stays fixed. The changed validation direction now points to the flexible specification, while the test set still waits until selection is complete. Before reading on, state which data split remains untouched and why.

Common error

You may repeatedly use the test set to choose a model because its score appears to be the most objective. The choice feels right because the test set looks fresh, but each look makes it part of your model or hyperparameter selection. When a vignette says you viewed test performance before finalizing the selection, you have contaminated the test set, and the final test estimate is no longer independent.

Check yourself

Practice

A forecasting team trains candidate models on a development sample, reviews validation behavior, and reserves a final test set. Training performance favors a flexible specification, while validation performance favors a simple specification.

Question 1

Which statement best describes the training objective?

Question 2

Which assignment of data roles is correct?

Question 3

Which statement correctly describes cross-validation?

Question 4

What does regularization do?

Question 5

What behavior signals possible overfitting?

A portfolio forecast will be deployed with a loss that penalizes underprediction more heavily than overprediction. Validation scores are available under that deployment loss and under squared error. Which choice is best?

An analyst reviews test performance after each hyperparameter change. What is the best diagnosis?

Revision snapshot

The fitting rule below combines parameter fitting, complexity control, and validation selection.

$$ \begin{aligned} \hat{\theta}m &= \operatorname{argmin}{\theta} \left[ L_{\mathrm{train}}(\theta,m) + \lambda \Omega(\theta,m) \right] \ \hat{m} &= \operatorname{argmin}{m \text{ in } \mathcal{M}} L{\mathrm{val}}(\hat{\theta}_m,m) \end{aligned} $$

The training objective is to optimize a loss on the training sample while preserving out-of-sample performance. Training data fit parameters. Validation data selects models or hyperparameters. Test data estimates final generalization. Cross-validation rotates validation folds within the development sample. The final test set remains untouched. Regularization trades in-sample fit for lower model complexity and potentially better out-of-sample performance. Overfitting is signaled by a widening gap between training performance and validation or test performance. A model-selection decision must reflect the data and loss function expected at deployment. On the exam, never use the test set repeatedly to select a model. Its apparent objectivity is the trap, and its score belongs to final generalization.

Unlock the full lesson and continue reading

Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more

Scan to download app

Scan to download
UNLOCK FREE ACCESS

Flashcards: Model training objectives, steps and techniques

  1. 1. What are the four steps in order to analyze unstructured, text-based data?

    Show answer

    1\) text problem formulaiton\ 2\) data collection (curation)\ 3\) text preparation and wrangling\ 4\) text exploration

  2. 2. What are the data analysis steps?

    Show answer

    1\) conceptualization of the modeling task\ 2\) data collection\ 3\) data preparation and wrangling\ 4\) data exploration\ 5\) model training

  3. 3. What is data wrangling?

    Show answer

    involves preprocessing data for model use

  4. 4. What are the four text cleansing steps?

    Show answer

    1\) remove HTML tags\ 2\) remove punctuations\ 3\) remove numbers\ 4\) remove white spaces

  5. 5. What is structured data?

    Show answer

    data organized in columns and rows

  6. 6. What are the three Vs of big data?

    Show answer

    volume, variety and velocity

  7. 7. What is text processing?

    Show answer

    the cleansing and preprocessing of text-based data

Everything you need for CFA prep

Get full Oncourse access with lessons, practice questions, flashcards and AI study tools.

GET STARTED FOR FREE
75% OFFLimited time offer
GET 75% OFF