relf/egobox/egobox-egor-tuning
Claude Code and agent skill by relf/egobox
- community
Checking that the SKILL.md file is still in the repository.
Use this skill whenever the user is working with the Egor optimizer for Bayesian optimization. Triggers on requests to tune Egor parameters, diagnose optimization issues, or configure Egor for specific problem types (high-dimensional, constrained, parallel, expensive objectives, etc.).
Install
npx vskill@latest install relf/egobox/egobox-egor-tuningSKILL.md
EGOR Tuning Skill
Goal
Provide practical guidance for selecting and adapting EGOR optimization parameters based on:
- problem dimension
- objective evaluation runtime
- available optimization budget
- parallel evaluation availability
- convergence progress
- constraint complexity
Cookbook Reference
For detailed parameterization recipes with complete examples, see the [EGObox Cookbook](../../website/content/cookbook.md).
The cookbook contains 12 practical recipes covering:
- Cheap vs. expensive objectives
- High-dimensional problems (d > 10, d > 50)
- Parallel/batch evaluations
- Stagnation recovery
- Constraint handling (various forms)
- Cheap constraints
- Warm restarts from existing DOE
- Constrained engineering problems with active constraints (e.g. MDO)
Quick Reference
Dimension Guidelines
| Dimension | Strategy | |
|---|---|---|
| d < 10 | Standard Egor with adequate DOE | |
| 10 < d ≲ 15 | Try full GPs first, then KPLS if GP training is too slow | |
| d > 15 | Enable KPLS (kpls_dim ≈ d/2) | |
| d > 50 | Enable CoEGO with cooperative groups |
Evaluation Cost Guidelines
| Cost | DOE Size | Iterations | |
|---|---|---|---|
| Cheap | Large (3×n_dims) | High (50+) | |
| Expensive | Small (n_dims+1) | Moderate (20-30) | |
| Expensive, active constraints | Small (n_dims+1) | High (100-200 for d ≈ 10) |
Convergence Issues
If optimization stagnates:
- Enable TREGO trust-region framework
- Switch kernel from SquaredExponential to Matern52
- Try different infill strategy (WB2, EI instead of LOG_EI)
- Increase exploration via infill parameters
Constraints
- Tolerances are absolute (default
1e-4, orCstrSpec.leq(b, tol=...)per constraint): scale constraints to order 1 Egor(cstr_tol=...)was removed in 1.0.0, give atolto eachCstrSpecinstead- Prefer a narrow band
CstrSpec.between(-eps, eps)toCstrSpec.eq(0.0)for equality constraints - Keep
cstr_infill=True, in particular when no initial DOE point is feasible - Use
InfillOptimizer.SLSQPwhen constraints are expected to be active at the optimum
Failures
FailsafeStrategy.REJECTIONis the safest choice when failures are rare- With
FailsafeStrategy.IMPUTATION, check that imputed values stay plausible (they can drift) - The objective function must be free of side effects between calls (e.g. a solver restarting
from the state of a failed previous evaluation)
Parallel Execution
When parallel evaluations are available:
- Use
QEiConfigwith appropriate batch size - Batch size ≈ dimension/10 is a good starting point
- Strategy
KBworks well for most cases
Diagnosing a Run
Run with verbose=egx.Verbose.INFO and an outdir, then check in order:
- Feasible points: count the points satisfying all constraints in
egor_doe.npy.
Zero or very few feasible points usually means badly scaled constraints or an equality constraint that is too strict.
- Failed points: size of
egor_failed_points.npy. A sudden run of consecutive failures
points to a stateful objective function rather than to hard regions of the design space.
- Best point in the log (
End iteration ... Best fun(x[i])=[obj, c1, ...]): check that
the objective is finite and plausible (a NaN or huge value comes from failed or imputed points).
- Infill criterion (
... max found = ...) followed by `Reject ... point too close to previous
ones`: when every new point is rejected, Egor stops early with "Solver converged".
egor_doe.npy rows are [x (nx), objective, internal constraints], where the internal constraints are in c <= 0 form after expansion of the cstr_specs (two columns for each eq or between constraint).
Examples
See examples directory for concrete use cases:
cheap_function.yaml- Low-cost objective optimizationexpensive_function.yaml- High-cost objective optimizationhigh_dimensional.yaml- Problems with d > 10parallel.yaml- Batch/parallel evaluation setupbad_progress.yaml- Stagnation recovery strategiesconstrained_engineering.yaml- Constrained engineering problem with active constraints
API Reference
For complete parameter definitions, see the Python API documentation.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpython/skills/egobox-egor-tuning/SKILL.md
Popularity
- Repository stars
- 182
- Repository forks
- 13
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/relf/egobox/egobox-egor-tuning)