Cross validation
COMS 4721
1 / 8
Cross validation COMS 4721 1 / 8 The model selection problem - - PowerPoint PPT Presentation
Cross validation COMS 4721 1 / 8 The model selection problem Objective Often necessary to consider many different models (e.g., types of classifiers) for a given problem. Sometimes model simply means particular setting of
1 / 8
◮ Often necessary to consider many different models (e.g., types of
◮ Sometimes “model” simply means particular setting of hyper-parameters
2 / 8
3 / 8
4 / 8
4 / 8
4 / 8
5 / 8
◮ train ˆ
◮ evaluate ˆ
5 / 8
◮ train ˆ
◮ evaluate ˆ
5 / 8
◮ For each k ∈ {1, 2, . . . , K}: ◮ Train classifier ˆ
◮ Evaluate classifier ˆ
◮ K-fold cross-validation error rate for h:
K
6 / 8
7 / 8
7 / 8
7 / 8
◮ Model selection: goal is to pick best model (e.g., hyper-parameter
8 / 8
◮ Model selection: goal is to pick best model (e.g., hyper-parameter
◮ Two common methods: hold-out validation and K-fold cross validation
8 / 8
◮ Model selection: goal is to pick best model (e.g., hyper-parameter
◮ Two common methods: hold-out validation and K-fold cross validation
◮ Caution: considering too many different models can lead to overfitting,
8 / 8
◮ Model selection: goal is to pick best model (e.g., hyper-parameter
◮ Two common methods: hold-out validation and K-fold cross validation
◮ Caution: considering too many different models can lead to overfitting,
8 / 8