705ab21970fc724ab3568fa663565d5342bb9854
[tex.git] / autoencoder.tex
1 %% -*- mode: latex; mode: reftex; mode: flyspell; coding: utf-8; tex-command: "pdflatex.sh" -*-
2
3 \documentclass[11pt,a4paper,twoside]{article}
4 \usepackage[a4paper,top=2.5cm,bottom=2cm,left=2.5cm,right=2.5cm]{geometry}
5 \usepackage{amsmath,amssymb,dsfont}
6 \usepackage[pdftex]{graphicx}
7 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=blue]{hyperref}
8 \usepackage{tikz}
9 \usetikzlibrary{arrows.meta}
10 \usepackage{cmbright}
11
12 \begin{document}
13
14 \definecolor{green}{rgb}{0.0,0.50,0.0}
15 \tikzset{>={Straight Barb[angle'=80,scale=1.1]}}
16
17 \begin{tikzpicture}
18
19 \draw[->] (0, 0) -- ++(0, 2);
20 \draw[->] (0, 0) -- ++(2.5, 0.6);
21 \draw[->] (0, 0) -- ++(3, 0) node[midway,below,yshift=-0.5em] {Original space ${\cal X}$};
22
23 \draw[fill=green!50,draw=none,shift={(0.2, 0.7)},scale=0.5]
24   (0, 0) to[out=20,in=140] (1.5, -0.2) to [out=60,in=160]
25   (5, 0.5) to[out=130,in=60]
26   cycle;
27
28 \shade[thin,left color=green!10,right color=green!50,draw=none,shift={(0.2, 0.7)},scale=0.5]
29   (0, 0) to[out=10,in=140] (3.3, -0.8) to [out=60,in=190] (5, 0.5) to[out=130,in=60] cycle;
30
31   \draw[->] (4.8, 0.8) -- ++(0, 2);
32   \draw[->] (4.8, 0.8) -- ++(2, 0) node[midway,below,yshift=-0.5em] {Latent space ${\cal F}$};
33
34   \draw[thin,fill=green!30,draw=none,shift={(5.4, 1.1)},rotate=20]
35     (0, 0) -- (1, 0) -- (1, 1) -- (0, 1) -- cycle;
36
37   \draw[thick,->,red]
38     (1.5, 1.3) to [out=55,in=150] node[midway,above,xshift=6pt,yshift=2pt] {$f$} (5.7, 2);
39
40   \draw[thick,->,blue] (1.5, 1.3) ++(4.03, 0.3) to [out=150,in=55]
41     node[midway,below,xshift=2pt,yshift=-2pt] {$g$} ++(-3.6, -0.5);
42
43 \end{tikzpicture}
44
45 \end{document}