Skip to content

Commit d645dd3

Browse files
andyl7anThe Meridian Authors
authored andcommitted
Update TensorFlow Probability dependency to tfp-nightly.
PiperOrigin-RevId: 875794368
1 parent ce806e9 commit d645dd3

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
strategy:
7979
max-parallel: 8
8080
matrix:
81-
python-version: ["3.10", "3.11", "3.12", "3.13"]
81+
python-version: ["3.11", "3.12", "3.13"]
8282
meridian-backend: ["tensorflow", "jax"]
8383
concurrency:
8484
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.python-version }}-${{ matrix.meridian-backend }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ To release a new version (e.g. from `1.0.0` -> `2.0.0`):
2323

2424
## [Unreleased]
2525

26+
* Dropped support for Python 3.10. The minimum required Python version is now
27+
3.11.
28+
* Upgraded JAX dependencies to version `0.7.2`.
29+
2630
## [1.5.2] - 2026-02-10
2731

2832
* Move `schema` package as `meridian.schema`.

meridian/schema/processors/reach_frequency_optimization_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def _create_frequency_outcome_grid(
447447
aggregated_reach = backend.einsum(
448448
f"{input_tensor_dims}->...{output_tensor_dims}", filtered_reach
449449
)
450-
reach = aggregated_reach.numpy()[-1]
450+
reach = np.asarray(aggregated_reach)[-1]
451451

452452
metric_data_array = optimal_frequency_dataset[constants.ROI].sel(
453453
frequency=frequency, rf_channel=channel

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ dependencies = [
3434
"pandas >= 2.2.2, < 3",
3535
"scipy >= 1.13.1, < 2",
3636
"statsmodels >= 0.14.5",
37-
"tensorflow >= 2.18, < 2.21",
38-
"tensorflow-probability >= 0.25, < 0.26",
37+
"tensorflow >= 2.19.0, < 2.21",
38+
"tfp-nightly == 0.26.0.dev20260130",
3939
"tf-keras >= 2.18, < 2.21",
4040
"xarray",
4141
]
@@ -66,17 +66,17 @@ colab = [
6666
# GPU deps
6767
# Installed through `pip install -e .[and-cuda]`
6868
and-cuda = [
69-
"tensorflow[and-cuda] >= 2.18, < 2.21",
69+
"tensorflow[and-cuda] >= 2.19.0, < 2.21",
7070
]
7171
# MLflow deps
7272
# Installed through `pip install -e .[mlflow]`
7373
mlflow = ["mlflow"]
7474
# JAX backend dependencies.
7575
# Installed through `pip install -e .[jax]`
7676
jax = [
77-
"jax==0.5.3",
78-
"jaxlib==0.5.3",
79-
"tensorflow-probability[substrates-jax]==0.25.0",
77+
"jax==0.7.2",
78+
"jaxlib==0.7.2",
79+
"tfp-nightly[substrates-jax]==0.26.0.dev20260130",
8080
]
8181
# MMM proto schema.
8282
schema = [

0 commit comments

Comments
 (0)