Skip to content

Monkeypatch sampling functions in statespace tests #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jessegrabowski opened this issue Apr 19, 2025 · 3 comments
Open

Monkeypatch sampling functions in statespace tests #464

jessegrabowski opened this issue Apr 19, 2025 · 3 comments
Labels
hackathon Suitable for code sprint project help wanted Extra attention is needed statespace tests

Comments

@jessegrabowski
Copy link
Member

The CI for pymc-extras is extremely slow. This is due to a lot of sampling being done inside the statespace tests. An easy way to speed things up is to monkey patch pm.sample to just return an idata with some dummy data.

I believe @williambdean has already implemented something of this type for the main PyMC repo.

@williambdean
Copy link
Collaborator

williambdean commented Apr 20, 2025

@williambdean
Copy link
Collaborator

williambdean commented Apr 22, 2025

Would be something for pymc.testing module? Maybe just the mock_sample but not the fixture. That's quite specific and small

@jessegrabowski
Copy link
Member Author

Yes I agree. Something at the pymc level that could be used for any downstream package would be extremely welcome

@jessegrabowski jessegrabowski added the help wanted Extra attention is needed label May 12, 2025
@fonnesbeck fonnesbeck added the hackathon Suitable for code sprint project label Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hackathon Suitable for code sprint project help wanted Extra attention is needed statespace tests
Projects
None yet
Development

No branches or pull requests

3 participants