Skip to content

Commit

Permalink
Try #132:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored Apr 28, 2022
2 parents f735ffe + cbaf482 commit a4742ef
Show file tree
Hide file tree
Showing 7 changed files with 366 additions and 364 deletions.
1 change: 0 additions & 1 deletion docs/src/API/Emulators.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CurrentModule = CalibrateEmulateSample.Emulators
```

```@docs
Decomposition
Emulator
optimize_hyperparameters!(::Emulator)
predict
Expand Down
6 changes: 2 additions & 4 deletions examples/Lorenz/Lorenz_example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,9 @@ optimize_hyperparameters!(emulator)
# true parameters
#if truncate_svd==1.0
if log_normal==false
y_mean, y_var = Emulators.predict(emulator, reshape(params_true, :, 1),
transform_to_real=true)
y_mean, y_var = Emulators.predict(emulator, params_true, transform_to_real=true)
else
y_mean, y_var = Emulators.predict(emulator, reshape(log.(params_true), :, 1),
transform_to_real=true)
y_mean, y_var = Emulators.predict(emulator, log.(params_true), transform_to_real=true)
end

println("GP prediction on true parameters: ")
Expand Down
5 changes: 1 addition & 4 deletions examples/deprecated/Cloudy/Cloudy_example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,7 @@ optimize_hyperparameters!(emulator)

# Check how well the Gaussian Process regression predicts on the
# true parameters
y_mean, y_var = Emulators.predict(
emulator, reshape(transformed_params_true, :, 1);
transform_to_real=true
)
y_mean, y_var = Emulators.predict(emulator, transformed_params_true; transform_to_real=true)
println("GP prediction on true parameters: ")
println(vec(y_mean))
println("true data: ")
Expand Down
Loading

0 comments on commit a4742ef

Please sign in to comment.