8000 DOC fixed covariance matrix equation in lda_qda (#20611) · scikit-learn/scikit-learn@5d88f9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d88f9a

Browse files
authored
DOC fixed covariance matrix equation in lda_qda (#20611)
1 parent 2844f59 commit 5d88f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/modules/lda_qda.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ solver may be preferable in situations where the number of features is large.
232232
The 'svd' solver cannot be used with shrinkage.
233233
For QDA, the use of the SVD solver relies on the fact that the covariance
234234
matrix :math:`\Sigma_k` is, by definition, equal to :math:`\frac{1}{n - 1}
235-
X_k^tX_k = V S^2 V^t` where :math:`V` comes from the SVD of the (centered)
235+
X_k^tX_k = \frac{1}{n - 1} V S^2 V^t` where :math:`V` comes from the SVD of the (centered)
236236
matrix: :math:`X_k = U S V^t`. It turns out that we can compute the
237237
log-posterior above without having to explictly compute :math:`\Sigma`:
238238
computing :math:`S` and :math:`V` via the SVD of :math:`X` is enough. For

0 commit comments

Comments
 (0)
0