How to tune model hyperparameters manually or with automated exhaustive or randomised search.
The hyperparameters of a machine learning model control the learning process. Hyperparameters are unique to each model type and include details such as the number of hidden layers or neurons for a Neural Network, or the kernel used for a Gaussian Process.
If you are already familiar with the effects of the hyperparameters and want to tune your model manually, you can define the parameters yourself by clicking on the advanced options while setting up a model. However, this is quite time consuming (it requires re-running the model each time), and requires a good knowledge of how the models are trained.
Another option is to let the platform try multiple models and find the best one. To do so, go in advanced options of a model and select hyperparameter optimisation. The figure below shows what is displayed for a Neural Network.For each hyperparameter, you can select multiple values to explore. You will then have to choose between two search methods:
Exhaustive search: This method will try models with all possible combinations of values. In the example below, that would be 4 x 3 x 4 x 2 = 96 models to train and evaluate. This method should be used if you have a limited number of combinations, if models can be trained quickly, or if the overall training length is not an issue.
Randomised search: This method will randomly select a user-defined number of models to compare (10 in the figure below). This method can be used when trying all combinations would take too long.
Hyperparameters are hidden in the advanced options section.