Hyperparameter Tuning Cookbook: A guide for scikit-learn, PyTorch, river, and spotPython

Thomas Bartz-Beielstein
7/17/2023
cs.LGcs.AI

Official code: sequential-parameter-optimization/spotPython (15 stars, AGPL-3.0, last commit 2026-01-12). 1 more implementation below.

Abstract

This document provides a comprehensive guide to hyperparameter tuning using spotPython for scikit-learn, PyTorch, and river. The first part introduces spotPython's surrogate model-based optimization process, while the second part focuses on hyperparameter tuning. Several case studies are presented, including hyperparameter tuning for sklearn models such as Support Vector Classification, Random Forests, Gradient Boosting (XGB), and K-nearest neighbors (KNN), as well as a Hoeffding Adaptive Tree Regressor from river. The integration of spotPython into the PyTorch and PyTorch Lightning training workflow is also discussed. With a hands-on approach and step-by-step explanations, this cookbook serves as a practical starting point for anyone interested in hyperparameter tuning with Python. Highlights include the interplay between Tensorboard, PyTorch Lightning, spotPython, and river. This publication is under development, with updates available on the corresponding webpage.

View on arXivView PDF

Code Implementations(2)

AGPL-3.0

Sequential Parameter Optimization in Python

152Shell, PythonJan 29, 20239 months agoAGPL-3.0
AGPL-3.0

A guide for scikit-learn, PyTorch, river, and spotPython

41TeX, HTMLJul 12, 202311 months agoAGPL-3.0

Similar Papers

Cite this paper

@article{bartzbeielstein2023hyperparameter,
  title  = {Hyperparameter Tuning Cookbook: A guide for scikit-learn, PyTorch, river, and spotPython},
  author = {Thomas Bartz-Beielstein},
  year   = {2023},
  eprint = {2307.10262},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.10262v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.10262.svg)](https://codeofpaper.com/paper/2307.10262)

Discussion