# Using Gaussian Process model to make inference?

**URL:** <https://discourse.pymc.io/t/using-gaussian-process-model-to-make-inference/11311>\
**Category:** v5\
**Tags:** gaussian\_process\
**Created:** [February 2, 2023, 2:54pm UTC](https://discourse.pymc.io/t/using-gaussian-process-model-to-make-inference/11311 "2023-02-02T14:54:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fonnesbeck](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/fonnesbeck/32/13_2.png) [@fonnesbeck](https://discourse.pymc.io/u/fonnesbeck)\
**Post date:** [February 5, 2023, 9:16pm UTC](https://discourse.pymc.io/t/using-gaussian-process-model-to-make-inference/11311/2 "2023-02-05T21:16:58Z")

</div>

For the marginal likelihood GP, the likelihood is always Gaussian, and is wrapped up in the `marginal_likelihood` function. I’m not exactly sure what the question is here. Are you looking to generate samples from the GP? If so, you’d want to look at using the `conditional` method after fitting the model. For example:

```auto
with gp_model:
  f_pred = gp.conditional('f_pred', X_New)
  pm.sample_posterior_predictive(trace, extend_inferencedata=True)

```

---

_[View the full topic](https://discourse.pymc.io/t/using-gaussian-process-model-to-make-inference/11311)._
