File:Bayesian-gaussian-mixture-vb.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 227 × 221 pixels, file size: 34 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Plate diagram of graphical Bayesian Gaussian mixture model used in English Variational Bayes article.

    Created using the following LaTeX, TikZ:

    Source Code
    \documentclass{article}
    \usepackage{tikz,amsmath}
    %\usepackage{siunitx}
    \usetikzlibrary{arrows,snakes,backgrounds,patterns,matrix,shapes,fit,calc,shadows,plotmarks}
    \usepackage[graphics,tightpage,active]{preview}
    \PreviewEnvironment{tikzpicture}
    \PreviewEnvironment{equation}
    \PreviewEnvironment{equation*}
    \newlength{\imagewidth}
    \newlength{\imagescale}
    \pagestyle{empty}
    \thispagestyle{empty}
    \usepackage{standalone}
    
    \begin{document}
    
    \begin{tikzpicture}
    \tikzstyle{main}=[circle, minimum size = 10mm, thick, draw =black!80, node distance = 16mm]
    \tikzstyle{hyparam}=[rectangle, minimum size = 5mm, thick, draw =black!80, fill = black!10, node distance = 16mm]
    \tikzstyle{connect}=[-latex, thick]
    \tikzstyle{selector}=[-latex, -|, snake=snake,segment amplitude=.4mm,segment length=2mm,line after snake=1mm, thick]
    \tikzstyle{shortconnect}=[-latex, thin]
    \tikzstyle{box}=[rectangle, draw=black!100]
    \tikzstyle{switch}=[circle, minimum size = 1mm, fill = black!100, draw=black!100]
      \node[hyparam] (alpha0) [label=below:$\alpha_0$] { };
      \node[main] (pi) [right of=alpha0,label=below:$\boldsymbol\pi$] {[K]};
      \node[main] (z) [right of=pi,label=below:$z_i$] {K};
      \node[main] (mu) [above of=pi,yshift=10mm, label=below:$\boldsymbol\mu_k$] {[D]};
      \node[main, fill = black!10] (x) [right of= z,label=below:$\mathbf{x}_i$] {[D]};
      \node[main] (Lambda) [above of=z,yshift=10mm, label=below:$\boldsymbol\Lambda_k$] {[D,D]};
      \node[hyparam] (nu0) [above of=Lambda, label=$\nu_0$] { };
      \node[hyparam] (W0) [right of=nu0, label=$\mathbf{W}_0$] {[D,D]};
      \node[hyparam] (beta0) [above of=mu, label=$\beta_0$] { };
      \node[hyparam] (mu0) [left of=beta0, label=$\boldsymbol\mu_0$] {[D]};
      %\node[switch] (xz) [above left of=x] {};
      \path (alpha0) edge [connect] (pi)
            (pi) edge [connect] (z)
            %(z) edge [selector] (xz)
            %(mu) edge [connect] (xz)
            %(Lambda) edge [connect] (xz)
            %(xz) edge [shortconnect] (x)
            (z) edge [selector] (x)
            (mu) edge [connect] (x)
            (Lambda) edge [connect] (x)
            (Lambda) edge [connect] (mu)
            (nu0) edge [connect] (Lambda)
            (W0) edge [connect] (Lambda)
            (beta0) edge [connect] (mu)
            (mu0) edge [connect] (mu);
      %\node[rectangle, inner sep=0mm, fit= (z) (x) (xz),label=below right:N, yshift=-1.5mm, xshift=7mm] {};
      \node[rectangle, inner sep=0mm, fit= (z) (x),label=below right:N, yshift=-1.5mm, xshift=7mm] {};
      \node[rectangle, inner sep=4.4mm,draw=black!100, fit= (z) (x), yshift=-1.5mm, xshift=0.5mm] {};
      \node[rectangle, inner sep=0mm, fit= (mu) (Lambda),label=below right:K, yshift=-2mm, xshift=11mm] {};
      \node[rectangle, inner sep=4.4mm,draw=black!100, fit= (mu) (Lambda), yshift=-2mm, xshift=3mm] {};
    \end{tikzpicture}
    
    \end{document}
    
    Created using LaTeX, TikZ.
    Date
    Source Own work
    Author Benwing
    SVG development
    InfoField
     The SVG code is valid.
     This geometry was created with LaTeX.

    Licensing

    Benwing, the copyright holder of this work, hereby publishes it under the following licenses:
    GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
    w:en:Creative Commons
    attribution
    This file is licensed under the Creative Commons Attribution 3.0 Unported license.
    Attribution:
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    Copyright © Benwing

    Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
    3. Neither the name of Benwing nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

    This software is provided by Benwing "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall Benwing be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

    You may select the license of your choice.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    1 April 2012

    image/svg+xml

    f1784da421c362b60ebf81d2e54b95e2f2d6c64f

    34,977 byte

    221 pixel

    227 pixel

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current09:44, 2 April 2012Thumbnail for version as of 09:44, 2 April 2012227 × 221 (34 KB)wikimediacommons>Benwingboldface data vector since it's a vector

    There are no pages that use this file.