Questions tagged [gpflow]

GPflow is a package for building Gaussian process models in Python, using TensorFlow.

GPflow implements modern Gaussian process inference for composable kernels and likelihoods.

GPflow uses TensorFlow for running computations, which allows fast execution on GPUs, and uses Python 3.5 or above.

140 questions
5
votes
2 answers

Can I deepcopy a `gpflow.models.GPModel`? (GPflow2)

We've trained a model and want to use it in a few different methods, each of which mutates it. However, the first method call will pollute the model for the subsequent calls. Ideally we'd like to just deepcopy the model and then pass copies into…
4
votes
1 answer

gaussian process regression in multiple dimensions with GPflow

I would like to perform some multivariant regression using gaussian process regression as implemented in GPflow using version 2. Installed with pip install gpflow==2.0.0rc1 Below is some example code that generates some 2D data and then attempts to…
cyberface
  • 91
  • 5
3
votes
1 answer

Automatic relevance determination with prior distribution for lengthscale

I'm trying to use GPflow to fit a GP. I would like to use automatic relevance determination and a prior for the lengthscales. I know how to do both separately: kernel = gpflow.kernels.SquaredExponential(lengthscales=([10] *…
user50466
  • 31
  • 6
3
votes
1 answer

Setting hyperparameter optimization bounds in GPflow 2.0

In GPflow 1.0, if I wanted to set hard bounds on a parameter like lengthscale (i.e. limiting the optimisation range for the parameter), transforms.Logistic(a=4., b=6.) would bound the parameter between 4 and 6. GPflow 2.0's documentation says…
3
votes
1 answer

Multi-output GP with multi-inputs?

I am trying to implement a multi-output GP in GPFlow with multi-dimensional input data. I have seen from this issue in GPflow that a multi-dimensional input is possible by 'define a multidimensional base kernel and then apply the coregion on top of…
Will
  • 101
  • 1
  • 11
3
votes
1 answer

GPflow uncertain inputs

Does GPflow support uncertain inputs during the prediction step? What about uncertain inputs during the training step? I looked around and it seems there is no information on that. Thanks.
Kevin Dong
  • 33
  • 2
3
votes
2 answers

N-dimensional GP Regression

I'm trying to use GPflow for a multidimensional regression. But I'm confused by the shapes of the mean and variance. For example: A 2-dimensional input space X of shape (20,20) is supposed to be predicted. My training samples are of shape (8,2)…
ChKl
  • 147
  • 9
3
votes
1 answer

How to get the full covariance matrix and find its entropy in GPflow

I would like to compute the determinant of the covariance matrix of a GP regression in GPFlow. I am guessing I can get the covariance matrix with this function: GPModel.predict_f_full_cov This function was suggested…
user442920
  • 857
  • 4
  • 21
  • 49
2
votes
1 answer

Is there code or research about Heteroscedastic Gaussian Process in GPflow?

I'm now studying on GP models with heteroscedastic noise, and I want to know if there are codes or notes in GPflow community so I can learn about them. Thanks very much!
Jin Zhao
  • 21
  • 1
2
votes
0 answers

Error while using VGP instead of SVGP in Heteroskedastic gpflow example (multilatent GP)

I am trying to understand why I am getting a ValueError when I try to replace SVGP with VGP in the heteroscedastic regression example (https://gpflow.readthedocs.io/en/develop/notebooks/advanced/heteroskedastic.html) in GPflow. Here are the changes…
2
votes
1 answer

Partial derivatives of Gaussian Process wrt features

Given a Gaussian Process Model with multidimensional features and scalar observations, how do I compute derivatives of the output wrt to each input, in GPyTorch or GPFlow (or scikit-learn)?
2
votes
1 answer

GPflow - Updating Model with new Data

I have trained a model in GPflow and ultimately I would like to take this posterior distribution and use it as the prior in a new instance. I reviewed the docs and couldn't see anything. I did see the following link which sounded very good, but it…
TZnings80
  • 53
  • 3
2
votes
1 answer

How to make prediction with GPflow - running GPC with a simple data input? Failed to run the code from example notebook on different data

I tried to run the code from the notebook on self generated data, to prove if the model will do any classification. https://gpflow.readthedocs.io/en/master/notebooks/basics/classification.html So I created X and Y as input…
Vadim5
  • 21
  • 1
2
votes
1 answer

Accuracy is not increasing, though loss is decreasing

I am feeding cnn features into gpflow model. I am writing the chunks of code from my program here. I am using tape.gradient with Adam optimizer (scheduled lr). My accuracy gets stuck on 47% and surprisingly , my loss still gets reducing. Its very…
irum
  • 41
  • 5
2
votes
1 answer

Save the model in gpflow 2

I am trying to save a GPflow model (in GPflow version 2.0). model = gpflow.models.VGP((X, Y_data), kernel=kernel, likelihood=likelihood, num_latent_gps=1) Since the gpflow package no longer has a saver module, could anyone help me with an…
fsrfyama
  • 325
  • 2
  • 13
1
2 3
9 10