Skip to content

Commit 93f424a

Browse files
author
Alexey Stukalov
committed
WLS: verbose option
to suppress info about inv(obs_cov)
1 parent 32261a5 commit 93f424a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/loss/WLS/WLS.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function SemWLS(
6262
wls_weight_matrix::Union{AbstractMatrix, Nothing} = nothing,
6363
wls_weight_matrix_mean::Union{AbstractMatrix, Nothing} = nothing,
6464
approximate_hessian::Bool = false,
65+
verbose::Bool = false,
6566
kwargs...,
6667
)
6768
if observed isa SemObservedMissing
@@ -114,7 +115,8 @@ function SemWLS(
114115

115116
if MeanStruct(implied) == HasMeanStruct
116117
if isnothing(wls_weight_matrix_mean)
117-
@info "Computing WLS weight matrix for the meanstructure using obs_cov()"
118+
verbose &&
119+
@info "Computing WLS weight matrix for the meanstructure using obs_cov()"
118120
wls_weight_matrix_mean = inv(obs_cov(observed))
119121
end
120122
size(wls_weight_matrix_mean) == (nobs_vars, nobs_vars) || DimensionMismatch(

0 commit comments

Comments
 (0)