mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 04:22:38 +02:00
a bug fix for set_XY
This commit is contained in:
parent
be5a24520d
commit
6f78a724fc
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ class GP(Model):
|
||||||
# LVM models
|
# LVM models
|
||||||
from ..core.parameterization.variational import VariationalPosterior
|
from ..core.parameterization.variational import VariationalPosterior
|
||||||
if isinstance(self.X, VariationalPosterior):
|
if isinstance(self.X, VariationalPosterior):
|
||||||
assert isinstance(X, type(self.X), "The given X must have the same type as the X in the model!")
|
assert isinstance(X, type(self.X)), "The given X must have the same type as the X in the model!"
|
||||||
self.unlink_parameter(self.X)
|
self.unlink_parameter(self.X)
|
||||||
self.X = X
|
self.X = X
|
||||||
self.link_parameters(self.X)
|
self.link_parameters(self.X)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue