liveBook · Manning

Evaluation dataset

As explained in Machine Learning Algorithms in Depth

A validation dataset is a dataset used to evaluate candidate model configurations during model development and selection.

An evaluation dataset, called a validation dataset during model selection, lets you compare candidate configurations by their performance on data beyond the training examples. The aim is to choose a model that explains more than its training data and generalizes to unseen examples. Keep its selection role distinct from the test data used to assess performance on new, unseen examples. section 7.4 section 1.1

Use validation performance to search a hyperparameter space:

  • Grid search exhaustively tries specified combinations. Values such as 0.1, 1, 10, and 100 can probe different orders of magnitude; this approach suits smaller search spaces. section 7.4
  • Random search samples hyperparameters from chosen distributions. Its iteration count need not grow with the number of parameters. section 7.4

Choosing an SVM configuration

Try candidate kernels, kernel parameters, and regularization constants, then favor the configuration with the strongest validation performance. For a continuous response, one possible loss is mean squared error: MSE = (1/n) Σᵢ(yᵢ − ŷᵢ)². It averages squared prediction errors, giving larger deviations a larger penalty. section 7.4 section 1.1

How Machine Learning Algorithms in Depth covers it

How deep it goes
Explains grid and random search strategies and their tradeoffs, but does not specify a full validation procedure.
Examples
Uses SVM kernels and regularization constants, logarithmically spaced grid values, and sampling a cluster count from a distribution.
What it assumes
Assumes familiarity with model performance and hyperparameters while introducing grid and random search as tuning strategies.
What you can do after
Practice/perform model selection by comparing candidate configurations using validation performance.
How it connects
Connects validation performance to generalization, loss functions, hyperparameters, grid search, random search, and support vector machines.

Also explained in

Compare how 27 books explain evaluation dataset →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Algorithms in Depth. The section links point to the parts of the book it draws on.