# About a function of Pymc3 for Posterior prediction

**URL:** <https://discourse.pymc.io/t/about-a-function-of-pymc3-for-posterior-prediction/7061>\
**Category:** Questions\
**Created:** [March 23, 2021, 1:30pm UTC](https://discourse.pymc.io/t/about-a-function-of-pymc3-for-posterior-prediction/7061 "2021-03-23T13:30:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cak](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/cak/32/2193_2.png) [@cak](https://discourse.pymc.io/u/cak)\
**Post date:** [March 23, 2021, 1:30pm UTC](https://discourse.pymc.io/t/about-a-function-of-pymc3-for-posterior-prediction/7061/1 "2021-03-23T13:30:26Z")

</div>

Hello! I found a questions that I planned to get some predictions and I remembered that there have a function of pymc3 which named ‘sample\_ppc’ .  
However , When I Called the’ sample\_ppc’ function, The system told me that " Model ‘pymc3’ has no attribute ‘sample\_ppc’".  
Can someone who is worm-hearted tell me what happend 。  
Thanks for your reading!!!

---

<div class="post-metadata">

**Author:** ![ricardoV94](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ricardov94/32/5775_2.png) [@ricardoV94](https://discourse.pymc.io/u/ricardoV94)\
**Post date:** [March 23, 2021, 1:57pm UTC](https://discourse.pymc.io/t/about-a-function-of-pymc3-for-posterior-prediction/7061/2 "2021-03-23T13:57:02Z")

</div>

It’s now called `pm.sample_posterior_predictive`

---

<div class="post-metadata">

**Author:** ![cak](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/cak/32/2193_2.png) [@cak](https://discourse.pymc.io/u/cak)\
**Post date:** [March 24, 2021, 11:04am UTC](https://discourse.pymc.io/t/about-a-function-of-pymc3-for-posterior-prediction/7061/3 "2021-03-24T11:04:53Z")

</div>

OK！I will try it again.Thanks.
