Skip to content
aj-geddes avatar

Model Hyperparameter Tuning

Practical hyperparameter tuning comparing grid, random, and Bayesian search with Optuna on a runnable Python example.

CCM score
40 of 100
skills.sh installs
504
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers grid search, random search, and Optuna-based Bayesian optimization, with time and test-score comparisons across methods
  • Includes tuning code for RandomForest, GradientBoosting, and a PyTorch network's learning rate, plus a comparison plot
  • Compares methods on best CV score, held-out test accuracy, and wall-clock time using a synthetic 50-feature classification dataset
  • Designed for practitioners who want working scikit-learn and Optuna code to adapt to their own models

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill 'Model Hyperparameter Tuning' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Model Hyperparameter Tuning

Overview

Hyperparameter tuning is the process of systematically searching for the best combination of model configuration parameters to maximize performance on validation data.

When to Use

  • When optimizing model performance beyond baseline configurations
  • When comparing different parameter combinations systematically
  • When fine-tuning complex models with many hyperparameters
  • When seeking the best trade-off between bias, variance, and training time
  • When improving model generalization on validation and test data
  • When exploring parameter spaces for neural networks, tree models, or ensemble methods

Tuning Methods

  • Grid Search: Exhaustive search over parameter grid
  • Random Search: Random sampling from parameter space
  • Bayesian Optimization: Probabilistic model-based search
  • Hyperband: Multi-fidelity optimization
  • Evolutionary Algorithms: Genetic algorithm based search
  • Population-based Training: Distributed parameter optimization

Hyperparameters by Model Type

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
Data Science & Analytics
First seen
Jun 3, 2026

Questions

What is Model Hyperparameter Tuning?

Model Hyperparameter Tuning is an agent skill listed on Claude Marketplaces in the Data Science & Analytics category. The listing describes Model Hyperparameter Tuning like this: Optimize hyperparameters using grid search, random search, Bayesian optimization, and automated ML frameworks like Optuna and Hyperopt.

How do I install Model Hyperparameter Tuning?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill 'Model Hyperparameter Tuning' -y in a project to install Model Hyperparameter Tuning. After that, the agent can use Model Hyperparameter Tuning in that project.

Which category is Model Hyperparameter Tuning in?

Model Hyperparameter Tuning is in the Data Science & Analytics category on Claude Marketplaces. Other listings in that category next to Model Hyperparameter Tuning include azure-kusto, analyze-project and run-train.

Where is the source code of Model Hyperparameter Tuning?

The source code of Model Hyperparameter Tuning is on GitHub at https://github.com/aj-geddes/useful-ai-prompts. The aj-geddes account on GitHub publishes Model Hyperparameter Tuning.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Model Hyperparameter Tuning

More Data Science & Analytics