GPflow is a Gaussian process library in TensorFlow, designed for GP regression and advanced GP models. It provides a flexible, composable framework for building and training GP models using TensorFlow's automatic differentiation. Current version 2.10.0 targets TensorFlow 2.x and has a moderate release cadence (major/minor roughly every few months).
pip install gpflowNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic GP regression with GPflow: create data, build GPR model with SquaredExponential kernel, optimise hyperparameters, and predict.
Migrate code: use `from gpflow import ...` (not `import gpflow as gp` submodules), replace `gpflow.kernels.RBF` with `gpflow.kernels.SquaredExponential`, and update to TF 2.x.
Keep TensorFlow updated and pin versions if needed.
Call `m.training_loss.numpy()` to get the value as a float.
Use `from gpflow import kernels` instead of `import gpflow.kernels`.
Cast input data: `tf.cast(X, tf.float64)` or set global default to float64.