Skip to main content

mlflow-cynex

Cynex trajectory viewer integration for MLflow. Adds a "View in Cynex" button to MLflow's artifact browser for trajectory JSON files.

Installation

pip install mlflow-cynex
mlflow-cynex install

Then restart your MLflow server.

Usage

Logging Trajectories

The package provides a helper function to log trajectories to MLflow:

from mlflow_cynex import log_trajectory
import mlflow

mlflow.set_tracking_uri("http://localhost:5000")

with mlflow.start_run():
    trajectory = {
        "blue_agent_name": "PPO",
        "red_agent_name": "Meander",
        "episode": 0,
        "blue_actions": [...],
        "red_actions": [...],
        "metric_scores": [...],
        "network_topology": {...}
    }
    log_trajectory(trajectory)

The trajectory is automatically:

  • Validated against the expected schema
  • Saved to trajectories/<name>-trajectory.json in MLflow artifacts

Custom Naming

log_trajectory(trajectory, name="my-custom-name")
# Saved as: trajectories/my-custom-name.json

Validation Only

from mlflow_cynex import validate_trajectory, TrajectoryValidationError

try:
    validate_trajectory(data)
except TrajectoryValidationError as e:
    print(f"Invalid trajectory: {e}")

Trajectory Detection

The "View in Cynex" button appears for JSON files that:

  • Are in a trajectories/ folder, OR
  • Match *-trajectory.json or *_trajectory.json pattern

CLI Commands

mlflow-cynex install    # Install Cynex viewer into MLflow
mlflow-cynex uninstall  # Remove Cynex viewer from MLflow
mlflow-cynex status     # Check installation status

Development

Build from source:

cd cynex/mlflow-integration
./scripts/build.sh
pip install dist/mlflow_cynex-*.whl

License

MIT

Release files for mlflow-cynex 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlflow-cynex 0.1.14
File Size Uploaded
mlflow_cynex-0.1.14.tar.gz 760.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlflow-cynex 0.1.14
File Interpreter ABI Platform
mlflow_cynex-0.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 1.5 MB

Release files / mlflow_cynex-0.1.14.tar.gz

Download URL mlflow_cynex-0.1.14.tar.gz
Size 760.4 kB
Tags Source
SHA-256 checksum
How to use checksums
20a5caad2b4da0e2b4a7f03299870290f25c0aecbef5c3953b39546844f1f1c9
BLAKE2b-256 checksum
How to use checksums
503c77b8de2ae3f2f5a1b6dcc649f64cccbe21bdd6d4e8b1975c67fb4a033808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

Release files / mlflow_cynex-0.1.14-py3-none-any.whl

Download URL mlflow_cynex-0.1.14-py3-none-any.whl
Size 765.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
304b8a6c0c5559433c3fa4be928c98fae67e1f97dad4fc926baabe648c5b2e58
BLAKE2b-256 checksum
How to use checksums
e8057994be2aa79666a86dde7465fe7a207f2e4b529fd0940bae5eed0a5d8949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page