Example: dental hygienist

Model Selection and Adaptation of Hyperparameters

C. E. Rasmussen & C. K. I. Williams, gaussian Processes for Machine Learning, the MIT Press, 2006,ISBN 2006 Massachusetts Institute of 5 Model Selection andAdaptation ofHyperparametersIn chapters 2 and 3 we have seen how to do regression and classification usinga gaussian process with a given fixed covariance function. However, in manypractical applications, it may not be easy to specify all aspects of the covari-ance function with confidence. While some properties such as stationarity ofthe covariance function may be easy to determine from the context, we typicallyhave only rather vague information about other properties, such as the valueof free (hyper-) parameters, length-scales. In chapter 4 several examplesof covariance functions were presented, many of which have large numbers ofparameters. In addition, the exact form and possible free parameters of thelikelihood function may also not be known in advance. Thus in order to turnGaussian processes into powerful practical tools it is essential to develop meth-ods that address the Model Selection problem.

C. E. Rasmussen & C. K. I. Williams, Gaussian Processes for Machine Learning, the MIT Press, 2006, ISBN 026218253X. 2006 Massachusetts Institute of Technology.c www ...

Tags:

  Model, Selection, Gaussian, Model selection

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Model Selection and Adaptation of Hyperparameters

1 C. E. Rasmussen & C. K. I. Williams, gaussian Processes for Machine Learning, the MIT Press, 2006,ISBN 2006 Massachusetts Institute of 5 Model Selection andAdaptation ofHyperparametersIn chapters 2 and 3 we have seen how to do regression and classification usinga gaussian process with a given fixed covariance function. However, in manypractical applications, it may not be easy to specify all aspects of the covari-ance function with confidence. While some properties such as stationarity ofthe covariance function may be easy to determine from the context, we typicallyhave only rather vague information about other properties, such as the valueof free (hyper-) parameters, length-scales. In chapter 4 several examplesof covariance functions were presented, many of which have large numbers ofparameters. In addition, the exact form and possible free parameters of thelikelihood function may also not be known in advance. Thus in order to turnGaussian processes into powerful practical tools it is essential to develop meth-ods that address the Model Selection problem.

2 We interpret the Model selectionmodel selectionproblem rather broadly, to include all aspects of the Model including the dis-crete choice of the functional form for the covariance function as well as valuesfor any section we outline the Model Selection problem. In the following sec-tions different methodologies are presented: in section Bayesian principlesare covered, and in section cross-validation is discussed, in particular theleave-one-out estimator. In the remaining two sections the different methodolo-gies are applied specifically to learning in GP models, for regression in and classification in section E. Rasmussen & C. K. I. Williams, gaussian Processes for Machine Learning, the MIT Press, 2006,ISBN 2006 Massachusetts Institute of Selection and Adaptation of The Model Selection ProblemIn order for a Model to be a practical tool in an application, one needs to makedecisions about the details of its specification.

3 Some properties may be easy tospecify, while we typically have only vague information available about otheraspects. We use the term Model Selection to cover both discrete choices and thesetting of continuous (hyper-) parameters of the covariance functions. In fact, Model Selection can help both to refine the predictions of the Model , and givea valuable interpretation to the user about the properties of the data, thatenable interpretationa non-stationary covariance function may be preferred over a stationary multitude of possible families of covariance functions exists, includingsquared exponential, polynomial, neural network, etc., see section for anoverview. Each of these families typically have a number of freehyperparametershyperparameterswhose values also need to be determined. Choosing a covariance function for aparticular application thus comprises both setting of Hyperparameters within afamily, and comparing across different families.

4 Both of these problems will betreated by the same methods, so there is no need to distinguish between them,and we will use the term Model Selection to cover both meanings. We willrefer to the Selection of a covariance function and its parameters astrainingoftraininga gaussian the following paragraphs we give example choices ofparameterizations of distance measures for stationary covariance functions such as the squared exponential can be parameterizedin terms of Hyperparameters . For examplek(xp,xq) = 2fexp( 12(xp xq)>M(xp xq))+ 2n pq,( )where = ({M}, 2f, 2n)>is a vector containing all the Hyperparameters ,2and{M}denotes the parameters in the symmetric matrixM. Possible choices forthe matrixMincludeM1=` 2I,M2= diag(`) 2,M3= >+ diag(`) 2,( )where`is a vector of positive values, and is aD kmatrix,k < D. Theproperties of functions with these covariance functions depend on the values ofthe Hyperparameters . For many covariance functions it is easy to interpret themeaning of the Hyperparameters , which is of great importance when trying tounderstand your data.

5 For the squared exponential covariance function eq. ( )with distance measureM2from eq. ( ), the`1,..,`Dhyperparameters playthe r ole ofcharacteristic length-scales; loosely speaking, how far do you needcharacteristiclength-scaleto move (along a particular axis) in input space for the function values to be-come uncorrelated. Such a covariance function implements automatic relevanceautomatic relevancedeterminationdetermination (ARD) [Neal, 1996], since the inverse of the length-scale deter-mines how relevant an input is: if the length-scale has a very large value, the1 This contrasts the use of the word in the SVM literature, where training usually refersto finding the support vectors for a fixed the noise level parameter, 2nis not considered a hyperparameter; however itplays an analogous role and is treated in the same way, so we simply consider it a E. Rasmussen & C. K. I. Williams, gaussian Processes for Machine Learning, the MIT Press, 2006,ISBN 2006 Massachusetts Institute of The Model Selection Problem107 202 202 2 1012input x1input x2output y(a) 202 202 2 1012input x1input x2output y 202 202 2 1012input x1input x2output y(b)(c)Figure :Functions with two dimensional input drawn at random from noise freesquared exponential covariance function gaussian processes, corresponding to thethree different distance measures in eq.

6 ( ) respectively. The parameters were: (a)`= 1, (b)`= (1,3)>, and (c) = (1, 1)>,`= (6,6)>. In panel (a) the two inputsare equally important, while in (b) the function varies less rapidly as a function ofx2thanx1. In (c) the column gives the direction of most rapid variation .covariance will become almost independent of that input, effectively removingit from the inference. ARD has been used successfully for removing irrelevantinput by several authors, Williams and Rasmussen [1996]. We call the pa-rameterization ofM3in eq. ( ) thefactor analysis distancedue to the analogyfactor analysis distancewith the (unsupervised) factor analysis Model which seeks to explain the datathrough a low rank plus diagonal decomposition. For high dimensional datasetsthekcolumns of the matrix could identify a few directions in the input spacewith specially high relevance , and their lengths give the inverse characteristiclength-scale for those Figure we show functions drawn at random from squared exponentialcovariance function gaussian processes, for different choices ofM.

7 In panel(a) we get an isotropic behaviour. In panel (b) the characteristic length-scaleis different along the two input axes; the function varies rapidly as a functionofx1, but less rapidly as a function ofx2. In panel (c) the direction of mostrapid variation is perpendicular to the direction (1,1). As this figure illustrates,C. E. Rasmussen & C. K. I. Williams, gaussian Processes for Machine Learning, the MIT Press, 2006,ISBN 2006 Massachusetts Institute of Selection and Adaptation of Hyperparametersthere is plenty of scope for variation even inside a single family of covariancefunctions. Our task is, based on a set of training data, to make inferences aboutthe form and parameters of the covariance function, or equivalently, about therelationships in the should be clear from the above example that Model Selection is essentiallyopen ended. Even for the squared exponential covariance function, there is ahuge variety of possible distance measures.

8 However, this should not be a causefor despair, rather seen as a possibility to learn. It requires, however, a sys-tematic and practical approach to Model Selection . In a nutshell we need to beable to compare two (or more) methods differing in values of particular param-eters, or the shape of the covariance function, or compare a gaussian processmodel to any other kind of Model . Although there are endless variations in thesuggestions for Model Selection in the literature three general principles covermost: (1) compute the probability of the Model given the data, (2) estimatethe generalization error and (3) bound the generalization error. We use thetermgeneralization errorto mean the average error on unseen test examples(from the same distribution as the training cases). Note that the training erroris usually a poor proxy for the generalization error, since the Model may fitthe noise in the training set (over-fit), leading to low training error but poorgeneralization the next section we describe the Bayesian view on Model Selection , whichinvolves the computation of the probability of the Model given the data, basedon the marginal likelihood.

9 In section we cover cross-validation, whichestimates the generalization performance. These two paradigms are appliedto gaussian process models in the remainder of this chapter. The probablyapproximately correct (PAC) framework is an example of a bound on the gen-eralization error, and is covered in section Bayesian Model SelectionIn this section we give a short outline description of the main ideas in Bayesianmodel Selection . The discussion will be general, but focusses on issues which willbe relevant for the specific treatment of gaussian process models for regressionin section and classification in section is common to use a hierarchical specification of models. At the lowest levelhierarchical modelsare the parameters,w. For example, the parameters could be the parametersin a linear Model , or the weights in a neural network Model . At the second levelare Hyperparameters which control the distribution of the parameters at thebottom level.

10 For example the weight decay term in a neural network, or the ridge term in ridge regression are Hyperparameters . At the top level we mayhave a (discrete) set of possible Model structures,Hi, under will first give a mechanistic description of the computations neededfor Bayesian inference, and continue with a discussion providing the intuitionabout what is going on. Inference takes place one level at a time, by applyingC. E. Rasmussen & C. K. I. Williams, gaussian Processes for Machine Learning, the MIT Press, 2006,ISBN 2006 Massachusetts Institute of Bayesian Model Selection109the rules of probability theory, see MacKay [1992b] for this framework andMacKay [1992a] for the context of neural networks. At the bottom level, thelevel 1 inferenceposteriorover the parameters is given by Bayes rulep(w|y,X, ,Hi) =p(y|X,w,Hi)p(w| ,Hi)p(y|X, ,Hi),( )wherep(y|X,w,Hi) is thelikelihoodandp(w| ,Hi) is the prior encodes as a probability distribution our knowledge about the pa-rameters prior to seeing the data.


Related search queries