Skip to content

Commit 279bd60

Browse files
Merge pull request #133 from brandmaier/patch-1
Update loss.md
2 parents 30f8186 + e53605d commit 279bd60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/developer/loss.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Let's make a sligtly more complicated example: we will reimplement maximum likel
217217
To keep it simple, we only cover models without a meanstructure. The maximum likelihood objective is defined as
218218

219219
```math
220-
F_{ML} = \log \det \Sigma_i + \mathrm{tr}(\Sigma_i \Sigma_o)
220+
F_{ML} = \log \det \Sigma_i + \mathrm{tr}\left(\Sigma_{i}^{-1} \Sigma_o \right)
221221
```
222222

223223
where ``\Sigma_i`` is the model implied covariance matrix and ``\Sigma_o`` is the observed covariance matrix. We can query the model implied covariance matrix from the `imply` par of our model, and the observed covariance matrix from the `observed` path of our model.
@@ -269,4 +269,4 @@ model_ml = SemFiniteDiff(
269269
model_fit = sem_fit(model_ml)
270270
```
271271

272-
If you want to differentiate your own loss functions via automatic differentiation, check out the [AutoDiffSEM](https://github.com/StructuralEquationModels/AutoDiffSEM) package (spoiler allert: it's really easy).
272+
If you want to differentiate your own loss functions via automatic differentiation, check out the [AutoDiffSEM](https://github.com/StructuralEquationModels/AutoDiffSEM) package (spoiler allert: it's really easy).

0 commit comments

Comments
 (0)