Skip to content

Commit

Permalink
add info statement
Browse files Browse the repository at this point in the history
  • Loading branch information
odunbar committed Jul 31, 2024
1 parent f798b27 commit f2fc580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Emulator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,9 @@ function predict(

# [1.] normalize
normalized_new_inputs = normalize(emulator, new_inputs)

# [2.] predict. Note: ds = decorrelated, standard
ds_outputs, ds_output_var = predict(emulator.machine_learning_tool, normalized_new_inputs, mlt_kwargs...)

# [3.] transform back to real coordinates or remain in decorrelated coordinates
if !isa(get_machine_learning_tool(emulator), VectorRandomFeatureInterface)
if transform_to_real && emulator.decomposition === nothing
Expand Down Expand Up @@ -312,6 +311,7 @@ function calculate_normalization(inputs::VOrM) where {VOrM <: AbstractVecOrMat}
svd_in = svd(input_cov)
sqrt_inv_sv = 1 ./ sqrt.(svd_in.S[1:rank(input_cov)])
normalization = Diagonal(sqrt_inv_sv) * svd_in.Vt[1:rank(input_cov), :] #non-square
@info "reducing input dimension from $(size(input_cov,1)) to $rank(input_cov) during low rank in normalization"
end
return normalization
end
Expand Down
1 change: 0 additions & 1 deletion src/VectorRandomFeature.jl
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,6 @@ function build_models!(
Γ[1:(n_test * output_dim), 1:(n_test * output_dim)] +=
isa(regularization, UniformScaling) ? regularization : kron(I(n_test), regularization) # + approx_σ2
Γ[(n_test * output_dim + 1):end, (n_test * output_dim + 1):end] += I
@info Γ[(n_test * output_dim + 1):end, (n_test * output_dim + 1):end]
data = vcat(reshape(get_outputs(io_pairs_opt)[:, (n_train + 1):end], :, 1), 0.0, 0.0) #flatten data

elseif tikhonov_opt_val > 0
Expand Down

0 comments on commit f2fc580

Please sign in to comment.