Skip to content

Commit

Permalink
Fix SSGP init train dtype issue
Browse files Browse the repository at this point in the history
  • Loading branch information
itskalvik committed Dec 30, 2024
1 parent 0a09dca commit f5ebd8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sgptools/models/core/osgpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ def init_osgpr(X_train,

# Initialize the OSGPR model using the parameters from the SGPR model
# The X_train and y_train here will be overwritten in the online phase
X_train = np.array([[0, 0], [0, 0]])
y_train = np.array([0, 0]).reshape(-1, 1)
X_train = np.array([[0., 0.], [0., 0.]], dtype=X_train.dtype)
y_train = np.array([0., 0.], dtype=y_train.dtype).reshape(-1, 1)
Zopt = init_param.inducing_variable.Z.numpy()
mu, Su = init_param.predict_f(Zopt, full_cov=True)
Kaa = init_param.kernel(Zopt)
Expand Down

0 comments on commit f5ebd8e

Please sign in to comment.