Skip to content

Latest commit

 

History

History
67 lines (56 loc) · 3.04 KB

File metadata and controls

67 lines (56 loc) · 3.04 KB

18 ML Evaluation and Optimization

see also

Overview

  • Evaluation metrics
    • Regression
      • R2 vs adj R2 vs MAE vs RMSE
    • Classification
      • accuracy, class imbalance
      • confusion matrix
        • precision, recall, f1 score
        • ROC-AUC, true positive/negative rates
      • log loss
  • Model optimization, Hyperparameter Tuning
    • Grid Search, Random Search
      • how can Random Search outperform Grid Search? why is grid search usually not best choice?
    • Bayesian Optimization

Resources

Course Reading

  • Hyperparameter Tuning article
    • Techniques
      • classical: Grid Search, Random Search
        • Bergstra and Bengio paper showed Random usually did as well as Grid with at least 60 points
      • "smarter methods"
        • tend to be iterative and less parallelizable
        • good performance often requires an outter tuning step of the optimization method
        • Snoek, Larochelle, and Adams paper
          • Gaussian process to model response function and Expected Improvement, then used to determine next set of hyperparameters
        • Hutter, Hoos, and Leyton-Brown paper
          • train random forest to approximate response surface, which is then used to sample optimal regions
          • dubbed SMAC, linked below. article author suggests it works well for categorical hyperparameters
        • derivative-free optimzation
        • Bayes-optimzation
          • see stuff below and linked packages
        • random forest smart tuning
          • similar to Bayes in that the response surface is modeled with another function, and then that is used to sample more points
    • see paper notes for "nested" cross-validation/hyperparameter tuning
    • Packages
      • Hyperopt Bayes Optimization using tree-based parzen estimators
      • SMAC aka SMAC3 Bayes optimization, Random forest
      • not maintained?: Spearmint, hypergrad

Bayes Optimization

read/watch more. why are black box approaches good for hyperparameter tuning?