专栏名称: 机器学习研究会
机器学习研究会是北京大学大数据与机器学习创新中心旗下的学生组织,旨在构建一个机器学习从事者交流的平台。除了及时分享领域资讯外,协会还会举办各种业界巨头/学术神牛讲座、学术大牛沙龙分享会、real data 创新竞赛等活动。
目录
相关文章推荐
黄建同学  ·  #openai发布最强模型o1##程序员# ... ·  19 小时前  
宝玉xp  ·  //@大红矛:转发微博-2024091601 ... ·  昨天  
人工智能那点事  ·  “单王”外卖员电动车上猝死,多方回应! ·  6 天前  
爱可可-爱生活  ·  【hand_teleop_real_sim_ ... ·  6 天前  
51好读  ›  专栏  ›  机器学习研究会

【学习】用LaTeX绘制贝叶斯网络、图模型、(有向)因子图等

机器学习研究会  · 公众号  · AI  · 2017-01-28 20:24

正文


点击上方“机器学习研究会”可以订阅哦
摘要
 

转自:爱可可-爱生活

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


链接:

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


原文链接:

http://weibo.com/1402400261/EsTnqiO2p?ref=collection&type=comment#_rnd1485605925482

“完整内容”请点击【阅读原文】
↓↓↓