You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Predict means and covariances in decorrelated output space using Gaussian process models.
285
+
Predict means and covariances in decorrelated output space using Gaussian process models. The use of stored `FType` and `YType` to control this method is deprecated, the return covariance is now determined by the `predict(` kwarg `add_obs_noise_cov`
286
286
"""
287
-
predict(gp::GaussianProcess{GPJL}, new_inputs::AbstractMatrix{FT}) where {FT <:AbstractFloat} =
288
-
predict(gp, new_inputs, gp.prediction_type)
289
-
287
+
functionpredict(gp::GaussianProcess{GPJL}, new_inputs::AbstractMatrix{FT}; add_obs_noise_cov=false, mlt_kwargs...) where {FT <:AbstractFloat}
288
+
pred_type= add_obs_noise_cov ?YType() :FType()
289
+
returnpredict(gp, new_inputs, pred_type)
290
+
end
290
291
291
292
#now we build the SKLJL implementation
292
293
functionbuild_models!(
@@ -369,13 +370,15 @@ function _SKJL_predict_function(gp_model::PyObject, new_inputs::AbstractMatrix{F
Prediction of data observation (not latent function) at new inputs (passed in as columns in a matrix). That is, we add the observational noise into predictions.
658
658
"""
659
-
functionpredict(vrfi::VectorRandomFeatureInterface, new_inputs::M) where {M <:AbstractMatrix}
659
+
functionpredict(vrfi::VectorRandomFeatureInterface, new_inputs::M; add_obs_noise_cov=false, mlt_kwargs...) where {M <:AbstractMatrix}
660
660
input_dim =get_input_dim(vrfi)
661
661
output_dim =get_output_dim(vrfi)
662
662
rfm =get_rfms(vrfi)[1]
@@ -676,12 +676,14 @@ function predict(vrfi::VectorRandomFeatureInterface, new_inputs::M) where {M <:
676
676
# sizes (output_dim x n_test), (output_dim x output_dim x n_test)
677
677
# add the noise contribution from the regularization
678
678
# note this is because we are predicting the data here, not the latent function.
0 commit comments