hyperparameter-tuning
Skill2 starsChanged 12 days agoMITView on GitHub
Hyperparameter Tuning. Tune machine learning models honestly - grid search, random search, successive halving, Hyperband, Bayesian optimization with Optuna and pruning, nested cross-validation, early stopping on validation folds, search spaces for logistic regression, random forest, XGBoost, LightGBM, SVM, k-NN and neural networks, compute budgets, reporting spread and parameter importance. Use for hyperparameter optimization, GridSearchCV, RandomizedSearchCV, Optuna, model tuning or improving a model's settings.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- gmanch94/claude-code-aidlc-templatetheir own version, first seen Jul 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- gmanch94/claude-code-aidlc-template★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- ai-prediction-explainerSkill
- data-mining-machine-learningSkill
- data-miningSkill
- data-preparationSkill
- data-profilingSkill
- data-storytellingSkill
- feature-engineeringSkill
- ml-quality-guardSkill
- ml-web-applicationSkill
- model-deploymentSkill
- model-evaluationSkill
- model-explainabilitySkill
- model-trainingSkill
- notebook-auditSkill
- problem-framingSkill
- statistical-analysisSkill
The file
Files
Hyperparameter Tuning
Order of work
- Fix the metric (aligned with cost: PR-AUC, F-beta, log loss, MAE), the split strategy and the baseline.
- Score the default configuration with the same CV. Tuning gains are measured against it.
- Tune inside cross-validation on training data only. The test set never influences tuning, early stopping or model choice.
- Tune the decision threshold afterwards, as a separate step on validation data.
Method choice
| Situation | Method |
| Two or three parameters, cheap model | GridSearchCV |
| Default choice | RandomizedSearchCV with log-uniform ranges, 30 to 100 trials |
| Large space, cheap early signal | HalvingRandomSearchCV, Hyperband |
| Expensive models | Optuna (TPE) with median pruning, CV inside the objective |
| Small dataset, honest estimate needed | Nested CV: inner search, outer score |
Rules
- Log-scale ranges for learning rates, regularization strengths and
C. - Early stopping on a validation fold carved from training data, never on test.
- Fix the seed of the search and of the model; record the budget (trials, wall time, hardware).
- With many trials, the best CV score is optimistic (validation overfitting). Confirm on the untouched test set once, or use nested CV.
- Differences smaller than the fold-to-fold standard deviation are not improvements.
Report
Best mean CV score with its standard deviation across folds, the default-configuration score, the baseline score, the best parameters, a parameter importance or slice plot, the budget and the seed. Spaces and code: references/tuning.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

