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