Skip to content
Back to skills

Export And Artifacts

ASecurity

"Export PySR equations, inspect hall-of-fame artifacts, reload

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

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill export-and-artifacts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Export And Artifacts?

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

Security grade badge for Export And Artifacts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-export-and-artifacts/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-export-and-artifacts)

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: export-and-artifacts
description: "Export PySR equations, inspect hall-of-fame artifacts, reload
  saved runs, and configure optional logging."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# PySR export and artifacts

Use this sub-skill when the user already has, or is about to persist, fitted PySR equations and needs to choose rows, export equations, inspect run artifacts, reload a run, or configure search logging.

## Route here for

- Reading `model.equations_`, `model.get_best()`, selected rows, and `model_selection` behavior.
- Calling `predict(index=...)`, `sympy(index=...)`, `latex(index=...)`, `latex_table(...)`, `jax(index=...)`, or `pytorch(index=...)`.
- Explaining `lambda_format`, `sympy_format`, optional `jax_format`/`torch_format`, and custom export mappings.
- Finding or inspecting `hall_of_fame.csv`, `hall_of_fame_output*.csv`, backup CSVs, and `checkpoint.pkl` under a PySR run directory.
- Reloading with `PySRRegressor.from_file(run_directory=...)` from checkpoint or CSV.
- Choosing `output_directory`, `run_id`, `temp_equation_file`, or `TensorBoardLoggerSpec` settings.

## Route away from here

- If the user has not fit a model yet, start with `../fit-and-diagnose/` for fitting, operator basics, and search-quality diagnosis.
- If export fails because a custom Julia operator has no Python/SymPy/JAX/Torch equivalent, use this sub-skill for the export mapping and `../customization-and-constraints/` for the operator/loss design.
- If the model uses `TemplateExpressionSpec`, use this sub-skill for artifact/reload mechanics but read `../structured-expressions/` before promising SymPy, LaTeX, JAX, or PyTorch export.
- If the issue is Julia startup, parallelism, Slurm, Docker/Apptainer, or installation, route to `../runtime-and-scaling/`.

## Required references

1. Read `references/export-reference.md` for API behavior, row selection, and backend export mappings.
2. Read `references/artifacts-and-reload.md` before giving file-layout, checkpoint, partial-run, `from_file`, `temp_equation_file`, or TensorBoard advice.
3. Read `references/troubleshooting.md` when an export, prediction, reload, or artifact lookup fails.
4. Use `scripts/inspect_equation_artifacts.py --help` to inspect a hall-of-fame CSV without importing PySR.

## Safe operating pattern

1. Identify whether the user has an in-memory fitted model, a run directory, a CSV, or only printed equations.
2. If in memory, inspect `model.equations_` first. For single-output models it is a DataFrame; for multi-output models it is a list of DataFrames.
3. Select rows deliberately. Use `model.get_best()` for the current `model_selection`, or pass `index=` to `get_best`, `predict`, `sympy`, `latex`, `jax`, and `pytorch` when the user wants a specific Pareto-front row.
4. For custom operators, make sure `extra_sympy_mappings` exists before NumPy/SymPy/LaTeX/prediction, and add `extra_jax_mappings` or `extra_torch_mappings` before those optional backends.
5. For persisted runs, prefer `PySRRegressor.from_file(run_directory=...)`. Treat the CSV plus the model-construction code as the durable artifact; treat the pickle checkpoint as convenient but version-sensitive.
6. Do not assume optional dependencies are installed. JAX, PyTorch, TensorBoard, and template-expression exports require separate capability checks.

Files in this skill

  • SKILL.md3.3 KB
  • references/artifacts-and-reload.md7.7 KB
  • references/export-reference.md7.5 KB
  • references/troubleshooting.md6.9 KB
  • scripts/inspect_equation_artifacts.py11.8 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.