Skip to content

Commit 082122f

Browse files
committed
another minor fix in WCCNTrainer documentation
1 parent 7125903 commit 082122f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/trainer/python/wccn.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,17 @@ static char CLASS_DOC[] = \
4242
"\n"\
4343
".. math::\n" \
4444
" \n" \
45-
" W = cholesky([(1/N) S_{w} ]^{-1})\n" \
45+
" W = cholesky([(1/K) S_{w} ]^{-1})\n" \
4646
"\n"\
4747
"where:\n"\
4848
"\n" \
49+
":math:`K`\n" \
50+
" \n" \
51+
" the number of classes\n"\
52+
"\n"\
4953
":math:`S_w`\n" \
5054
"\n" \
51-
" the within-class scatter; it also has dimensions (X.shape[0], X.shape[0]) and is defined as :math:`S_w = \\sum_{k=1}^K \\sum_{n \\in C_k} (x_n-m_k)(x_n-m_k)^T`, with K equal to the number of classes and :math:`C_k` a set representing all samples for class k.\n" \
55+
" the within-class scatter; it also has dimensions (X.shape[0], X.shape[0]) and is defined as :math:`S_w = \\sum_{k=1}^K \\sum_{n \\in C_k} (x_n-m_k)(x_n-m_k)^T`, :math:`C_k` a set representing all samples for class k.\n" \
5256
"\n" \
5357
":math:`m_k`\n" \
5458
" \n" \

0 commit comments

Comments
 (0)