137 questions
0
votes
0
answers
79
views
numpy TypeError with importing GPflow in ipython
I installed GPflow and just tried to import it with ipython. But, I got an error like below.
---------------------------------------------------------------------------
TypeError ...
1
vote
1
answer
48
views
Error when trying to replicate GPflow's Stochastic Variational Inference for Scalability SVGP notebook
I'm learning about Gaussian processes and I'm using GPflow to do some exercises and tests.
I was studying the notebook of Stochastic Variational Inference for scalability with SVGP (https://gpflow....
0
votes
1
answer
61
views
Register Keras neural network weights with GPflow kernel
I am trying to implement a neural kernel function (attentive kernels). The kernel uses a neural network to predict mixture component weights.
Here's my init:
class AttentiveKernel(gpflow.kernels....
0
votes
0
answers
31
views
Unable to import ParamList in GPflow 2.9.0
I am trying to reimplement the following DNN mean function in GPflow 2.9.0:
https://gpflow.readthedocs.io/en/v1.5.1-docs/notebooks/tailor/external-mean-function.html
However, I am unable to import ...
0
votes
1
answer
108
views
Set a prior over a linear mean function in gpflow 2.9.0
I set a prior over a linear mean function in my model in gpflow 2.9.0 but, when I inspect it through the monitor, the prior does not appear.
This is my model:
import gpflow
import numpy as np
import ...
1
vote
1
answer
203
views
How to add "ARD" in gpflow.kernels.RBF()
Regarding documents of GPFlow2.8.1, It looks there is no way to use ARD in gpflow.kernels.RBF(SquaredExponential).
Is it not possible to add ARD settings in RBF?
Following are the current code.(I use ...
0
votes
1
answer
166
views
GPFlow: 'NaturalGradient' object has no attribute '_name'
I was trying to replicate the Heteroskedastic Likelihood and Multi-Latent GP example from the GPFlow library site. Everything ran fine except for the last snippet of code under "Run Optimization ...
-1
votes
1
answer
248
views
The issue of insufficient memory when creating a Gaussian process model due to the excessively large size of the dataset
I was informed that there is not enough memory when creating the following Gaussian process model, and I would like to know if there is a feature in GPflow that allows loading data in batches instead ...
0
votes
1
answer
428
views
How to use a custom loss function in GPfLOW 2?
I am new to GPflow and I am trying to figure out how to write a custom loss function to optimize the model. For my purpose, I need to manipulate the predicted output of the GP through different data ...
0
votes
1
answer
168
views
How to do Hierarchical Heteroskedastic Sparse GPs in GPflow?
Is is possible to model a general trend from a population using GPflow and also have individual predictions, as in Hensman et al?
Specifically, I am trying to fit spatial data from a bunch of ...
1
vote
1
answer
214
views
GPflow 2: VGP model with MOK and multiple-input throws ValueError
I'm following the multi-output kernel notebook of GPflow 2.5.2 documentation. I try to replace the SVGP model by either VGP or GPR model because I have only little data and do not need the sparse ...
1
vote
1
answer
210
views
'GPR' object has no attribute 'X'
I am trying to run the code from https://github.com/befelix/safe_learning/blob/master/examples/1d_example.ipynb . This code is written for gpflow version 0.4.0. I want to update this code for gpflow ...
0
votes
1
answer
127
views
Numerical instabilities when bounding GPFlow hyperparameters
in Bounding hyperparameter optimization with Tensorflow bijector chain in GPflow 2.0, I found an excellent explanation of how to set boundaries to my hyperparameters.
Unfortunately, I noticed that ...
0
votes
0
answers
268
views
Gaussian processes for large data
Can someone please explain what is wrong with this code? I have installed gpflow on an M1 Mac and I am learning Gaussian process (GP) regression. I was trying to run this script found here but keep ...
0
votes
1
answer
243
views
How to add different priors for each of ARD lengthscales hyperparameters in GPflow
I've seen how to add a prior to the lengthscales hyperpameter in the MCMC notebook:
model.kernel.lengthscales.prior = tfd.Gamma(f64(1.0), f64(1.0))
From above, it seems we can only add a prior to a ...