Skip to content

Reports and tools

A dataset of thousands of operators is hard to inspect from JSON lines, and a configuration file is easy to get wrong.

HTML report

opulse viz writes a single self-contained HTML file: the dependency graph laid out by layer (click a node for its definition, dependencies and dependents), per-layer statistics, and, with --expressions, result distributions, operator usage and a sample browser.

opulse operators --out outputs/operators.jsonl --layers 2 1
opulse expressions --operators outputs/operators.jsonl --out outputs/expressions.jsonl --count 3
opulse viz --operators outputs/operators.jsonl --expressions outputs/expressions.jsonl --out outputs/report

The report for the quickstart data (open it full screen):

Configuration wizard

opulse wizard asks for every setting with its default filled in, validates the answers with the same settings classes the generator uses, and writes a YAML configuration. --dry-run grows two small layers with it and prints sample definitions and expressions.

# run
mkdir -p outputs
cat > outputs/answers.json <<'JSON'
{}
JSON
opulse wizard --out outputs/mine.yaml --answers outputs/answers.json --dry-run
opulse wizard --out outputs/mine.yaml --answers outputs/answers.json

Cost fitting

opulse complexity measures base_ops of every operator on inputs spanning six orders of magnitude in both signs, plus one input per branch found by z3, and fits candidate cost models (constant, logarithmic, linear, n log n, quadratic, and their two-argument forms) by least squares, choosing by BIC. The fit describes measured costs, not a worst-case bound; R² shows how well it fits.

{"func_id": "02wtavZ2bd", "symbol": "♤₁₁", "model": "constant", "r2": 1.0, "max_abs_residual": 0.0, "n_points": 84, "branch_coverage": 1.0}
{"func_id": "vSGEK9n4ny", "symbol": "♣₂₅", "model": "bounded_mod", "r2": 0.976, "max_abs_residual": 4.0, "n_points": 83, "branch_coverage": 1.0}