Skip to content

Handle PyMC marginal sample sizes - #210

Open
rpinho wants to merge 1 commit into
exoplanet-dev:mainfrom
rpinho:fix-pymc-sample-size
Open

rpinho wants to merge 1 commit into
exoplanet-dev:mainfrom
rpinho:fix-pymc-sample-size

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026

Copy link
Copy Markdown

Drawing from gp.marginal with size=(4,) raises a shape error, and posterior prediction can fail when PyMC passes an empty size tuple. Allow NumPy broadcasting to validate sample dimensions, preserve the event dimension of d, and treat an empty size tuple as a draw without sample dimensions. Regression tests compare sized draws with draws generated one at a time using the same seed. A posterior predictive test checks the empty-tuple path through PyMC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

This branch has not been deployed

No deployments
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