• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jluttine/tikz-bayesnet: TikZ library for drawing Bayesian networks, graphical mo ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jluttine/tikz-bayesnet

开源软件地址(OpenSource Url):

https://github.com/jluttine/tikz-bayesnet

开源编程语言(OpenSource Language):

TeX 100.0%

开源软件介绍(OpenSource Introduction):

BayesNet

TikZ library for drawing Bayesian networks, graphical models and (directed) factor graphs in LaTeX.

Contents

Provides the following node styles:

  • latent
  • obs
  • det
  • const
  • factor
  • plate
  • gate

Provides the following commands (note that any of the arguments can be empty):

  • \factor [options] {name} {caption} {inputs} {outputs}
  • \plate [options] {name} {fitlist} {caption}
  • \gate [options] {name} {fitlist} {inputs}
  • \vgate {name} {fitlist-left} {caption-left} {fitlist-right} {caption-right} {inputs}
  • \hgate {name} {fitlist-top} {caption-top} {fitlist-bottom} {caption-bottom} {inputs}
  • \edge [options] {inputs} {outputs}
  • \factoredge [options] {inputs} {factors} {outputs}

Usage

Install the package by copying tikzlibrarybayesnet.code.tex to your LaTeX system or copy the file into projects that are using it. To use the library in your LaTeX file

\usepackage{tikz}
\usetikzlibrary{bayesnet}

Compile the LaTeX example:

pdflatex example.tex

and see the resulting PDF file example.pdf.

Example

Bayesian network.

PCA model as a Bayesian network and a directed factor graph.

Citation influence model

Directed factor graph of the citation influence model.

Related projects

This library is derived from a technical report "Directed Factor Graph Notation for Generative Models" and the accompanying TikZ macros by Laura Dietz 2010 (http://people.cs.umass.edu/~dietz/). The technical report is available in this repository as dietz-techreport.pdf.

GraphViz (http://www.graphviz.org/) is a more general open source graph visualization software. It uses DOT file format to describe the structure of the graph. The DOT file can be converted to LaTeX using dot2tex (http://www.fauskes.net/code/dot2tex/).

UAI (http://graphmod.ics.uci.edu/uai08/FileFormat) is a simple text file format to describe Markov networks. The UAI file format can be converted to DOT file format using uai2dot (https://github.com/drewfrank/uai2dot).

License

Copyright (C) 2010-2011 Laura Dietz
Copyright (C) 2012 Jaakko Luttinen [email protected]

This work is released under the MIT license.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap