Skip to content
Back to skills

Conditional Ot Paths

ASecurity

Construct and validate Flow Matching conditional optimal-transport paths and target vector fields for paired noise/data samples.

  • 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 conditional_ot_paths --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conditional Ot Paths?

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

Security grade badge for Conditional Ot Paths
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-conditional-ot-paths/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-conditional-ot-paths)

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

SKILL.md
---
name: conditional_ot_paths
description: Construct and validate Flow Matching conditional optimal-transport paths and target vector fields for paired noise/data samples.
---

# Conditional OT Paths

Use this skill when a recovery or implementation needs the paper's conditional optimal-transport path from a base sample `x0` to a data sample `x1` and the corresponding regression target for Conditional Flow Matching. Do not use it to train a neural network or integrate a CNF; those are separate contracts.

## Inputs

- Equal-length numeric vectors `x0` and `x1`.
- A time `t` in `[0, 1]`.
- `sigma_min` in `(0, 1]` for the OT variance schedule.

## Outputs

- `x_t = (1 - (1 - sigma_min)t) x0 + t x1`.
- `u_t = x1 - (1 - sigma_min) x0`.
- Diagnostics for endpoint consistency, finite values, and target invariance.

## Workflow

1. Validate vector dimensions and scalar ranges before computing path values.
2. Use `scripts/ot_paths.py` to compute `x_t`, `u_t`, and diagnostics.
3. Treat `u_t` as the target for a vector-field regressor; do not modify it with downstream loss weighting.
4. Preserve the distinction between the conditional path sample and the marginal CNF trajectory.

## Validation

Run:

```bash
python tests/test_ot_paths.py
python scripts/ot_paths.py --x0 '[0, 1]' --x1 '[2, 3]' --t 0.5
```

## Limitations

This skill implements the deterministic Gaussian OT-path formulas used for fast proxy validation. It does not estimate marginal vector fields or train image-scale models.

Cycle refinement: invalid times must fail before any recovery harness consumes the path sample.

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…