K Fold
K Fold
MACHINE
LEARNING
Prof. Eduardo Bezerra
(CEFET/RJ)
[email protected]
2
MODEL EVALUATION
AND SELECTION
Visão Geral
3
Model Evaluation
Model Selection
4
Model Evaluation
Generalization error
5
Accuracy, precision
Precision, recall, F1 measure
Squared errors
Likelihood
Posterior probability
Cost/utility
Margin
KL divergence
....
Evaluation techniques
8
model M
test dataset: used to estimate the
generalization error of M
Can lead to a misleading estimate of the
generalization error if the test data is also
Holdout method (training/validation/test)
10
Leave-one-out cross-validation
Stratified k-fold cross-validation
Bootstrap validation
Improvements on Cross-validation: The .632+ Bootstrap Method, B. Efron
and R. Tibshirani, Journal of the American Statistical Association, 92(438):
548-560, 1997
How to do search?
There are two main approaches to search in
the space of hyperparameters:
Grid search exhaustively considers all
hyperparameter combinations, for a set of
given values.
Randomized search can sample a given
number of candidates from a hyperparameter
space with a specified distribution.
Hyperparameter search
25