# Error in weighted inference model

**URL:** <https://discourse.pymc.io/t/error-in-weighted-inference-model/2185>\
**Category:** Questions\
**Created:** [November 10, 2018, 12:34am UTC](https://discourse.pymc.io/t/error-in-weighted-inference-model/2185 "2018-11-10T00:34:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Vital](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/vital/32/909_2.png) [@Vital](https://discourse.pymc.io/u/Vital)\
**Post date:** [November 10, 2018, 3:46am UTC](https://discourse.pymc.io/t/error-in-weighted-inference-model/2185/3 "2018-11-10T03:46:45Z")

</div>

Thank you very much. I have corrected the codes.

I fail to understand why the expected dimension is zero. In the reply by @junpenglao in this [topic](https://discourse.pymc.io/t/how-to-perform-weighted-inference/1825) the Potential function does not include a shape value. (Actually, it seems to me that if you combine the input question with the provided answer none of the functions include a shape attribute)

The dimension 40 comes from the number of data points (and their weights)

---

_[View the full topic](https://discourse.pymc.io/t/error-in-weighted-inference-model/2185)._
