# \#gaussian\_process

**URL:** https://discourse.pymc.io/tag/gaussian-process/23.md

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

---

## [Hierarchical GPs with varying lengthscales](https://discourse.pymc.io/t/hierarchical-gps-with-varying-lengthscales/17172)

<div class="topic-metadata">

**Author:** [@mike-lawrence](https://discourse.pymc.io/u/mike-lawrence)\
**Replies:** 7\
**Last updated:** [July 10, 2025, 7:47am UTC](https://discourse.pymc.io/t/hierarchical-gps-with-varying-lengthscales/17172 "2025-07-10T07:47:58Z")

</div>

Hi folks, I’m actually testing a new implementation of hierarchical GPs that I hope will be faster than how they’re typically implemented, but I need a reasonable typical implementation to compare against. I came up wit…

---

## [HSGP + Intrinsic Coregionalization Model, is this possible?](https://discourse.pymc.io/t/hsgp-intrinsic-coregionalization-model-is-this-possible/16720)

<div class="topic-metadata">

**Author:** [@Cricket4444](https://discourse.pymc.io/u/Cricket4444)\
**Replies:** 4\
**Last updated:** [May 28, 2025, 2:30pm UTC](https://discourse.pymc.io/t/hsgp-intrinsic-coregionalization-model-is-this-possible/16720 "2025-05-28T14:30:08Z")

</div>

I’m trying to follow this example: Multi-output Gaussian Processes: Coregionalization models using Hamadard product — PyMC example gallery especially I’m interested in predicting the outcomes within temporal gaps for so…

---

## [Saving and loading GP model using trace data gives wrong output shape](https://discourse.pymc.io/t/saving-and-loading-gp-model-using-trace-data-gives-wrong-output-shape/17022)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.pymc.io/u/cola)\
**Replies:** 0\
**Last updated:** [May 20, 2025, 3:48pm UTC](https://discourse.pymc.io/t/saving-and-loading-gp-model-using-trace-data-gives-wrong-output-shape/17022 "2025-05-20T15:48:22Z")

</div>

Hello, I am trying to save and load the trace from a gp model to use the model for production. Here is my trial, everything seems to work except that I expect the gp.predict to give me one output for each Xnew input, ho…

---

## [Marginal Gaussian with y=None vs Latent Gaussian](https://discourse.pymc.io/t/marginal-gaussian-with-y-none-vs-latent-gaussian/16964)

<div class="topic-metadata">

**Author:** [@gdel](https://discourse.pymc.io/u/gdel)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 1:28am UTC](https://discourse.pymc.io/t/marginal-gaussian-with-y-none-vs-latent-gaussian/16964 "2025-05-12T01:28:25Z")

</div>

In a time series model with regressors, I would like to model the trend with a Gaussian process. I see that I can describe the model either with a Marginal Gaussian process (with y=None and a small noise) or a Latent Gau…

---

## [Symbolic gradient of GP posterior predictions](https://discourse.pymc.io/t/symbolic-gradient-of-gp-posterior-predictions/14566)

<div class="topic-metadata">

**Author:** [@BioGoertz](https://discourse.pymc.io/u/BioGoertz)\
**Replies:** 8\
**Last updated:** [April 14, 2025, 6:05pm UTC](https://discourse.pymc.io/t/symbolic-gradient-of-gp-posterior-predictions/14566 "2025-04-14T18:05:45Z")

</div>

Is there a way to use Pytensor to calculate the symbolic gradient of the GP posterior mean (and possibly variance) with respect to the data domain? I’m trying to use pymc’s Marginal GP for (batched, offline) Bayesian Opt…

---

## [Proposal Submission Update for GSoC Spatial Modeling Project](https://discourse.pymc.io/t/proposal-submission-update-for-gsoc-spatial-modeling-project/16844)

<div class="topic-metadata">

**Author:** [@KARTHIKEYA\_VAKKALANK](https://discourse.pymc.io/u/KARTHIKEYA_VAKKALANK)\
**Replies:** 2\
**Last updated:** [April 8, 2025, 11:25am UTC](https://discourse.pymc.io/t/proposal-submission-update-for-gsoc-spatial-modeling-project/16844 "2025-04-08T11:25:20Z")

</div>

Hi Dr. Fonnesbeck, I hope you’re doing well! I wanted to share that, given the deadline pressure, I have submitted my GSoC proposal for the Spatial Modeling project with PyMC. I’ve put my best effort into aligning it cl…

---

## [Gaussian Processes: Compositional Data](https://discourse.pymc.io/t/gaussian-processes-compositional-data/16680)

<div class="topic-metadata">

**Author:** [@brontidon](https://discourse.pymc.io/u/brontidon)\
**Replies:** 5\
**Last updated:** [April 7, 2025, 7:40pm UTC](https://discourse.pymc.io/t/gaussian-processes-compositional-data/16680 "2025-04-07T19:40:36Z")

</div>

Hello, Wanted to reach out and see if any community members have attempted to apply GPs to compositional date of the form Nxd, where d is the dimension of counts and N is the number of observations. Here N\_{i} would be…

---

## [Shape mismatch when running predictions with Gaussian Processes](https://discourse.pymc.io/t/shape-mismatch-when-running-predictions-with-gaussian-processes/16677)

<div class="topic-metadata">

**Author:** [@aabugaev](https://discourse.pymc.io/u/aabugaev)\
**Replies:** 5\
**Last updated:** [March 12, 2025, 1:36pm UTC](https://discourse.pymc.io/t/shape-mismatch-when-running-predictions-with-gaussian-processes/16677 "2025-03-12T13:36:35Z")

</div>

Hello, PyMC-community! I am trying to build a model, one of the components being Gaussian Process. However, once I am trying to get out-of-sample predictions (pm.sample\_posterior\_predictive(idata)), I am getting some s…

---

## [Getting Started with Multivariate Gaussian Processes (vector autoregression)](https://discourse.pymc.io/t/getting-started-with-multivariate-gaussian-processes-vector-autoregression/16543)

<div class="topic-metadata">

**Author:** [@brontidon](https://discourse.pymc.io/u/brontidon)\
**Replies:** 3\
**Last updated:** [March 4, 2025, 1:41am UTC](https://discourse.pymc.io/t/getting-started-with-multivariate-gaussian-processes-vector-autoregression/16543 "2025-03-04T01:41:42Z")

</div>

Hello there, I’m currently trying to apply Gaussian processes to vector autoregression. Specifically in the case where n\>3 an example might be here:(https://arxiv.org/pdf/2112.01995) While I find a lot of the pymc exam…

---

## [GP Latent implmenentation in PyMC](https://discourse.pymc.io/t/gp-latent-implmenentation-in-pymc/16584)

<div class="topic-metadata">

**Author:** [@Michael](https://discourse.pymc.io/u/Michael)\
**Replies:** 4\
**Last updated:** [February 23, 2025, 8:35pm UTC](https://discourse.pymc.io/t/gp-latent-implmenentation-in-pymc/16584 "2025-02-23T20:35:36Z")

</div>

I am trying to understand how latent GP are implemented in PyMC, my immediate goal is to reproduce the computations shown here with PyMV version 5.0. After some minor syntax changes from PyMC3 to PyMC, as the full laten…

---

## [Can not initialize multidimensional prior distribution with Interpolated](https://discourse.pymc.io/t/can-not-initialize-multidimensional-prior-distribution-with-interpolated/16499)

<div class="topic-metadata">

**Author:** [@test](https://discourse.pymc.io/u/test)\
**Replies:** 0\
**Last updated:** [February 5, 2025, 12:07pm UTC](https://discourse.pymc.io/t/can-not-initialize-multidimensional-prior-distribution-with-interpolated/16499 "2025-02-05T12:07:53Z")

</div>

Hey, can someone help me please. I am trying to use old posterior distributions as my new prior, by using the interpolated function. My Problem ist, that one feature is categorial with 50 different groups, an I can not d…

---

## [Shape Error, unsure where the problem variable is. Please advise](https://discourse.pymc.io/t/shape-error-unsure-where-the-problem-variable-is-please-advise/16480)

<div class="topic-metadata">

**Author:** [@Wesley\_Young](https://discourse.pymc.io/u/Wesley_Young)\
**Replies:** 8\
**Last updated:** [February 4, 2025, 4:55pm UTC](https://discourse.pymc.io/t/shape-error-unsure-where-the-problem-variable-is-please-advise/16480 "2025-02-04T16:55:18Z")

</div>

Running the model below, I receive the error message below concerning incomparable element shapes. Any idea where I am going wrong? I have included the graphviz output as well Incompatible Elemwise input shapes \[(9000, …

---

## [Error using \`nutpie\` sampler with Latent GP](https://discourse.pymc.io/t/error-using-nutpie-sampler-with-latent-gp/16477)

<div class="topic-metadata">

**Author:** [@mathDR](https://discourse.pymc.io/u/mathDR)\
**Replies:** 3\
**Last updated:** [February 4, 2025, 3:37am UTC](https://discourse.pymc.io/t/error-using-nutpie-sampler-with-latent-gp/16477 "2025-02-04T03:37:31Z")

</div>

Hello, I am trying to sample a Latent GP model with numpie and getting the following error: AttributeError: 'JITCPUCodegen' object has no attribute '\_mpm\_cheap' (I can post the full stacktrace if that is more helpful). …

---

## [Can´t recover the mean of a GP output](https://discourse.pymc.io/t/can-t-recover-the-mean-of-a-gp-output/16284)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.pymc.io/u/cola)\
**Replies:** 2\
**Last updated:** [December 28, 2024, 4:10pm UTC](https://discourse.pymc.io/t/can-t-recover-the-mean-of-a-gp-output/16284 "2024-12-28T16:10:11Z")

</div>

Hello, I am using Gaussian process to model an output (Reward), in terms of inputs (states), according to Bellman equation , the reward of the current step, should satisfy this fromula R\_{T+1} = Q\_{T} - γ Q\_{T+1}. my …

---

## [Making # level hierarchy in bayesian model](https://discourse.pymc.io/t/making-level-hierarchy-in-bayesian-model/16182)

<div class="topic-metadata">

**Author:** [@Nij\_PADARIYA](https://discourse.pymc.io/u/Nij_PADARIYA)\
**Replies:** 1\
**Last updated:** [November 27, 2024, 2:55am UTC](https://discourse.pymc.io/t/making-level-hierarchy-in-bayesian-model/16182 "2024-11-27T02:55:40Z")

</div>

We are working on a hierarchical model to predict disease case counts at the subdivision level (also referred to as “blocks”), which are administrative units within districts, and districts themselves are part of a state…

---

## [How to deal with known inputs while training, but latent while inference?](https://discourse.pymc.io/t/how-to-deal-with-known-inputs-while-training-but-latent-while-inference/16026)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.pymc.io/u/cola)\
**Replies:** 1\
**Last updated:** [October 25, 2024, 2:36am UTC](https://discourse.pymc.io/t/how-to-deal-with-known-inputs-while-training-but-latent-while-inference/16026 "2024-10-25T02:36:54Z")

</div>

Hello, Let´s say I have a dataset where I can observe 10 inputs when creating it, but when I will use the model for prediction on real cases, I will just have 2 of these inputs, the other 8 their distributions are known…

---

## [Combine latent with observable variables for Latent Gaussian Processes](https://discourse.pymc.io/t/combine-latent-with-observable-variables-for-latent-gaussian-processes/15994)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.pymc.io/u/cola)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 12:46am UTC](https://discourse.pymc.io/t/combine-latent-with-observable-variables-for-latent-gaussian-processes/15994 "2024-10-21T00:46:51Z")

</div>

Hello, I am working on a latent Gaussian Processes model, where I have 4 features, 2 of them are observable and the other 2 are uncertain. I am wondering how can I combine both of them as inputs to the function. Here is…

---

## [Including Observations in the Model, a beginner question](https://discourse.pymc.io/t/including-observations-in-the-model-a-beginner-question/15993)

<div class="topic-metadata">

**Author:** [@Meillo\_Fang](https://discourse.pymc.io/u/Meillo_Fang)\
**Replies:** 14\
**Last updated:** [October 20, 2024, 10:15am UTC](https://discourse.pymc.io/t/including-observations-in-the-model-a-beginner-question/15993 "2024-10-20T10:15:02Z")

</div>

I’m a beginner in pymc, sorry this problem seems simple but it’s been bothering me for many days. The problem is summarized as follows: I want to include my observations in the model, I found out by studying chapter 2.1.…

---

## [Marginalized Mixture won't begin sampling/throws assertion error](https://discourse.pymc.io/t/marginalized-mixture-wont-begin-sampling-throws-assertion-error/15969)

<div class="topic-metadata">

**Author:** [@Legstrong](https://discourse.pymc.io/u/Legstrong)\
**Replies:** 15\
**Last updated:** [October 17, 2024, 6:36pm UTC](https://discourse.pymc.io/t/marginalized-mixture-wont-begin-sampling-throws-assertion-error/15969 "2024-10-17T18:36:44Z")

</div>

Hi all, I am encountering an error that I can’t identify in trying to use a Gaussian Mixture model. I tried to switch to a marginalized mixture to make it easier to compile, but it essentially won’t get off the ground a…

---

## [Why do we still need sampling in the Marginal GP implementation?](https://discourse.pymc.io/t/why-do-we-still-need-sampling-in-the-marginal-gp-implementation/15968)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.pymc.io/u/cola)\
**Replies:** 1\
**Last updated:** [October 15, 2024, 8:27am UTC](https://discourse.pymc.io/t/why-do-we-still-need-sampling-in-the-marginal-gp-implementation/15968 "2024-10-15T08:27:33Z")

</div>

Hello, I am very new to Pymc so I apologise for the very basic question, but this has been a general long term doubt I have about the Marginal implementation of Gaussian Processes. As I understand, we assume a Gaussian…

---

## [Chains converge to local optima?](https://discourse.pymc.io/t/chains-converge-to-local-optima/15939)

<div class="topic-metadata">

**Author:** [@arthus701](https://discourse.pymc.io/u/arthus701)\
**Replies:** 6\
**Last updated:** [October 11, 2024, 7:33pm UTC](https://discourse.pymc.io/t/chains-converge-to-local-optima/15939 "2024-10-11T19:33:47Z")

</div>

Hi everyone, I’m running a fairly complex model, that works for most of my input data but sometimes I get output similar to this post, where two chains converge to different results than the other two. Also the two chai…

---

## [Dependent density regression (Dirichlet process) with outliers / unreliable count data](https://discourse.pymc.io/t/dependent-density-regression-dirichlet-process-with-outliers-unreliable-count-data/15906)

<div class="topic-metadata">

**Author:** [@yemsb](https://discourse.pymc.io/u/yemsb)\
**Replies:** 0\
**Last updated:** [October 1, 2024, 4:05pm UTC](https://discourse.pymc.io/t/dependent-density-regression-dirichlet-process-with-outliers-unreliable-count-data/15906 "2024-10-01T16:05:02Z")

</div>

Dear Bayesians, I’m trying to model the number of trees in parks of different sizes in a particular city. I adapted the example for dependent density regression somewhat successfully. But two things pose difficulty for …

---

## [Inversion of parameter given forward simulation function](https://discourse.pymc.io/t/inversion-of-parameter-given-forward-simulation-function/15138)

<div class="topic-metadata">

**Author:** [@Meillo\_Fang](https://discourse.pymc.io/u/Meillo_Fang)\
**Replies:** 11\
**Last updated:** [October 1, 2024, 12:19pm UTC](https://discourse.pymc.io/t/inversion-of-parameter-given-forward-simulation-function/15138 "2024-10-01T12:19:19Z")

</div>

I have a forward simulation function forward\_model that gives some parameters of type ndarray input and returns a result of type ndarray. I want to estimate the parameter epsilon\_r given the synthetic data. Below is my s…

---

## [HSGP by levels of a categorical covariate](https://discourse.pymc.io/t/hsgp-by-levels-of-a-categorical-covariate/14881)

<div class="topic-metadata">

**Author:** [@wgeary](https://discourse.pymc.io/u/wgeary)\
**Replies:** 6\
**Last updated:** [September 8, 2024, 3:42pm UTC](https://discourse.pymc.io/t/hsgp-by-levels-of-a-categorical-covariate/14881 "2024-09-08T15:42:50Z")

</div>

I am attempting to fit a model with a HSGP contribution grouped by levels of a categorical variable, with a different HSGP for each category. Exactly the same as done in this Bambi tutorial, but I need to accomplish the …

---

## [Multi-Output Spatial Gaussian Process Prior Predictive Simulation](https://discourse.pymc.io/t/multi-output-spatial-gaussian-process-prior-predictive-simulation/14684)

<div class="topic-metadata">

**Author:** [@kpjmcg](https://discourse.pymc.io/u/kpjmcg)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 8:04pm UTC](https://discourse.pymc.io/t/multi-output-spatial-gaussian-process-prior-predictive-simulation/14684 "2024-07-30T20:04:19Z")

</div>

I have put together a spatial multi-output gaussian process and performed prior predictive simulations on it. I am posting below for review (I have a few questions) and as a helper for other’s seeking to perform prior p…

---

## [PyMC Help Needed - TVP-PVAR with Stochastic Volatility](https://discourse.pymc.io/t/pymc-help-needed-tvp-pvar-with-stochastic-volatility/14691)

<div class="topic-metadata">

**Author:** [@D\_K](https://discourse.pymc.io/u/D_K)\
**Replies:** 0\
**Last updated:** [June 29, 2024, 1:51am UTC](https://discourse.pymc.io/t/pymc-help-needed-tvp-pvar-with-stochastic-volatility/14691 "2024-06-29T01:51:24Z")

</div>

Hi everyone, I’m following up on a previous inquiry where @jessegrabowski (thanks again!) offered valuable help regarding a time-varying parameter panel vector autoregression (TVP-PVAR) model with autoregressive order 1…

---

## [Time-Varying Parameter PVAR (TVP-PVAR) with AR(1) and PyMC - "tuple" object error](https://discourse.pymc.io/t/time-varying-parameter-pvar-tvp-pvar-with-ar-1-and-pymc-tuple-object-error/14694)

<div class="topic-metadata">

**Author:** [@D\_K](https://discourse.pymc.io/u/D_K)\
**Replies:** 0\
**Last updated:** [June 29, 2024, 2:54pm UTC](https://discourse.pymc.io/t/time-varying-parameter-pvar-tvp-pvar-with-ar-1-and-pymc-tuple-object-error/14694 "2024-06-29T14:54:21Z")

</div>

Hi everyone, I’m following up on two previous inquires on TVP-PVAR with Stochastic Volatility ,and h Help Needed: Kalman Filter with PyMC and pytensor.tensor.KalmanFilter Erros I’m writing to seek assistance with an …

---

## [Haversine Kernel?](https://discourse.pymc.io/t/haversine-kernel/14662)

<div class="topic-metadata">

**Author:** [@Galen\_Seilis](https://discourse.pymc.io/u/Galen_Seilis)\
**Replies:** 6\
**Last updated:** [June 26, 2024, 2:30pm UTC](https://discourse.pymc.io/t/haversine-kernel/14662 "2024-06-26T14:30:56Z")

</div>

I’m just getting started with trying to use Gaussian processes. I have watched Statistical Rethinking 2023 - 16 - Gaussian Processes a few times and listened to some episodes on the Learning Bayesian Statistics where Gau…

---

## [Implementing Gaussian Process with Periodic Kernel in PyMC: Questions and Approaches](https://discourse.pymc.io/t/implementing-gaussian-process-with-periodic-kernel-in-pymc-questions-and-approaches/14425)

<div class="topic-metadata">

**Author:** [@Michele\_Avella](https://discourse.pymc.io/u/Michele_Avella)\
**Replies:** 2\
**Last updated:** [May 17, 2024, 7:46am UTC](https://discourse.pymc.io/t/implementing-gaussian-process-with-periodic-kernel-in-pymc-questions-and-approaches/14425 "2024-05-17T07:46:15Z")

</div>

Hello everyone, I’m attempting to use PyMC to implement a Gaussian Process. My goal is to model the baseline and seasonality of a marketing mix model (MMM). Specifically, I’d like to use a periodic kernel along with a M…

---

## [Fitting Gaussian line using posterior trace samples to double peak gaussian data graph](https://discourse.pymc.io/t/fitting-gaussian-line-using-posterior-trace-samples-to-double-peak-gaussian-data-graph/14154)

<div class="topic-metadata">

**Author:** [@IliaS](https://discourse.pymc.io/u/IliaS)\
**Replies:** 10\
**Last updated:** [April 3, 2024, 12:57pm UTC](https://discourse.pymc.io/t/fitting-gaussian-line-using-posterior-trace-samples-to-double-peak-gaussian-data-graph/14154 "2024-04-03T12:57:55Z")

</div>

Hello everyone, I am trying to fit the posterior trace regression line onto my data which shows how good the fit of the model is but I am running into a few problems. When using the trace sd values it returns a flat li…

[Next page](https://discourse.pymc.io/tag/gaussian-process/23.md?match_all_tags=true&page=1&tags%5B%5D=gaussian_process)
