Skip to content
Back to skills

Hpo And Mutation

ASecurity

"Use AgileRL evolutionary HPO, tournament selection, mutation

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
ai-agentspythongospringapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill hpo-and-mutation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hpo And Mutation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hpo And Mutation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-hpo-and-mutation/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-hpo-and-mutation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hpo-and-mutation
description: "Use AgileRL evolutionary HPO, tournament selection, mutation
  probabilities, mutable hyperparameters, and population evolution safely."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# AgileRL HPO And Mutation

Use this sub-skill when the task is about AgileRL evolutionary hyperparameter optimization (HPO), `TournamentSelection`, `Mutations`, `HyperparameterConfig`, `RLParameter`, mutation probabilities, architecture mutation behavior, or diagnosing why a population did or did not mutate.

## Read First

- `references/hpo-workflows.md` for the standard tournament + mutation loop.
- `references/api-reference.md` for key HPO classes and parameters.
- `references/troubleshooting.md` for invalid mutable attributes, probability, and architecture mutation failures.
- `scripts/inspect_hpo_setup.py --help` for a safe config-only HPO probe.

## Boundaries

- Training-loop placement belongs in `../training-workflows/SKILL.md`, `../multi-agent-and-wrappers/SKILL.md`, `../offline-bandits-data/SKILL.md`, or `../llm-fine-tuning/SKILL.md` depending on the workflow.
- Architecture object construction belongs in `../evolvable-modules/SKILL.md`.
- This sub-skill owns which hyperparameters are mutable, how mutation probabilities are selected, how tournament selection preserves elites, and why mutation may be a no-op.

## Standard HPO Flow

1. Create a population of AgileRL agents.
2. Evaluate population fitness.
3. Select elites and the next generation with `TournamentSelection`.
4. Mutate offspring with `Mutations`.
5. Continue training with the evolved population.

```python
from agilerl.hpo.tournament import TournamentSelection
from agilerl.hpo.mutation import Mutations
from agilerl.algorithms.core.registry import HyperparameterConfig, RLParameter

hp_config = HyperparameterConfig(
    lr=RLParameter(min=1e-4, max=1e-2),
    batch_size=RLParameter(min=32, max=256),
    learn_step=RLParameter(min=1, max=10, grow_factor=1.5, shrink_factor=0.75),
)

tournament = TournamentSelection(tournament_size=2, elitism=True, population_size=6, eval_loop=1)
mutations = Mutations(
    no_mutation=0.4,
    architecture=0.2,
    new_layer_prob=0.2,
    parameters=0.2,
    activation=0.0,
    rl_hp=0.2,
    mutation_sd=0.1,
    rand_seed=1,
    device="cpu",
)
```

## Decision Points

- Set `activation=0` when activation mutations are unsupported or not desired.
- Use `HyperparameterConfig` fields that exactly match algorithm attributes.
- Keep `population_size`, `POP_SIZE`, and tournament population size aligned.
- Use deterministic seeds when comparing HPO behavior.
- For LLM algorithms, do not assume architecture mutations are supported.

Files in this skill

  • SKILL.md2.7 KB
  • references/api-reference.md1.4 KB
  • references/hpo-workflows.md2.2 KB
  • references/troubleshooting.md1.9 KB
  • scripts/inspect_hpo_setup.py2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.