From 0a3305785a4f3198de327e712a2b065965810a5c Mon Sep 17 00:00:00 2001 From: ricardoV94 Date: Tue, 22 Jul 2025 22:31:46 +0200 Subject: [PATCH 1/3] Fix release_notes_to_discourse script Error 400 was caused by not passing json explicitly. --- scripts/publish_release_notes_to_discourse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/publish_release_notes_to_discourse.py b/scripts/publish_release_notes_to_discourse.py index 53ae792fb..9891fba4f 100644 --- a/scripts/publish_release_notes_to_discourse.py +++ b/scripts/publish_release_notes_to_discourse.py @@ -64,7 +64,7 @@ def format_release_content(config: dict[str, str]) -> tuple[str, str]: - **Version:** `{config["RELEASE_TAG"]}` - **Repository:** [{config["REPO_NAME"]}](https://github.com/{config["REPO_NAME"]}) -- **Release Page:** [View on GitHub]({config["RELEASE_URL"]}) +- **Release Page:** {config["RELEASE_URL"]} - Note: It may take some time for the release to appear on PyPI and conda-forge. ## 📋 Release Notes @@ -105,7 +105,7 @@ def publish_release_to_discourse(config: dict[str, str]) -> bool: url = f"{config['DISCOURSE_URL']}/posts.json" try: - response = requests.post(url, headers=headers, data=topic_data) + response = requests.post(url, headers=headers, json=topic_data) response.raise_for_status() data = response.json() From bb3053811f05fcd188ad4a4d095669a236398ab5 Mon Sep 17 00:00:00 2001 From: Will Dean <57733339+williambdean@users.noreply.github.com> Date: Wed, 23 Jul 2025 08:00:05 -0400 Subject: [PATCH 2/3] Fix ICAR docstring latex --- pymc/distributions/multivariate.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pymc/distributions/multivariate.py b/pymc/distributions/multivariate.py index 5dd2509ef..e7a8f5dc2 100644 --- a/pymc/distributions/multivariate.py +++ b/pymc/distributions/multivariate.py @@ -2373,15 +2373,15 @@ class ICAR(Continuous): .. math:: f(\phi| W,\sigma) = -\frac{1}{2\sigma^{2}} \sum_{i\sim j} (\phi_{i} - \phi_{j})^2 - - \frac{1}{2}*\frac{\sum_{i}{\phi_{i}}}{0.001N}^{2} - \ln{\sqrt{2\\pi}} - + \frac{1}{2}*\frac{\sum_{i}{\phi_{i}}}{0.001N}^{2} - \ln{\sqrt{2\pi}} - \ln{0.001N} - The first term represents the spatial covariance component. Each $\\phi_{i}$ is penalized - based on the square distance from each of its neighbors. The notation $i\\sim j$ - indicates a sum over all the neighbors of $\\phi_{i}$. The last three terms are the + The first term represents the spatial covariance component. Each :math:`\phi_{i}` is penalized + based on the square distance from each of its neighbors. The notation :math:`i \sim j` + indicates a sum over all the neighbors of :math:`\phi_{i}`. The last three terms are the Normal log density function where the mean is zero and the standard deviation is - $N * 0.001$ (where N is the length of the vector $\\phi$). This component imposes - a zero-sum constraint by finding the sum of the vector $\\phi$ and penalizing based + N * 0.001 (where N is the length of the vector :math:`\phi`). This component imposes + a zero-sum constraint by finding the sum of the vector :math:`\phi` and penalizing based on its distance from zero. Parameters From 5d4c33cf19626502bd8035d5acc36b4980fca731 Mon Sep 17 00:00:00 2001 From: Will Dean Date: Wed, 23 Jul 2025 08:31:14 -0400 Subject: [PATCH 3/3] use latex for LKJCorr --- pymc/distributions/multivariate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymc/distributions/multivariate.py b/pymc/distributions/multivariate.py index e7a8f5dc2..4415f5ec2 100644 --- a/pymc/distributions/multivariate.py +++ b/pymc/distributions/multivariate.py @@ -1656,7 +1656,7 @@ class LKJCorr: The LKJ distribution is a prior distribution for correlation matrices. If eta = 1 this corresponds to the uniform distribution over correlation - matrices. For eta -> oo the LKJ prior approaches the identity matrix. + matrices. For eta :math:`\to \infty` the LKJ prior approaches the identity matrix. ======== ============================================== Support Upper triangular matrix with values in [-1, 1]