Skip to content
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

Pytensor only #614

Merged
merged 5 commits into from
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions bambi/backend/links.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import numpy as np

try:
import pytensor.tensor as pt
except ModuleNotFoundError:
import aesara.tensor as pt
import pytensor.tensor as pt


def probit(x):
Expand Down
9 changes: 3 additions & 6 deletions bambi/backend/pymc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
import numpy as np
import pymc as pm

try:
import pytensor.tensor as pt
from pytensor.tensor.special import softmax
except ModuleNotFoundError:
import aesara.tensor as pt
from aesara.tensor.nnet import softmax
import pytensor.tensor as pt
from pytensor.tensor.special import softmax


from bambi import version

Expand Down
5 changes: 1 addition & 4 deletions bambi/backend/terms.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import numpy as np
import pymc as pm

try:
import pytensor.tensor as pt
except ModuleNotFoundError:
import aesara.tensor as pt
import pytensor.tensor as pt

from bambi.backend.utils import has_hyperprior, get_distribution
from bambi.families.multivariate import MultivariateFamily
Expand Down
5 changes: 1 addition & 4 deletions bambi/backend/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
try:
import pytensor.tensor as pt
except ModuleNotFoundError:
import aesara.tensor as pt
import pytensor.tensor as pt
import pymc as pm


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ arviz>=0.11.2
formulae==0.3.4
numpy>1.22
pandas>=1.0.0
pymc>=4.0.0
pymc>=5.0.0
scipy>=1.7.0
setuptools>47.1.0