1 %% -*- mode: latex; mode: reftex; mode: flyspell; coding: utf-8; tex-command: "pdflatex.sh" -*-
3 \documentclass[11pt,a4paper,twoside]{article}
4 \usepackage[a4paper,top=2.5cm,bottom=2cm,left=2.5cm,right=2.5cm]{geometry}
5 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=blue]{hyperref}
10 \usetikzlibrary{arrows,arrows.meta,calc}
11 \usetikzlibrary{patterns,backgrounds}
12 \usetikzlibrary{positioning,fit}
13 \usetikzlibrary{shapes.geometric,shapes.multipart}
14 \usetikzlibrary{patterns.meta,decorations.pathreplacing,calligraphy}
15 \usetikzlibrary{tikzmark}
16 \usetikzlibrary{decorations.pathmorphing}
18 \usepgfplotslibrary{patchplots,colormaps}
19 \pgfplotsset{compat = newest}
24 \definecolor{blue}{rgb}{0.3,0.5,0.85}
25 \definecolor{red}{rgb}{0.65,0.0,0.0}
29 \immediate\write18{./warp.py --result_dir=.}
31 \newcommand{\warp}[1]{%
33 \begin{axis}[ticks=none,width=7.0cm, height=7.0cm,xmin=-1.2,xmax=1.2,ymin=-1.2,ymax=1.2]
41 \begin{tikzpicture}[warp/.style={inner sep=1pt,minimum width=5.0cm,minimum height=5.0cm}]
42 \node[warp] (W0) {\warp{warp_0.tex}};
43 \node[warp,right=2pt of W0] (W1) {\warp{warp_1.tex}};
44 \node[warp,right=2pt of W1] (W2) {\warp{warp_2.tex}};
45 \node[warp,below=20pt of W0] (W3) {\warp{warp_3.tex}};
46 \node[warp,right=2pt of W3] (W4) {\warp{warp_4.tex}};
47 \node[warp,right=2pt of W4] (W5) {\warp{warp_5.tex}};
48 \node[warp,below=20pt of W3] (W6) {\warp{warp_6.tex}};
49 \node[warp,right=2pt of W6] (W7) {\warp{warp_7.tex}};
50 \node[warp,right=2pt of W7] (W8) {\warp{warp_8.tex}};
51 \node[inner sep=0pt,below=4pt of W0] (lW0) {\footnotesize Input};
52 \foreach \n in {1,...,8}{
53 \node[inner sep=0pt,below=4pt of W\n] (lW\n) {\footnotesize Layer \#\n};
58 \caption[Feature warping]{Each plot shows the deformation of the space
59 and the resulting distribution of the training points in
60 $\mathbb{R}^2$ corresponding to the output of each layer, starting
61 with the input in the top-left square. The thick oblique line in the
62 bottom-right plot shows the final affine decision.}\label{fig:warp}