summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tikz-bayesnet/model_lda.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-24 23:03:45 +0000
committerKarl Berry <karl@freefriends.org>2013-04-24 23:03:45 +0000
commit5e1a6326b6652f7e6b95fc1aa7a72b00072f21c3 (patch)
treeb2157d19fc28f53f0447f2a3c857ffd37155dd97 /Master/texmf-dist/doc/latex/tikz-bayesnet/model_lda.tex
parent8dd5331b1c2612522ed62e8557f498650c1114e7 (diff)
tikz-bayesnet (24apr13)
git-svn-id: svn://tug.org/texlive/trunk@30094 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tikz-bayesnet/model_lda.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tikz-bayesnet/model_lda.tex62
1 files changed, 62 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tikz-bayesnet/model_lda.tex b/Master/texmf-dist/doc/latex/tikz-bayesnet/model_lda.tex
new file mode 100644
index 00000000000..92e9acc4a2f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tikz-bayesnet/model_lda.tex
@@ -0,0 +1,62 @@
+% model_lda.tex
+%
+% Copyright (C) 2010,2011 Laura Dietz
+% Copyright (C) 2012 Jaakko Luttinen
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU General Public License.
+%
+% See the files LICENSE_LPPL and LICENSE_GPL for more details.
+
+% Latent Diriclet allocation model
+
+%\beginpgfgraphicnamed{model-lda}
+\begin{tikzpicture}[x=1.7cm,y=1.8cm]
+
+ % Nodes
+
+ \node[obs] (X) {$X$} ; %
+ \node[latent, above=of X] (T) {$T$} ; %
+ \node[latent, above=of T] (theta) {$\theta$}; %
+ \node[const, above=of theta] (atheta) {$\alpha_\theta$};
+
+
+ % Factors
+ \factor[above=of X] {X-f} {Multi} {} {} ; %
+ \factor[above=of T] {T-f} {left:Multi} {} {} ; %
+ \factor[above=of theta] {theta-f} {left:Dir} {} {} ; %
+
+ % More nodes
+ \node[latent, right=of X-f] (phi) {$\phi$}; %
+ \node[const, above=of phi] (aphi) {$\alpha_\phi$}; %
+
+ \factor[above=of phi] {phi-f} {right:Dir} {} {} ; %
+
+ \factoredge {theta} {T-f} {T} ; %
+ \factoredge {atheta} {theta-f} {theta} ; %
+ \factoredge {phi} {X-f} {X} ; %
+ \factoredge {aphi} {phi-f} {phi} ; %
+
+ \gate {X-gate} {(X-f)(X-f-caption)} {T}
+
+ \plate {plate1} { %
+ (X)(X-gate) %
+ (T)(T-f)(T-f-caption) %
+ } {$\forall 1 \leq i \leq n_d$}; %
+ \plate {} { %
+ (plate1) %
+ (theta)(theta-f)(theta-f-caption) %
+ } {$\forall d \in \mathcal{D}$} ; %
+ \plate {} { %
+ (phi)(phi-f)(phi-f-caption) %
+ } {$\forall t \in \mathcal{T}$} ; %
+
+\end{tikzpicture}
+%\endpgfgraphicnamed
+
+%%% Local Variables:
+%%% mode: tex-pdf
+%%% TeX-master: "example"
+%%% End: