pymc-devs / pymc-bart

https://www.pymc.io/projects/bart
Other
87 stars 17 forks source link

Resolve deprecation warning for `pytensor`'s `Variable` #159

Closed RyanAugust closed 5 months ago

RyanAugust commented 6 months ago

Pytensor has renamed pytensor.tensor.var to pytensor.tensor.variable. Imports in pymc_bart rely on the legacy .var call, which within pytensor resolves by throwing a warning and importing the renamed variable sub-module. Pytensor commit ref

This PR simply updates pymc_bart to call the modern .variable directly

aloctavodia commented 5 months ago

Thanks @RyanAugust!