pymc icon indicating copy to clipboard operation
pymc copied to clipboard

Approximation's sample method uses model contexts

Open zaxtax opened this issue 1 month ago • 2 comments

This change makes it so calling sample on fitted approximations uses the model context or an explicitly provided model. Previously, this had a hard assumption that we only want to sample from the same model as the one we fitted.

This also deprecates self.model.

Checklist

Type of change

  • [x] New feature / enhancement
  • [ ] Bug fix
  • [ ] Documentation
  • [ ] Maintenance
  • [ ] Other (please specify):

📚 Documentation preview 📚: https://pymc--7940.org.readthedocs.build/en/7940/

zaxtax avatar Oct 29 '25 01:10 zaxtax