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.

By

Updated

Cheat sheet: Hyperparameters: Settings You Choose
Category
Machine Learning
Level
Journeyman
Tags
ai, Decision Tree, get_params(), Hyperparameter, python, set_params(), Test Data