
Explore hyperparameter optimization for machine learning, covering performance metrics, cross-validation, Bayesian optimization with gaussian processes and tree-structured Parzen estimators, and practical implementations in scikit-learn, optuna, hyperopt, and more.
Explore hyperparameter optimization from linear regression to neural networks, using grid search, random search, and Bayesian methods with Python open-source packages on pre-cleaned datasets; deep learning familiarity enhances value.
Access the hyperparameter optimization course material, including Jupyter notebooks, videos, presentations, and online datasets, and use the three articles to download code, presentations, and datasets before you start.
Learn how learning algorithms optimize model parameters to minimize training criteria, while hyperparameters set outside training control capacity and improve generalization, including regularization and tuning.
Learn how to optimize hyperparameters to minimize generalization error and balance model performance with training cost. Explore hyperparameter space, sampling methods, cross-validation, and strategies like grid, random, and bayesian optimization.
Explore performance metrics essential for hyperparameter optimization, including classification and regression metrics, cross-validation, and sampling methods. Learn how scikit-learn metrics are used and how to create custom metrics for optimization.
Explore classification metrics for supervised models, including accuracy, precision, recall, f1 score, false positive rate, false negative rate, and roc-auc using a confusion matrix.
Explore regression metrics to evaluate continuous targets, including mean squared error, RMSE, MAE, and R-squared. See how these metrics measure prediction errors and explain variance to guide optimization with scikit-learn.
Create a custom false negative rate metric with the confusion matrix, use make_scorer, and optimize a random forest's hyperparameters by grid search on the breast cancer dataset.
Learn how to use scikit-learn metrics with grid search to optimize hyperparameters on the breast cancer dataset, by passing a metric string like accuracy or roc-auc.
Explore cross-validation to prevent over-fitting and assess generalization by splitting data into train, test, and folds, averaging performance across folds and comparing hyperparameter spaces with error estimates.
Explore bias, variance, and generalization error, and learn multiple cross-validation schemes—k-fold, leave-one-out, leave-p-out, repeated k-fold, and stratified k-fold—applied to model selection and hyperparameter tuning.
Demonstrates estimating a model's generalization error using multiple cross-validation schemes—k-fold, repeated k-fold, leave-one-out, leave-p-out, and stratified k-fold—on a logistic regression breast cancer model with scikit-learn.
Explore cross-validation for hyperparameter tuning in logistic regression using grid search on the cancer dataset, comparing ridge and lasso penalties across five-fold cross-validation.
Apply tailored cross-validation for grouped data, using Group K-Fold and Leave One Group Out to ensure new subjects are tested unseen. Use TimeSeriesSplit for time series to forecast future observations.
Apply group cross-validation and leave-one-group-out validation to estimate logistic regression generalization error, then perform a grid search to optimize its hyperparameters on the breast cancer dataset.
Explore basic hyperparameter search methods for machine learning, including manual, grid, and random search, and learn to balance search breadth with computational cost, hyperparameter types, and performance metrics.
Use manual search to identify promising hyperparameter regions, benchmark models, and prepare for grid search, while illustrating 5-fold cross-validation with logistic regression and random forests.
Explore how grid search exhaustively tests all combinations of specified hyperparameters using the cartesian product, highlighting limitations like the curse of dimensionality and manual value selection, while enabling parallel execution.
Apply grid search in scikit-learn to tune a gradient boosting classifier on the cancer dataset, evaluating 60 parameter combinations with 5-fold cross-validation to maximize ROC-AUC and identify the best settings.
Explore grid search over two hyperparameter spaces for a support vector classifier, comparing linear and rbf kernels. Identify best parameters by accuracy with 3-fold cross-validation, notably linear C=100.
Random search selects hyperparameter combinations at random from the hyperparameter space, using independent draws from a uniform distribution, and targets high-dimensional, continuous spaces more efficiently than grid search.
Apply random search to optimize hyperparameters for a gradient boosting classifier on the breast cancer dataset using scikit-learn and scipy.stats distributions, evaluating with cross-validation and ROC-AUC.
Sequential search in hyperparameter optimization iteratively evaluates a few hyperparameter settings. Bayesian optimization guides where to sample next, treating the hyperparameter response surface φ(λ) as a black-box, non-differentiable function.
Explore Bayesian optimization for global optimization of costly black-box objective functions. Apply priors, posteriors, and acquisition functions, using Gaussian processes for hyperparameter tuning.
Learn the core of bayesian inference: reallocate probability from priors to posteriors using bayes' rule, updating beliefs with data across models and hyperparameters.
Explore joint and conditional probabilities with a dog breed hip dysplasia data set, computing marginal, joint, and conditional probabilities and introducing prior, posterior, and Bayes' Rule.
Explore Bayes' rule, linking prior and posterior probabilities via conditional and joint forms, with fraud detection examples, and apply these ideas to hyperparameters via bayesian optimization and gaussian processes.
Learn how sequential model-based optimization for hyperparameter optimization uses Bayes' rule to infer a posterior over a black-box objective, guided by a Gaussian process surrogate and an acquisition function.
Explore the Gaussian distribution’s bell shape, centered at the mean μ with spread σ and variance σ², including the standard normal N(0,1), and preview multivariate forms and a Gaussian process.
Generalize the univariate gaussian to multivariate distributions by modeling a vector x with mean mu and covariance matrix, capturing diagonal variances, off-diagonal covariances, and underpinning gaussian processes.
Explore how Gaussian processes model distributions over functions to estimate the hyperparameter response function, using mean, covariance, and multivariate Gaussian rules to derive priors and posteriors.
Explore how kernels measure similarity in Gaussian processes to predict hyperparameter responses, adjust smoothness, and guide Bayesian optimization with squared exponential and Matérn kernels.
Learn how acquisition functions guide Bayesian optimization for hyperparameter search by balancing exploration and exploitation, using methods like probability of improvement, expected improvement, and upper and lower confidence bounds.
Explore sequential model-based optimization in machine learning using random forests, gradient boosting machines, and tree parzen estimators to approximate the hyperparameter response function f(x) and guide acquisition-driven sampling decisions.
Explore SMAC, a Bayesian hyperparameter optimization method that uses random forests or gradient boosted trees to approximate the objective f(x) and guide sampling via acquisition functions like expected improvement.
Explore Tree-structured Parzen Estimators, which model hyperparameters given the score using two densities l(x) and g(x), guiding sampling via expected improvement to focus on promising regions of the prior space.
Explore tree-structured Parzen estimators (TPE) for hyperparameter optimization by sampling configurations, splitting observations into best and rest, and modeling per-hyperparameter distributions with Parzen windows to guide expected improvement.
Explore the default hyperparameters for tree-structured Parzen estimators (TPE) in Hyperopt, including sampling, gamma quantile split, Parzen density estimation, and candidate selection.
Explore why tree-structured parzen estimators sample hyperparameters conditionally, per hyperparameter, and support nested spaces across models like svm and a decision tree.
Explore Hyperopt, an open-source Python package for hyperparameter optimization, offering rand.suggest, tpe.suggest, and anneal.suggest via fmin, with nested hp spaces and optional MongoDB parallelization.
Explore hyperparameter optimization with Hyperopt, covering distributions, the three sampling algorithms—random search, annealing, and tree parzen estimators—and nested hyperparameters across random forests, logistic regression, gradient boosting, and neural networks.
Learn to sample hyperparameters from hyperopt distributions, configure search spaces, and combine or nest spaces using hp.choice and pchoice.
Navigate nested hyperparameter spaces with Hyperopt, sampling naive_bayes, SVM, and decision tree algorithms and tuning C, kernel, width, depth, and minimum samples per split to find the best model.
Explore hyperparameter optimization with hyperopt, using fmin to perform randomized, annealing, and tpe searches on xgboost models, evaluating with cross-validated roc_auc.
Explore Optuna, a Python package for hyperparameter optimization, covering grid and random search, nested spaces, objective functions, and analysis tools with Pandas and SQL-like storage.
Explore optuna's main functions to set up a hyperparameter search within the objective using a trial, define space with suggest_int for n_estimators and max_depth, and optimize with study.
Explore how Optuna selects and compares hyperparameter search algorithms, including grid search, random search, TPE, and CMA-ES, and tune a random forest on breast cancer data.
Optimize hyperparameters for logistic regression, random forest, and gradient boosting classifiers with a single objective using Optuna and nested hyperparameters on the breast cancer dataset.
Optimize hyperparameters with Optuna in a Keras TensorFlow workflow on mnist, defining an objective function, sampling convolutional layers and dense layers, and evaluating accuracy to select the best model.
Explore per-layer hyperparameter sampling for a CNN with optuna and Keras sequential, varying conv and dense layer counts and tuning filters, kernel sizes, strides, and activations to maximize accuracy.
Explore Optuna's plotting capabilities for neural network hyperparameter searches, using matplotlib or plotlib backends to visualize optimization history, contour plots, edf, intermediate values, and parameter importances.
Welcome to Hyperparameter Optimization for Tabular Machine Learning, a practical course on getting the best performance out of your machine learning models.
Today, AI tools and AutoML libraries can tune a model for you in a few lines of code. But if you don’t understand what happens under the hood, you can’t control the result, explain it, or tell when it’s gone wrong. Knowing how hyperparameter optimization works is what lets you stay in charge of your models instead of trusting a black box.
Hyperparameters can make the difference between an average model and a great one. Choosing them well means faster training, better predictions and a higher spot on a competition leaderboard. Choosing them badly, or evaluating them the wrong way, can give you a model that looks great in development and fails in production.
In this course, we’ll take you step by step through every major approach to hyperparameter tuning. For each one, you’ll learn how it works, when to use it, its advantages and pitfalls, and how to implement it in Python.
You’ll:
Understand what hyperparameters are and why tuning them matters
Evaluate your models reliably with cross-validation and nested cross-validation, so you can trust your results
Search the hyperparameter space with grid search and random search
Find better hyperparameters in fewer trials with Bayesian optimization and tree-structured Parzen estimators
Speed up tuning and make the most of your computing resources
Tune your models in Python with Optuna and scikit-learn
By the end of the course, you’ll know which approach suits your model, your data and your budget, and you’ll be able to carry it out with open-source libraries.
The course includes over 50 lectures and about 8 hours of video, and every topic comes with hands-on Python code that you can reuse in your own projects.
Enroll today and take control of how your machine learning models are built!