[DOC] GSoC BayesianGaussianMixture formula#7284
[DOC] GSoC BayesianGaussianMixture formula#7284tguillemot wants to merge 5 commits intoscikit-learn:mainfrom
Conversation
| \end{eqnarray*} | ||
|
|
||
| References | ||
| ---------- |
There was a problem hiding this comment.
Some references are missing here :)
|
|
||
| Notation | ||
| -------- | ||
| Add notation of NK xk and Sk |
7bc59ba to
fb16cbb
Compare
| \bar{\mathbf{x}}_k & = & \frac{1}{N_k} \sum_{n=1}^N {r_{nk} \mathbf{x}_n} | ||
| \mathbf{S}_k & = & \frac{1}{N_k} \sum_{n=1}^N {r_{nk} (\mathbf{x}_n - \bar{\mathbf{x}}_k) (\mathbf{x}_n - \bar{\mathbf{x}}_k)^T} | ||
|
|
||
| \end{eqnarray*} |
There was a problem hiding this comment.
I got the following LaTeX rendering error:
Extra alignment tab has been changed to \cr. <template> \egroup \endtemplate l.15 \mathbf{S}_k & = & \frac{1}{N_k} \sum_{n=1}^N {r_{nk} (\mathbf{x}_n - ... ! Missing $ inserted. <inserted text> $ l.16 ! Missing } inserted. <inserted text> } l.16 ! Missing } inserted. <inserted text> } l.16 ! Missing \cr inserted. <inserted text> \cr l.16 ! Missing { inserted. <inserted text> { l.16 ! Missing $ inserted. <inserted text> $ l.16 ! Missing $$ inserted. <to be read again> \par l.16 !
LaTeX Error: Too many columns in eqnarray environment. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.17 \end{eqnarray*} ! Misplaced \cr. \@@eqncr ...l \@eqnswtrue \global \@eqcnt \z@ \cr l.17 \end{eqnarray*} ! Extra }, or forgotten \endgroup. \endeqnarray ->\@@eqncr \egroup \global \advance \c@equation \m@ne $$\@ignor... l.17 \end{eqnarray*} ! Missing $ inserted. <inserted text> $ l.17 \end{eqnarray*} ! Display math should end with $$. <to be read again> \endgroup l.17 \end{eqnarray*} [1]
| <http://www.springer.com/kr/book/9780387310732>`_, | ||
| Bishop, Christopher M. Springer, Vol. 4 No. 4, 2006. | ||
|
|
||
| While the book presents the parts of the variationnl inference algorithm, it |
e258117 to
426a6a2
Compare
|
Please rebase this on top of master to make sure that the class link works as expected and add a link to the derivation page from the narrative documentation on variational Bayes mixture models. |
| Estimate Z | ||
| ~~~~~~~~~~ | ||
|
|
||
| Using the general result of variational inference, and take the expectation of |
There was a problem hiding this comment.
"taking". Also I don't think the comma is necessary before "and".
6bf7b9a to
b25523e
Compare
|
Rebase done. |
|
I think. |
|
Please update the link at the end of |
|
BTW, this PR need a rebase on top of the current master and also it should be stated that this derivation is valid only for the dirichlet distribution prior type (not the dirichlet process prior type). |
ogrisel
left a comment
There was a problem hiding this comment.
I did another pass and found the following issues:
| \end{eqnarray*} | ||
|
|
||
| Estimate lower bound terms | ||
| -------------------------- |
There was a problem hiding this comment.
I think this should be a subsection of the previous one which means using ~~~~~ instead of ----.
| \end{eqnarray*} | ||
|
|
||
| Lower bound combination and simplifications | ||
| ........................................... |
|
|
||
| Lower bound | ||
| ........... | ||
| The lower bound :math:`\mathcal{L}` is defined by |
There was a problem hiding this comment.
Please add a comment as to why this is useful to estimate the lower bound:
This variational lower bound is guaranteed to be non-decreasing. It can therefore be computed to monitor the convergence of the model. It can also be used to catch implementation bugs if an update causes a decrease of this quantity.
doc/modules/mixture.rst
Outdated
| .. toctree:: | ||
| :hidden: | ||
|
|
||
| bayesian_gaussian_mixture_derivation.rst |
There was a problem hiding this comment.
The derivation has a weird level of nesting for the headers. Maybe this is caused by inconsistencies in the underline style. They should be updated to use the same ordering for underline styles as in the mixture.rst file.
There was a problem hiding this comment.
I've removed toctree:: :hidden:
Conflicts: examples/mixture/plot_bayesian_gaussian_mixture.py
fb9e809 to
672f448
Compare
|
Thanks @ogrisel |
672f448 to
e513ab2
Compare
cmarmo
left a comment
There was a problem hiding this comment.
@tguillemot are you still interested in working on this? I know it has been a while, but if so, do you mind triggering a build as we can access the rendering of the documentation? Thanks a lot for your patience!
| @@ -0,0 +1,636 @@ | |||
| .. _bayesain_gaussian_mixture_derivation: | |||
There was a problem hiding this comment.
| .. _bayesain_gaussian_mixture_derivation: | |
| .. _bayesian_gaussian_mixture_derivation: |
|
Seems very stalled and much too many formulae, so closing. |
This PR adds the doc concerning the derivation formula of the
BayesianGaussianMixtureclass.I've done a separate PR because this is just formula and I thought it wil be easier to review if it was extracted on another PR.
Of course, this can't be merge before #6651.