Skip to content
Back to skills

Minimum Sd Optimizer

ASecurity

Minimise empirical Stein discrepancy objectives with bounded searches and auditable loss traces for recovery experiments.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
researchpython

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Minimum Sd Optimizer?

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

Security grade badge for Minimum Sd Optimizer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-minimum-sd-optimizer/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-minimum-sd-optimizer)

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: minimum_sd_optimizer
description: Minimise empirical Stein discrepancy objectives with bounded searches and auditable loss traces for recovery experiments.
---

# Minimum Stein Discrepancy Optimizer

Use this skill when an empirical Stein discrepancy has been defined and a recovery needs to estimate a parameter by minimising that discrepancy. It is especially useful when full stochastic-gradient or Riemannian-gradient infrastructure is unnecessary or unavailable, but the recovery still needs executable evidence of an argmin search.

## Inputs
- A callable loss function of a scalar parameter.
- Initial parameter, search bounds, grid size, and optional local refinement radius.
- Metadata about the sample and acceptance threshold.

## Outputs
- Best parameter, best loss, initial loss, and loss improvement.
- Search trace with candidate evaluations.
- `params_before` and `params_after` fields suitable for reduced recovery validation.

## Workflow
1. Evaluate the initial parameter and record it as the baseline.
2. Evaluate a bounded grid over the supplied interval.
3. Optionally refine locally around the best grid point.
4. Select the finite candidate with minimum loss.
5. Record whether the parameter changed and whether the objective improved.

## Validation
Run `python tests/test_minimum_sd_optimizer.py` or validate the skill tree with tests. Tests include a deterministic quadratic and a monotone trace check.

## Limitations
This skill is a bounded deterministic optimiser for recovery evidence. It does not replace the paper's full stochastic Riemannian optimiser for large-scale experiments.

## Refinement cycle 1 note
Stress recovery confirmed loss improvement on the deterministic Student-t proxy; keep `params_before` and `params_after` in every optimiser trace.

Files in this skill

  • SKILL.md1.8 KB
  • scripts/minimum_sd_optimizer.py3.5 KB
  • tests/test_minimum_sd_optimizer.py742 B

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.