# Hyperparameters: Settings You Choose

A hyperparameter is a setting you choose before fit, such as a tree's max_depth, while fit learns the rest, such as the tree's questions; get_params and set_params read and change the settings, the defaults are only a starting point, and settings are chosen with cross-validation on the training rows, never with the test set.

![Cheat sheet: Hyperparameters: Settings You Choose](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/49ebb1c6862846d18d03d8af8d62da13.webp)

- Category: Machine Learning
- Level: Journeyman
- Tags: ai, Decision Tree, get_params(), Hyperparameter, python, set_params(), Test Data
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-hyperparameters-cheat-sheet
