Skip to content

v2: decision boundaries of TablePrior tables in the README - #164

Merged
kvignesh1420 merged 3 commits into
v2from
v2-decision-boundaries
Nov 10, 2026
Merged

kvignesh1420 merged 3 commits into
v2from
v2-decision-boundaries

Conversation

@kvignesh1420

@kvignesh1420 kvignesh1420 commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • examples/figures/decision_boundaries.py draws the decision boundaries of tables from TablePrior:
    • Two numeric scalar nodes upstream of a categorical column are held on a grid over their 2–98% quantiles.
    • Every other source is held at a typical value: its median, or its most common level for a categorical source.
    • Each cell shows the class drawn most often over 25 data seeds. These are the mechanism's own boundaries, not a fitted classifier.
  • For each table seed, the script takes the first column and pair whose map is clear:
    • 2 to 6 classes, none above 80%;
    • changes along both axes;
    • little speckle.
  • The pair search runs on a 120×120 grid and the figure is drawn at 300×300. The six largest classes get colours and any others are grey.
  • The README shows the 2×4 figure under Random tables and databases. examples/README.md lists the new figures/ folder and the command to run it.

The eight tables (seeds 45, 102, 225, 115, 47, 87, 123, 262) cover curved boundaries, repeating cells and axis-aligned boxes.

Checks

  • matplotlib is added to the pixi environment as a PyPI dependency only. plurel's own dependencies are unchanged, and the lock file only adds packages (numpy stays at 2.5.1).
  • pixi run recipes now also runs examples/figures. With PLUREL_QUICK=1 it draws one table on the coarse grid in about 2 s. The CI package job installs matplotlib for it.
  • The script runs under threadpool_limits(1). The default run takes about a minute on one core (64 s on an Apple M4), and with the pixi environment it reproduces the committed PNG byte for byte.
  • pixi run lint, pixi run examples and pixi run recipes pass.

🤖 Generated with Claude Code

examples/figures/decision_boundaries.py holds two numeric causes of a categorical column on a
grid, other sources at their medians, and draws the class each cell gets most often over 25 data
seeds, for eight table seeds. The README shows the figure under Random tables and databases.
Categorical sources are held at their most common level instead of an all-zeros median, levels
are the union over draws, and the six largest classes get colours with the rest grey. matplotlib
joins the pixi environment as a PyPI dependency (numpy unchanged), recipes draw one table in quick
mode, and the package job installs matplotlib for it. README wording and runtimes corrected.
The figure script runs under threadpool_limits(1), which brings the default run back to about a
minute on one core; the committed PNG is unchanged. run_recipes and the CI package job say that
figures run in quick mode and need matplotlib.
@kvignesh1420
kvignesh1420 merged commit 1b384d6 into v2 Nov 10, 2026
5 checks passed
@kvignesh1420
kvignesh1420 deleted the v2-decision-boundaries branch November 10, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant