Skip to content
Back to skills

Hpo Experiments

ASecurity

"Use NNI HPO experiments, nnictl, ExperimentConfig, trial metric

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
toolspythongodebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Hpo Experiments?

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

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

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-experiments
description: "Use NNI HPO experiments, nnictl, ExperimentConfig, trial metric
  APIs, search spaces, tuners, assessors, and training-service config triage."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# HPO Experiments

Use this sub-skill when the user is creating, running, debugging, or migrating an NNI hyperparameter-optimization experiment.

## Route Here For

- Creating an NNI local experiment from a YAML config, search-space JSON, and trial script.
- Converting between `nnictl create --config ...` workflows and the Python `Experiment` / `ExperimentConfig` API.
- Writing trial code that calls `nni.get_next_parameter()`, `nni.report_intermediate_result()`, and `nni.report_final_result()` correctly.
- Fixing search-space JSON, tuner/assessor `classArgs`, custom tuner class paths, and local/remote/cloud training-service config problems.
- Inspecting experiments, trials, logs, exported/imported trial data, and registered algorithms with `nnictl`.

## Route Elsewhere

- NAS model spaces, evaluators, strategies, and neural architecture search prompts belong in `../nas/`.
- Compression `config_list`, pruners, quantizers, speedup, and compression evaluators belong in `../model-compression/`.
- Feature-selection utilities and non-HPO helper APIs belong in `../feature-engineering-and-utilities/`.

## Start With These

- `references/workflows.md`: end-to-end local config, Python launch, custom tuner/assessor, and training-service triage recipes.
- `references/api-reference.md`: trial APIs, `ExperimentConfig`, tuner/assessor base APIs, built-in algorithm names, and search-space type rules.
- `references/cli-reference.md`: `nnictl` command families, safe help/config/log commands, and operational cautions.
- `references/troubleshooting.md`: common failures for YAML/JSON, search spaces, metrics, `pkg_resources`, optional extras, ports, credentials, and remote/cloud services.
- `scripts/validate_search_space.py`: standalone JSON search-space validator for common built-in NNI HPO search-space types.

## Default Playbook

1. Identify the route: CLI YAML config (`nnictl`) or Python API (`Experiment`). Prefer CLI YAML for reproducible user projects; use Python API when the user wants programmatic construction.
2. Validate the search space before diagnosing tuners: run `python scripts/validate_search_space.py search_space.json` from this skill directory or copy the script command into the user project with the correct path.
3. Check the config contract: exactly one of `searchSpaceFile` or `searchSpace`, a valid `trialCommand`, a reachable `trialCodeDirectory`, `tuner.name` or custom tuner class fields, and a `trainingService.platform`.
4. Check trial code: call `nni.get_next_parameter()` once, merge parameters into defaults, report intermediate metrics only after parameters are received, and report one final numeric metric or a dict with numeric `default`.
5. For remote/cloud services, verify credentials, network reachability, Python/NNI version consistency, file-size limits, and secret handling before suggesting a launch.

Files in this skill

  • SKILL.md3.1 KB
  • references/api-reference.md8.4 KB
  • references/cli-reference.md5.3 KB
  • references/troubleshooting.md8.5 KB
  • references/workflows.md8.3 KB
  • scripts/validate_search_space.py9.3 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.