Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/FormatCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
jobs:
code-style:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: julia-actions/julia-format@v2
with:
Expand Down
18 changes: 6 additions & 12 deletions src/loss/ML/ML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -459,18 +459,12 @@ end
# objective, gradient ----------------------------------------------------------------------

function objective!(
semml::SemML,
par,
model::AbstractSemSingle,
has_meanstructure::Val{T},
imp::RAM,
) where {T}
let Σ = Σ(imply(model)),
Σₒ = obs_cov(observed(model)),
Σ⁻¹Σₒ = Σ⁻¹Σₒ(semml),
Σ⁻¹ = Σ⁻¹(semml),
μ = μ(imply(model)),
μₒ = obs_mean(observed(model))
semml::SemML,
par,
model::AbstractSemSingle,
has_meanstructure::Val{T}, imp::RAM) where T
let Σ = Σ(imply(model)), Σₒ = obs_cov(observed(model)), Σ⁻¹Σₒ = Σ⁻¹Σₒ(semml),
Σ⁻¹ = Σ⁻¹(semml), μ = μ(imply(model)), μₒ = obs_mean(observed(model))
Comment on lines +462 to +467

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
semml::SemML,
par,
model::AbstractSemSingle,
has_meanstructure::Val{T}, imp::RAM) where T
let Σ = Σ(imply(model)), Σₒ = obs_cov(observed(model)), Σ⁻¹Σₒ = Σ⁻¹Σₒ(semml),
Σ⁻¹ = Σ⁻¹(semml), μ = μ(imply(model)), μₒ = obs_mean(observed(model))
semml::SemML,
par,
model::AbstractSemSingle,
has_meanstructure::Val{T},
imp::RAM,
) where {T}
let Σ = Σ(imply(model)),
Σₒ = obs_cov(observed(model)),
Σ⁻¹Σₒ = Σ⁻¹Σₒ(semml),
Σ⁻¹ = Σ⁻¹(semml),
μ = μ(imply(model)),
μₒ = obs_mean(observed(model))


copyto!(Σ⁻¹, Σ)
Σ_chol = cholesky!(Symmetric(Σ⁻¹); check = false)
Expand Down