January 2020
Intermediate to advanced
346 pages
9h 8m
English
To encapsulate the hyperparameter tuning of the AdaBoost classifier for the wine dataset using a grid search – both the conventional version and the genetic algorithm-driven version – we created a Python class called HyperparameterTuningGrid. This class can be found in the 01-hyperparameter-tuning-grid.py file, which is located at https://github.com/PacktPublishing/Hands-On-Genetic-Algorithms-with-Python/blob/master/Chapter08/01-hyperparameter-tuning-grid.py.
The main parts of this class are highlighted as follows:
self.initWineDataset() ...Read now
Unlock full access