Skip to content

Commit

Permalink
Bump Pytensor dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Sep 14, 2023
1 parent ec64d40 commit f77372c
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion conda-envs/environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- numpy>=1.15.0
- pandas>=0.24.0
- pip
- pytensor>=2.15.0,<2.16
- pytensor>=2.16.1,<2.17
- python-graphviz
- networkx
- scipy>=1.4.1
Expand Down
2 changes: 1 addition & 1 deletion conda-envs/environment-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- numpy>=1.15.0
- pandas>=0.24.0
- pip
- pytensor>=2.15.0,<2.16
- pytensor>=2.16.1,<2.17
- python-graphviz
- scipy>=1.4.1
- typing-extensions>=3.7.4
Expand Down
2 changes: 1 addition & 1 deletion conda-envs/environment-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
- numpy>=1.15.0
- pandas>=0.24.0
- pip
- pytensor>=2.15.0,<2.16
- pytensor>=2.16.1,<2.17
- python-graphviz
- networkx
- scipy>=1.4.1
Expand Down
2 changes: 1 addition & 1 deletion conda-envs/windows-environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- numpy>=1.15.0
- pandas>=0.24.0
- pip
- pytensor>=2.15.0,<2.16
- pytensor>=2.16.1,<2.17
- python-graphviz
- networkx
- scipy>=1.4.1
Expand Down
2 changes: 1 addition & 1 deletion conda-envs/windows-environment-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
- numpy>=1.15.0
- pandas>=0.24.0
- pip
- pytensor>=2.15.0,<2.16
- pytensor>=2.16.1,<2.17
- python-graphviz
- networkx
- scipy>=1.4.1
Expand Down
2 changes: 1 addition & 1 deletion pymc/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from pytensor.tensor.random.basic import IntegersRV
from pytensor.tensor.subtensor import AdvancedSubtensor
from pytensor.tensor.type import TensorType
from pytensor.tensor.var import TensorConstant, TensorVariable
from pytensor.tensor.variable import TensorConstant, TensorVariable

import pymc as pm

Expand Down
2 changes: 1 addition & 1 deletion pymc/distributions/bound.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from pytensor.tensor import as_tensor_variable
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

from pymc.distributions.continuous import BoundedContinuous, bounded_cont_transform
from pymc.distributions.dist_math import check_parameters
Expand Down
2 changes: 1 addition & 1 deletion pymc/distributions/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
vonmises,
)
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.var import TensorConstant
from pytensor.tensor.variable import TensorConstant

from pymc.logprob.abstract import _logcdf_helper, _logprob_helper
from pymc.logprob.basic import icdf
Expand Down
2 changes: 1 addition & 1 deletion pymc/distributions/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from pytensor.tensor.random.rewriting import local_subtensor_rv_lift
from pytensor.tensor.random.utils import normalize_size_param
from pytensor.tensor.rewriting.shape import ShapeFeature
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable
from typing_extensions import TypeAlias

from pymc.distributions.shape_utils import (
Expand Down
2 changes: 1 addition & 1 deletion pymc/distributions/shape_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from pytensor.raise_op import Assert
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.shape import SpecifyShape
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable
from typing_extensions import TypeAlias

from pymc.model import modelcontext
Expand Down
2 changes: 1 addition & 1 deletion pymc/distributions/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from pytensor.graph.op import Apply, Op
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable
from scipy.spatial import cKDTree

from pymc.distributions.distribution import Distribution, _moment
Expand Down
2 changes: 1 addition & 1 deletion pymc/gp/cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from pytensor.graph.basic import Variable
from pytensor.tensor.sharedvar import TensorSharedVariable
from pytensor.tensor.var import TensorConstant, TensorVariable
from pytensor.tensor.variable import TensorConstant, TensorVariable

__all__ = [
"Constant",
Expand Down
2 changes: 1 addition & 1 deletion pymc/gp/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import pytensor.tensor as pt

from pytensor.compile import SharedVariable
from pytensor.tensor.var import TensorConstant
from pytensor.tensor.variable import TensorConstant
from scipy.cluster.vq import kmeans

# Avoid circular dependency when importing modelcontext
Expand Down
2 changes: 1 addition & 1 deletion pymc/initial_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from pytensor.graph.basic import Variable
from pytensor.graph.fg import FunctionGraph
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

from pymc.logprob.transforms import RVTransform
from pymc.pytensorf import compile_pymc, find_rng_nodes, replace_rng_nodes, reseed_rngs
Expand Down
2 changes: 1 addition & 1 deletion pymc/logprob/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
)
from pytensor.graph.op import compute_test_value
from pytensor.graph.rewriting.basic import GraphRewriter, NodeRewriter
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable
from typing_extensions import TypeAlias

from pymc.logprob.abstract import (
Expand Down
2 changes: 1 addition & 1 deletion pymc/logprob/censoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from pytensor.scalar.basic import Ceil, Clip, Floor, RoundHalfToEven
from pytensor.scalar.basic import clip as scalar_clip
from pytensor.tensor.math import ceil, clip, floor, round_half_to_even
from pytensor.tensor.var import TensorConstant
from pytensor.tensor.variable import TensorConstant

from pymc.logprob.abstract import MeasurableElemwise, _logcdf, _logprob
from pymc.logprob.rewriting import PreserveRVMappings, measurable_ir_rewrites_db
Expand Down
2 changes: 1 addition & 1 deletion pymc/logprob/mixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
)
from pytensor.tensor.type import TensorType
from pytensor.tensor.type_other import NoneConst, NoneTypeT, SliceConstant, SliceType
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

from pymc.logprob.abstract import (
MeasurableElemwise,
Expand Down
2 changes: 1 addition & 1 deletion pymc/logprob/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
from pytensor.tensor.exceptions import NotScalarConstantError
from pytensor.tensor.math import Max
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

from pymc.logprob.abstract import (
MeasurableVariable,
Expand Down
2 changes: 1 addition & 1 deletion pymc/logprob/rewriting.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
IncSubtensor,
Subtensor,
)
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

from pymc.logprob.abstract import MeasurableVariable
from pymc.logprob.utils import DiracDelta, indices_from_subtensor
Expand Down
2 changes: 1 addition & 1 deletion pymc/logprob/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from pytensor.scan.utils import ScanArgs
from pytensor.tensor.random.type import RandomType
from pytensor.tensor.subtensor import Subtensor, indices_from_subtensor
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable
from pytensor.updates import OrderedUpdates

from pymc.logprob.abstract import MeasurableVariable, _logprob
Expand Down
2 changes: 1 addition & 1 deletion pymc/logprob/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
tanh,
true_div,
)
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

from pymc.logprob.abstract import (
MeasurableElemwise,
Expand Down
2 changes: 1 addition & 1 deletion pymc/logprob/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
from pytensor.link.c.type import CType
from pytensor.raise_op import CheckAndRaise
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

from pymc.logprob.abstract import MeasurableVariable, _logprob
from pymc.util import makeiter
Expand Down
2 changes: 1 addition & 1 deletion pymc/model/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.random.type import RandomType
from pytensor.tensor.sharedvar import ScalarSharedVariable
from pytensor.tensor.var import TensorConstant, TensorVariable
from pytensor.tensor.variable import TensorConstant, TensorVariable
from typing_extensions import Self

from pymc.blocking import DictToArrayBijection, RaveledVars
Expand Down
2 changes: 1 addition & 1 deletion pymc/model_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from pytensor.tensor.elemwise import Elemwise
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.shape import Shape
from pytensor.tensor.var import TensorConstant, TensorVariable
from pytensor.tensor.variable import TensorConstant, TensorVariable

import pymc as pm

Expand Down
2 changes: 1 addition & 1 deletion pymc/pytensorf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
from pytensor.tensor.rewriting.shape import ShapeFeature
from pytensor.tensor.sharedvar import SharedVariable, TensorSharedVariable
from pytensor.tensor.subtensor import AdvancedIncSubtensor, AdvancedIncSubtensor1
from pytensor.tensor.var import TensorConstant, TensorVariable
from pytensor.tensor.variable import TensorConstant, TensorVariable

from pymc.exceptions import NotConstantValueError
from pymc.logprob.transforms import RVTransform
Expand Down
2 changes: 1 addition & 1 deletion pymc/variational/approximations.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from pytensor import tensor as pt
from pytensor.graph.basic import Variable
from pytensor.graph.replace import graph_replace
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

import pymc as pm

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ numpydoc
pandas>=0.24.0
polyagamma
pre-commit>=2.8.0
pytensor>=2.15.0,<2.16
pytensor>=2.16.1,<2.17
pytest-cov>=2.5
pytest>=3.0
scipy>=1.4.1
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ cloudpickle
fastprogress>=0.2.0
numpy>=1.15.0
pandas>=0.24.0
pytensor>=2.15.0,<2.16
pytensor>=2.16.1,<2.17
scipy>=1.4.1
typing-extensions>=3.7.4
2 changes: 1 addition & 1 deletion tests/distributions/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import pytensor.tensor as pt
import pytest

from pytensor.tensor.var import TensorConstant
from pytensor.tensor.variable import TensorConstant

import pymc as pm
import pymc.distributions.transforms as tr
Expand Down
2 changes: 1 addition & 1 deletion tests/model/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from pytensor.tensor import TensorVariable
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.sharedvar import ScalarSharedVariable
from pytensor.tensor.var import TensorConstant
from pytensor.tensor.variable import TensorConstant

import pymc as pm

Expand Down
2 changes: 1 addition & 1 deletion tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import pytest

from pytensor import shared
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

import pymc as pm

Expand Down
2 changes: 1 addition & 1 deletion tests/test_model_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import pytest

from pytensor.compile.sharedvalue import SharedVariable
from pytensor.tensor.var import TensorConstant
from pytensor.tensor.variable import TensorConstant

import pymc as pm

Expand Down
2 changes: 1 addition & 1 deletion tests/test_pytensorf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from pytensor.tensor.random.var import RandomStateSharedVariable
from pytensor.tensor.slinalg import Cholesky
from pytensor.tensor.subtensor import AdvancedIncSubtensor, AdvancedIncSubtensor1
from pytensor.tensor.var import TensorVariable
from pytensor.tensor.variable import TensorVariable

import pymc as pm

Expand Down

0 comments on commit f77372c

Please sign in to comment.