# \#shape\_issue

**URL:** https://discourse.pymc.io/tag/shape-issue/36.md

[Latest](https://discourse.pymc.io/latest.md) · [Categories](https://discourse.pymc.io/categories.md) · [Tags](https://discourse.pymc.io/tags.md)

---

## [Could not broadcast error - works with pm.draw and the graph vis shows no problems](https://discourse.pymc.io/t/could-not-broadcast-error-works-with-pm-draw-and-the-graph-vis-shows-no-problems/17554)

<div class="topic-metadata">

**Author:** [@thejasvibr](https://discourse.pymc.io/u/thejasvibr)\
**Replies:** 2\
**Last updated:** [February 12, 2026, 11:21pm UTC](https://discourse.pymc.io/t/could-not-broadcast-error-works-with-pm-draw-and-the-graph-vis-shows-no-problems/17554 "2026-02-12T23:21:25Z")

</div>

Hi All, I’m trying to estimate mic position (Nmics,3 shape) and source location (Nsources,3 shape) given a set of time-differences of a sound’s arrival through approximate Bayesian Computing. I’m constantly getting Va…

---

## [Modeling of multiple regression model with array form](https://discourse.pymc.io/t/modeling-of-multiple-regression-model-with-array-form/12430)

<div class="topic-metadata">

**Author:** [@selmainger326](https://discourse.pymc.io/u/selmainger326)\
**Replies:** 12\
**Last updated:** [December 17, 2024, 10:25pm UTC](https://discourse.pymc.io/t/modeling-of-multiple-regression-model-with-array-form/12430 "2024-12-17T22:25:31Z")

</div>

Hello. I am a beginner in Bayesian Inference and PYMC (Also Python). I have studied multi-objective predictive control using machine learning and deep learning. I wonder whether users can develop the regression (or GP…

---

## [3AFC task modelled as mulitvariate normal 2D - logp shape mismatch](https://discourse.pymc.io/t/3afc-task-modelled-as-mulitvariate-normal-2d-logp-shape-mismatch/14950)

<div class="topic-metadata">

**Author:** [@uferc](https://discourse.pymc.io/u/uferc)\
**Replies:** 0\
**Last updated:** [August 20, 2024, 4:45pm UTC](https://discourse.pymc.io/t/3afc-task-modelled-as-mulitvariate-normal-2d-logp-shape-mismatch/14950 "2024-08-20T16:45:36Z")

</div>

Hi, I am trying to model a decision process where 3 alternatives are available. The 3 alternatives are based in a 2D space. Ultimately I want to test if the model with 3 free parameters with different variances fits bet…

---

## [Correct shapes in multidimensional item response 2PL](https://discourse.pymc.io/t/correct-shapes-in-multidimensional-item-response-2pl/13784)

<div class="topic-metadata">

**Author:** [@slecon](https://discourse.pymc.io/u/slecon)\
**Replies:** 12\
**Last updated:** [February 29, 2024, 1:52pm UTC](https://discourse.pymc.io/t/correct-shapes-in-multidimensional-item-response-2pl/13784 "2024-02-29T13:52:20Z")

</div>

I’m trying to generalize a standard two-parameter logistic IRT model (with one-dimensional latent ability) to a multi-dimensional version. However, I’ve been stuck for days now with the slicing and shaping of the involve…

---

## [Shape error when making out-of-sample predictions](https://discourse.pymc.io/t/shape-error-when-making-out-of-sample-predictions/13568)

<div class="topic-metadata">

**Author:** [@happy\_sampler](https://discourse.pymc.io/u/happy_sampler)\
**Replies:** 13\
**Last updated:** [January 10, 2024, 10:35am UTC](https://discourse.pymc.io/t/shape-error-when-making-out-of-sample-predictions/13568 "2024-01-10T10:35:28Z")

</div>

Hi all, I am having a dimension mismatch error when trying to perform out-of-sample prediction. My code is the following: import pymc as pm import numpy as np def feature\_test(x,N,M): idx = np.arange(M) matri…

---

## [Shape mismatch sample posterior predictive with Binomial](https://discourse.pymc.io/t/shape-mismatch-sample-posterior-predictive-with-binomial/13290)

<div class="topic-metadata">

**Author:** [@hdata](https://discourse.pymc.io/u/hdata)\
**Replies:** 2\
**Last updated:** [November 15, 2023, 10:25am UTC](https://discourse.pymc.io/t/shape-mismatch-sample-posterior-predictive-with-binomial/13290 "2023-11-15T10:25:08Z")

</div>

Hey all, I get a shape mismatch error when running the following model region\_idx, regions = fitting\_subset\['Region'\].factorize() position\_idx, positions = fitting\_subset\['Position'\].factorize() spec\_idx, specialties =…

---

## [Pymc with external GP function](https://discourse.pymc.io/t/pymc-with-external-gp-function/12371)

<div class="topic-metadata">

**Author:** [@E\_San](https://discourse.pymc.io/u/E_San)\
**Replies:** 0\
**Last updated:** [June 21, 2023, 11:35pm UTC](https://discourse.pymc.io/t/pymc-with-external-gp-function/12371 "2023-06-21T23:35:49Z")

</div>

I’m trying to use pymc3 to find the parameter of a set of data modeled through a GP in skit-learn. I want pymc to take samples of the variable H, input this H into my GP to obtain an array, this array will be compared wi…

---

## [Basic linear regression on fuel efficiency of cars/trucks. Trouble with dims](https://discourse.pymc.io/t/basic-linear-regression-on-fuel-efficiency-of-cars-trucks-trouble-with-dims/11954)

<div class="topic-metadata">

**Author:** [@mono](https://discourse.pymc.io/u/mono)\
**Replies:** 1\
**Last updated:** [April 22, 2023, 12:45pm UTC](https://discourse.pymc.io/t/basic-linear-regression-on-fuel-efficiency-of-cars-trucks-trouble-with-dims/11954 "2023-04-22T12:45:54Z")

</div>

Hi, I’m new here. While there are many examples online of different models one can make with pymc, I keep having trouble doing something on my own. I have tried pymc multiple times but I think I eventually always run int…

---

## [Help with setting up a hierarchical GLM model](https://discourse.pymc.io/t/help-with-setting-up-a-hierarchical-glm-model/11655)

<div class="topic-metadata">

**Author:** [@omrihar](https://discourse.pymc.io/u/omrihar)\
**Replies:** 4\
**Last updated:** [March 21, 2023, 12:58pm UTC](https://discourse.pymc.io/t/help-with-setting-up-a-hierarchical-glm-model/11655 "2023-03-21T12:58:44Z")

</div>

I’m trying to set up a Poisson GLM model which is somewhat hierarchical. I read through quite a few blog posts but couldn’t really manage to understand how to apply that to my case. Any help would be greatly appreciated! …

---

## [Shape Issue with Ordered Gaussian Mixture](https://discourse.pymc.io/t/shape-issue-with-ordered-gaussian-mixture/10667)

<div class="topic-metadata">

**Author:** [@TimOliverMaier](https://discourse.pymc.io/u/TimOliverMaier)\
**Replies:** 2\
**Last updated:** [October 25, 2022, 11:30am UTC](https://discourse.pymc.io/t/shape-issue-with-ordered-gaussian-mixture/10667 "2022-10-25T11:30:10Z")

</div>

Hello folks, I am currently working on a modification of the model from the “Gaussian Mixture Model” example notebook (link). The original model looks like this. with pm.Model(coords={"cluster": range(k)}) as model: …

---

## [\[CLOSED\] Help sharing dimension between location and scale in a simple hierarchical model](https://discourse.pymc.io/t/closed-help-sharing-dimension-between-location-and-scale-in-a-simple-hierarchical-model/10134)

<div class="topic-metadata">

**Author:** [@omrihar](https://discourse.pymc.io/u/omrihar)\
**Replies:** 1\
**Last updated:** [August 11, 2022, 2:59pm UTC](https://discourse.pymc.io/t/closed-help-sharing-dimension-between-location-and-scale-in-a-simple-hierarchical-model/10134 "2022-08-11T14:59:48Z")

</div>

Hello, first of all, congratulations on the new and shiny version 4! I’m trying to define a simple hierarchical model, and have a problem in understanding how to use implicit dimensions. My (simplified) code is here: c…

---

## [Shape question on sample\_prior\_predictive()](https://discourse.pymc.io/t/shape-question-on-sample-prior-predictive/8893)

<div class="topic-metadata">

**Author:** [@saiwing](https://discourse.pymc.io/u/saiwing)\
**Replies:** 6\
**Last updated:** [February 25, 2022, 10:42pm UTC](https://discourse.pymc.io/t/shape-question-on-sample-prior-predictive/8893 "2022-02-25T22:42:00Z")

</div>

Hi, I think I have a shape bug in my code but I can’t figure out what’s wrong. Basically, when I run sample\_prior\_predictive() I am getting n times the number of expected number of samples where n is the number of groups…

---

## [Changing shape of shared variable](https://discourse.pymc.io/t/changing-shape-of-shared-variable/2296)

<div class="topic-metadata">

**Author:** [@dlepmet](https://discourse.pymc.io/u/dlepmet)\
**Replies:** 4\
**Last updated:** [December 4, 2018, 10:35am UTC](https://discourse.pymc.io/t/changing-shape-of-shared-variable/2296 "2018-12-04T10:35:13Z")

</div>

I want to run a model on many different datasets. In order to save computational time I would like to avoid setting up a new model for each of the datasets. I was aiming for implementing a similar approach to what was po…
