Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WarpedGP loses warp_tanh attributes when saved/loaded from disk #1097

Open
bhvieira opened this issue Oct 3, 2024 · 0 comments
Open

WarpedGP loses warp_tanh attributes when saved/loaded from disk #1097

bhvieira opened this issue Oct 3, 2024 · 0 comments

Comments

@bhvieira
Copy link

bhvieira commented Oct 3, 2024

MWE:

X = np.random.randn(100, 2)
Y = np.random.randn(100, 1)
model = GPy.models.WarpedGP(X, Y)
# assert that it exists
assert hasattr(model, "warp_tanh")
model.optimize()
assert hasattr(model, "warp_tanh")
model.save_model("model")
model = GPy.models.WarpedGP.load_model("model.zip")
assert hasattr(model, "warp_tanh") # AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant