Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
probml
GitHub Repository: probml/pyprobml
Path: blob/master/tikz/autoencoder-tikz.tex
1191 views
1
% https://tikz.net/autoencoder/
2
% Variational autoencoder architecture.
3
% Made with https://github.com/battlesnake/neural.
4
5
\documentclass[tikz]{standalone}
6
7
8
\usepackage{neuralnetwork}
9
10
\newcommand{\xin}[2]{$x_#2$}
11
\newcommand{\xout}[2]{$\hat x_#2$}
12
13
\begin{document}
14
\begin{neuralnetwork}[height=8,nodesize=10pt]
15
\tikzstyle{input neuron}=[neuron, fill=orange!70];
16
\tikzstyle{output neuron}=[neuron, fill=blue!60!black, text=white];
17
18
\inputlayer[count=8, bias=false, title=Input Layer, text=\xin]
19
20
\hiddenlayer[count=5, bias=false]
21
\linklayers
22
23
\hiddenlayer[count=3, bias=false, title=Latent\\Representation]
24
\linklayers
25
26
\hiddenlayer[count=5, bias=false]
27
\linklayers
28
29
\outputlayer[count=8, title=Output Layer, text=\xout]
30
\linklayers
31
32
\end{neuralnetwork}
33
\end{document}
34
35