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
encode=nothing, # maps decoded inputs to decoded outputs
448
+
add_obs_noise_cov=false,
446
449
) where {FMW <:ForwardMapWrapper, AM <:AbstractMatrix}
447
450
# Check if the size of new_inputs is consistent with the training input data
448
451
input_dim, output_dim =size(get_io_pairs(fmw), 1)
@@ -514,4 +517,38 @@ function predict(
514
517
end
515
518
end
516
519
520
+
521
+
### Deprecated keywords
522
+
523
+
functionpredict(
524
+
em_or_fmw::EorFMW,
525
+
new_inputs::AM;
526
+
transform_to_real =nothing,
527
+
kwargs...,
528
+
) where {AM <:AbstractMatrix, EorFMW <:Union{Emulator, ForwardMapWrapper}}
529
+
530
+
if!isnothing(transform_to_real)
531
+
Base.depwarn(
532
+
"""`transform_to_real` keyword is deprecated. Please use the `encode` and `add_obs_noise_cov` keywords instead.
533
+
534
+
Recommended usage for users is now set by default as:
535
+
- `encode=nothing`, `add_obs_noise_cov=false`
536
+
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)
537
+
538
+
This simulation will continue with the old behavior:
539
+
- `transform_to_real=true` replaced with `encode=nothing, add_obs_noise_cov=true`
540
+
- `transform_to_real=false` replaced with `encode="out", add_obs_noise_cov=true`
0 commit comments