• Stars
    star
    826
  • Rank 55,195 (Top 2 %)
  • Language
    TeX
  • License
    MIT License
  • Created over 12 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

rofi-power-menu

Configurable power menu mode for Rofi and dmenu
Shell
412
star
2

suitesparse

PLEASE SEE THE OFFICIAL REPOSITORY. THIS IS NOT MAINTAINED ANYMORE.
C
93
star
3

matlab

A collection of MATLAB scripts
MATLAB
90
star
4

nixos-configuration

Personal NixOS configuration
Nix
63
star
5

NiDE

Niche i3 Desktop Environment: Keyboard-driven DE installed in the home directory
Nix
32
star
6

variational-bayes-book

Open access book on variational Bayesian methods written collaboratively
Python
28
star
7

d3py

Thin Python wrapper for D3.js
Python
21
star
8

junction-tree

The junction tree algorithm for (discrete) factor graphs
Python
18
star
9

neural-network-exercises

Exercises for the course T-61.5130 Machine Learning and Neural Networks
TeX
11
star
10

django-sportsteam

Web site for a sports team or club using Django.
Python
7
star
11

rofi-script-to-dmenu

Run rofi scripts with dmenu (or with dmenu mode of rofi)
Shell
6
star
12

CryptOS

Live offline OS for cryptocurrencies based on NixOS
Nix
5
star
13

haskpy

Haskell/Hask inspired classes and functions in Python
Python
5
star
14

dbus-listen

Execute a command or a script on D-Bus signals
Haskell
3
star
15

jaakkoluttinen.fi

My personal home page
Python
2
star
16

dotfiles

Personal dotfiles
Python
2
star
17

dash-demo

Plotly Dash demo
Python
2
star
18

tikz-in-readthedocs

DEPRECATED. Wrapper for binaries required by TikZ at readthedocs.org
Python
2
star
19

sphinx-bayesnet

BayesNet extension for Sphinx
Python
1
star
20

sphinx-tikz

DEPRECATED. TikZ extension for Sphinx (NOTE! Official and up-to-date repository available at bitbucket by the author)
Python
1
star
21

thesis

PhD Thesis: Bayesian latent Gaussian models
TeX
1
star
22

geneticart

Simple art generator using generative algorithms (school project work in 2006)
Java
1
star
23

mail-forwarder

A simple mail server to forward custom email addresses to one existing email address
Python
1
star