import numpy as np
import torch
import matplotlib.pyplot as plt
from matplotlib import rc
'font', **{'size':18}) rc(
GPy
from paramz.transformations import Logexp
= Logexp() gpy_trans
= torch.arange(-1000,10000).to(torch.float)
x ;
plt.plot(x, gpy_trans.f(x))'X')
plt.xlabel('f(X)'); plt.ylabel(
GPyTorch
from gpytorch.constraints import Positive
= Positive() gpytorch_trans
;
plt.plot(x, gpytorch_trans.transform(x))'X')
plt.xlabel('f(X)'); plt.ylabel(
GPFlow
from gpflow.utilities.bijectors import positive
= positive() gpflow_trans
;
plt.plot(x, gpflow_trans(x))'X')
plt.xlabel('f(X)'); plt.ylabel(
np.allclose(gpy_trans.f(x), gpytorch_trans.transform(x))
True
np.allclose(gpy_trans.f(x), gpflow_trans(x))
True