Grid search

introduction

Before we try to explain what is grid search is all about, should understand the hyperparameters. So what is heyperparameters ?

Hyperparameters

Hyperparameters is model specific parameters, this mean it’s related to the model itself and don’t have anything to do with the data. for example * The learning rate for training a neural network. * The C and sigma hyperparameters for support vector machines. * The k in k-nearest neighbors.

All of these are hyperparameters. Hyperparameters usually can’t be calculated using analytically method, moreover hyperparameters interact with each others in non known way.

So how to find these values ?

The process of finding the optimal hyperparamters values called tuning or optimization.

If we consider single hyperparamter tuning problem then we can easily solve it using loop testing it against a measure. for example we can optimize the number of trees (Hyperparamters) in GBM (Model) to find which value give the highest Accuracy (measure)

for more two hyperparameters we can use nested loop in the same maneer as in a single hyperparameter hence we call it grid search.

Ammar Al-Khaldi

09 December, 2017