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
) where {AM <:AbstractMatrix, EorFMW <:Union{Emulator, ForwardMapWrapper}}
528
+
529
+
if!isnothing(transform_to_real)
530
+
Base.depwarn(
531
+
"""`transform_to_real` keyword is deprecated. Please use the `encode` and `add_obs_noise_cov` keywords instead.
532
+
533
+
Recommended usage for users is now set by default as:
534
+
- `encode=nothing`, `add_obs_noise_cov=false`
535
+
This behaviour takes in non-encoded inputs, and returns non-encoded outputs. It gives only the uncertainty from the Machine Learning Tool (not inflated by observational noise)
536
+
537
+
This simulation will continue with the old behavior:
538
+
- `transform_to_real=true` replaced with `encode=nothing, add_obs_noise_cov=true`
539
+
- `transform_to_real=false` replaced with `encode="out", add_obs_noise_cov=true`
Predict means and covariances in decorrelated output space using Gaussian process models.
287
+
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`
288
288
"""
289
-
predict(gp::GaussianProcess{GPJL}, new_inputs::AbstractMatrix{FT}) where {FT <:AbstractFloat} =
290
-
predict(gp, new_inputs, gp.prediction_type)
291
-
289
+
functionpredict(gp::GaussianProcess{GPJL}, new_inputs::AbstractMatrix{FT}; add_obs_noise_cov=false, mlt_kwargs...) where {FT <:AbstractFloat}
290
+
pred_type= add_obs_noise_cov ?YType() :FType()
291
+
returnpredict(gp, new_inputs, pred_type)
292
+
end
292
293
293
294
#now we build the SKLJL implementation
294
295
functionbuild_models!(
@@ -371,13 +372,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