You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

205 lines
9.3 KiB

\documentclass[tikz,crop]{standalone}
\input{tikz_standalone.tex}
\input{tikz_common.tex}
\input{tikz_colors.tex}
\input{../preamble/abbreviations.tex}
\begin{document}
\begin{tikzpicture}[tight background]
\begin{axis}[
at={(0, 0)},
paper decomposition,
xlabel=$\rv{X}$, ylabel=$\rv{a}$,
xmin=-0.1, xmax=1.1,
xticklabel pos=top,
xticklabels={,0, , 1},
ymin=-2.2, ymax=2.2,
ytick={-2, 0, 2},
yticklabels={-2, , 2},
ytick pos=left,
name=first_alignment,
]
\addplot[std, first, name path=first_plus] table[restrict x to domain=0:1, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_0_output_0.dat};
\addplot[std, first, name path=first_minus] table[restrict x to domain=0:1, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_0_output_0.dat};
\addplot[first fill] fill between[of=first_plus and first_minus, on layer={axis background}];
\addplot[weak mean, first] table[restrict x to domain=0:1, ignore chars={\#}, col sep=space, x=X, y=mu] {\figurepath/data/exp_15_our_model/sine_layer_0_output_0.dat};
\end{axis}
\begin{axis}[
at={(75pt, 0)},
paper decomposition,
xlabel=$\rv{X}$, ylabel=,
xmin=-0.1, xmax=1.1,
xticklabel pos=top,
xticklabels={, 0, , 1},
ymin=-1.7, ymax=3.,
ytick={-1.5, 0.5, 2.5},
yticklabels={-1.5, , 2.5},
ytick pos=right,
name=second_alignment,
]
\addplot[std, second, name path=second_plus] table[restrict x to domain=0:1, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_0_output_1.dat};
\addplot[std, second, name path=second_minus] table[restrict x to domain=0:1, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_0_output_1.dat};
\addplot[second fill] fill between[of=second_plus and second_minus, on layer={axis background}];
\addplot[weak mean, second] table[restrict x to domain=0:1, ignore chars={\#}, col sep=space, x=X, y=mu] {\figurepath/data/exp_15_our_model/sine_layer_0_output_1.dat};
\end{axis}
\begin{axis}[
at={(0, -45pt)},
paper decomposition,
xlabel=, ylabel=$\rv{f}$,
xmin=-2.5, xmax=3,
xtick={-2, 0, 2},
xticklabels={-2, , 2},
xticklabel pos=top,
ymin=-2.5, ymax=4.5,
ytick={-2, 1, 4},
yticklabels={-2, , 4},
ytick pos=left,
name=first_shared,
]
\addplot[std, shared, name path=shared_plus] table[restrict x to domain=-2.5:3, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_1_output_0.dat};
\addplot[std, shared, name path=shared_minus] table[restrict x to domain=-2.5:3, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_1_output_0.dat};
\addplot[shared fill] fill between[of=shared_plus and shared_minus, on layer={axis background}];
\addplot[weak mean, shared] table[restrict x to domain=-2.5:3, ignore chars={\#}, col sep=space, x=X, y=mu] {\figurepath/data/exp_15_our_model/sine_layer_1_output_0.dat};
\end{axis}
\begin{axis}[
at={(75pt, -45pt)},
paper decomposition,
xlabel=, ylabel=,
xmin=-2.5, xmax=3,
xtick={-2, 0, 2},
xticklabels={-2, , 2},
xticklabel pos=top,
ymin=-2, ymax=3,
ytick={-1.5, 0.5, 2.5},
yticklabels={-1.5, , 2.5},
ytick pos=right,
name=second_shared,
]
\addplot[std, shared, name path=shared_plus] table[restrict x to domain=-2.5:3, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_1_output_1.dat};
\addplot[std, shared, name path=shared_minus] table[restrict x to domain=-2.5:3, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_1_output_1.dat};
\addplot[shared fill] fill between[of=shared_plus and shared_minus, on layer={axis background}];
\addplot[weak mean, shared] table[restrict x to domain=-2.5:3, ignore chars={\#}, col sep=space, x=X, y=mu] {\figurepath/data/exp_15_our_model/sine_layer_1_output_1.dat};
\end{axis}
\begin{axis}[
at={(0, -90pt)},
paper decomposition,
xlabel=, ylabel=$\rv{g_1}$,
xmin=-2.5, xmax=4.5,
xtick={-2, 1, 4},
xticklabels={-2, , 4},
xticklabel pos=top,
ymin=-1.2, ymax=1.2,
yticklabels={,-1, , 1},
ytick pos=left,
name=first_warp,
]
\addplot[std, first, name path=first_plus] table[restrict x to domain=-2:4, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_2_output_0.dat};
\addplot[std, first, name path=first_minus] table[restrict x to domain=-2:4, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_2_output_0.dat};
\addplot[first fill] fill between[of=first_plus and first_minus, on layer={axis background}];
\addplot[weak mean, first] table[restrict x to domain=-2:4, ignore chars={\#}, col sep=space, x=X, y=mu] {\figurepath/data/exp_15_our_model/sine_layer_2_output_0.dat};
\end{axis}
\begin{axis}[
at={(75pt, -90pt)},
paper decomposition,
xlabel=, ylabel=$\rv{g_2}$,
xmin=-2, xmax=3,
xtick={-1.5, 0, 2.5},
xticklabels={-1.5, , 2.5},
xticklabel pos=top,
ymin=-1.2, ymax=1.2,
yticklabels={,-1, , 1},
ytick pos=right,
name=second_warp,
]
\addplot[std, second, name path=second_plus] table[restrict x to domain=-1.5:2.5, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_2_output_1.dat};
\addplot[std, second, name path=second_minus] table[restrict x to domain=-1.5:2.5, ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_layer_2_output_1.dat};
\addplot[second fill] fill between[of=second_plus and second_minus, on layer={axis background}];
\addplot[weak mean, second] table[restrict x to domain=-1.5:2.5, ignore chars={\#}, col sep=space, x=X, y=mu] {\figurepath/data/exp_15_our_model/sine_layer_2_output_1.dat};
\end{axis}
\tikzstyle{connector} = [
shorten <= 1pt, shorten >= 1pt,
arrows={-latex}, line width=1.5pt,
]
\draw[connector, first] (first_alignment.south) -- (first_shared.north);
\draw[connector, second] (second_alignment.south) -- (second_shared.north);
\draw[connector, first] (first_shared.south) -- (first_warp.north);
\draw[connector, second] (second_shared.south) -- (second_warp.north);
\draw[shared, line width=2pt] (first_shared.east) -- (second_shared.west);
%%%
\begin{axis}[
at={(0pt, -125pt)},
decomposition joint plot,
width=185pt,
xlabel=, ylabel=$\rv{y_1}$,
xticklabels={,,},
]
\addplot[
latent function, sStoneDark
] table[
ignore chars={\#}, col sep=space,
x=X, y=Y
] {\figurepath/data/sine_latent_first.dat};
\addplot[
tiny data, sStoneDark
] table[
ignore chars={\#}, col sep=space,
x=X, y=Y
] {\figurepath/data/sine_train_first.dat};
\addplot[std, first, name path=first_plus] table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_zero_joint_sampled.dat};
\addplot[std, first, name path=first_minus] table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_zero_joint_sampled.dat};
\addplot[first fill] fill between[of=first_plus and first_minus];
\addplot[mean, first] table[ignore chars={\#}, col sep=space, x=X, y=mu] {\figurepath/data/exp_15_our_model/sine_zero_joint_sampled.dat};
\end{axis}
\begin{axis}[
at={(0pt, -160pt)},
decomposition joint plot,
width=185pt,
xlabel=$\rv{X}$, ylabel=$\rv{y_2}$,
]
\addplot[
latent function, sStoneDark
] table[
ignore chars={\#}, col sep=space,
x=X, y=Y
] {\figurepath/data/sine_latent_second.dat};
\addplot[
tiny data, sStoneDark
] table[
ignore chars={\#}, col sep=space,
x=X, y=Y
] {\figurepath/data/sine_train_second.dat};
\addplot[std, second, name path=second_plus] table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_one_joint_sampled.dat};
\addplot[std, second, name path=second_minus] table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\figurepath/data/exp_15_our_model/sine_one_joint_sampled.dat};
\addplot[second fill] fill between[of=second_plus and second_minus];
\addplot[mean, second] table[ignore chars={\#}, col sep=space, x=X, y=mu] {\figurepath/data/exp_15_our_model/sine_one_joint_sampled.dat};
\addplot[tiny sample, hannah0] table[ignore chars={\#}, col sep=space, x=X, y=0] {\figurepath/data/exp_15_our_model/sine_one_joint_sampled_samples.dat};
\addplot[tiny sample, hannah2] table[ignore chars={\#}, col sep=space, x=X, y=1] {\figurepath/data/exp_15_our_model/sine_one_joint_sampled_samples.dat};
\addplot[tiny sample, hannah3] table[ignore chars={\#}, col sep=space, x=X, y=2] {\figurepath/data/exp_15_our_model/sine_one_joint_sampled_samples.dat};
\end{axis}
\end{tikzpicture}
\end{document}