Skip to content

Drawing Bayesian networks, graphical models, and technical frameworks in LaTeX.

License

Notifications You must be signed in to change notification settings

wm901115nwpu/awesome-latex-drawing

 
 

Repository files navigation

Awesome LaTeX drawing

MIT License repo size GitHub stars

Made by Xinyu Chen • 🌐 https://twitter.com/chenxy346

awesome-latex-drawing is a collection which uses LaTeX to draw Bayesian networks, graphical models, and technical frameworks.

LaTeX is a high-quality typesetting system, and it is available as free software. In recent years, it is popular for creating some graphics by LaTeX because LaTeX is able to draw many complicated graphics containing equations. For many programming languages like Python, installing related packages is just the first step. If you prefer not to install LaTeX on your own computer, overleaf.com is a good option. overleaf.com runs in your web browser and be accessed from any computer with an Internet connection. It is really convenient! Please register an account first!

Contents

Usage

Open overleaf.com in your Chrome.

It is not necessary to open each file in this repository because you can just follow this readme document.

Our Examples

Bayesian Networks

  • Open BCPF.tex in your overleaf project, then you will see the following picture:

Figure 1: BCPF (Bayesian CP factorization) model as a Bayesian network and a directed factor graph.

  • Open BGCP.tex in your overleaf project, then you will see the following pictures:

Figure 2: BGCP (Bayesian Gaussian CP decomposition) model as a Bayesian network and a directed factor graph.

  • Open BGCP-1.tex in your overleaf project, then you will see the following picture:

Figure 3: Another example for BGCP (Bayesian Gaussian CP decomposition) model as a Bayesian network and a directed factor graph.

  • Open BATF.tex in your overleaf project, then you will see the following picture:

Figure 4: BATF (Bayesian augmented tensor factorization) model as a Bayesian network and a directed factor graph.

  • Open btmf.tex in your overleaf project, then you will see the following picture:

Figure 5: BTMF (Bayesian temporal matrix factorization) model as a Bayesian network and a directed factor graph.

  • Open BTMF.tex in your overleaf project, then you will see the following picture:

Figure 6: BTMF (Bayesian temporal matrix factorization) model as a Bayesian network and a directed factor graph.

Research Frameworks

in your overleaf project, then you will see the following picture:

drawing

Figure 7: Tensor completion task and its framework including data organization and tensor completion, in which traffic measurements are partially observed.

drawing

Figure 8: A graphical illustration of rolling prediction strategy with temporal matrix factorization and autoregressive model.

drawing

Figure 9: A graphical illustration of rolling prediction strategy with temporal matrix factorization and vector autoregressive model.

drawing

Figure 10: A graphical illustration of the partially observed time series data.

drawing

Figure 11: A graphical illustration of the partially observed time series tensor.

drawing

Figure 12: Multivariate time series data prediction with missing values.

drawing

Figure 13: Tensor time series data prediction with missing values.

  • Open mf-explained.tex in your overleaf project, then you will see the following picture:

drawing

Figure 14: A graphical illustration of matrix factorization.

in your overleaf project, then you will see the following picture:

drawing

Figure 15: A graphical illustration of low-rank tensor completion model.

  • Open latc_framework in your overleaf project, then you will see the following picture:

drawing

Figure 16: A graphical illustration of low-rank autoregressive tensor completion model.

Tensor Factorization

  • Open tensor.tex in your overleaf project, then you will see the following picture:

drawing

Figure 17: A graphical illustration for the (origin,destination,time slot) tensor.

  • Open AuTF.tex in your overleaf project, then you will see the following picture:

drawing

Figure 18: Augmented tensor factorization (AuTF) model.

  • Open TVART.tex in your overleaf project, then you will see the following picture:

drawing

Figure 19: Tensor regression model.

  • Open tensor_svt.tex in your overleaf project, then you will see the following picture:

drawing

Figure 20: Singular value thresholding process of the tensor data with unitary transform.

Data Visualization

  • Open RMseries.tex in your overleaf project, then you will see the following picture:

drawing

Figure 21: Random missing pattern.

  • Open NMseries.tex in your overleaf project, then you will see the following picture:

drawing

Figure 22: Non-random missing pattern.

in your overleaf project, then you will see the following picture:

drawing

Figure 23: Imputation performance.

If you want to draw each sub-figure, please check out the following .tex files:

Awesome Stuff

in your overleaf project, then, you will see the following picture:

drawing

Figure 24: transdim logo.

More Features

Coming soon...

Related Projects

Publications

Most of these examples are from our papers:

  • Xinyu Chen, Yixian Chen, Lijun Sun (2020). Scalable low-rank autoregressive tensor learning for spatiotemporal traffic data imputation. arXiv: 2008.03194. [preprint] [data] [Python code]

  • Xinyu Chen, Jinming Yang, Lijun Sun (2020). A nonconvex low-rank tensor completion model for spatiotemporal traffic data imputation. arxiv. 2003.10271. [preprint] [data & Python code]

  • Xinyu Chen, Lijun Sun (2019). Bayesian temporal factorization for multidimensional time series prediction. arxiv. 1910.06366. [preprint] [slide] [data & Python code]

  • Xinyu Chen, Zhaocheng He, Yixian Chen, Yuhuan Lu, Jiawei Wang (2019). Missing traffic data imputation and pattern discovery with a Bayesian augmented tensor factorization model. Transportation Research Part C: Emerging Technologies, 104: 66-77. [preprint] [doi] [slide] [data] [Matlab code]

  • Xinyu Chen, Zhaocheng He, Lijun Sun (2019). A Bayesian tensor decomposition approach for spatiotemporal traffic data imputation. Transportation Research Part C: Emerging Technologies, 98: 73-84. [preprint] [doi] [data] [Matlab code] [Python code]

    Please consider citing our papers if you find these codes help your research.

About

Drawing Bayesian networks, graphical models, and technical frameworks in LaTeX.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 97.2%
  • Python 2.8%