Skip to content
Back to skills

Cnf Ode Sampling

ASecurity

Integrate learned Flow Matching vector fields with fixed-step ODE solvers and report trajectory/error diagnostics.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
testingpythonbash

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Cnf Ode Sampling?

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

Security grade badge for Cnf Ode Sampling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cnf-ode-sampling/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cnf-ode-sampling)

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

SKILL.md
---
name: cnf_ode_sampling
description: Integrate learned Flow Matching vector fields with fixed-step ODE solvers and report trajectory/error diagnostics.
---

# CNF ODE Sampling

Use this skill when a recovery or implementation has a time-dependent vector field and needs to generate samples by integrating the CNF ODE from noise toward data. Do not use it to define conditional OT paths or train the CFM loss.

## Inputs

- Initial vector `x0`.
- A vector-field callable `f(t, x)` or one of the built-in deterministic proxy fields.
- Step count and solver name: `euler`, `midpoint`, or `rk4`.

## Outputs

- Final state.
- Full trajectory including the initial state.
- Number of function evaluations.
- Optional mean-squared error against an analytic reference.

## Workflow

1. Validate the step count and solver choice.
2. Integrate over `t in [0, 1]` using the chosen fixed-step solver.
3. Record NFE so recovery can compare low-cost samplers.
4. Compare against an analytic displacement reference when available.

## Validation

Run:

```bash
python tests/test_ode_sampling.py
python scripts/ode_sampling.py --x0 '[0, 1]' --velocity '[2, -1]' --steps 4 --solver rk4
```

## Limitations

This skill provides bounded deterministic ODE checks for recovery. It is not an adaptive ODE package and does not estimate likelihoods.

Cycle refinement: recovery reports NFE because Flow Matching sampling cost is part of the mechanism check.

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…