Browse Source

Add multimodal plots

master
Markus Kaiser 2 years ago
parent
commit
bc6393bb79
  1. 12
      ecml-poster/figures/preamble/tikz_style.tex
  2. 142
      ecml-poster/figures/semi_bimodal.tex
  3. 69
      ecml-poster/poster.tex

12
ecml-poster/figures/preamble/tikz_style.tex

@ -43,6 +43,18 @@
ymin=-1.5, ymax=3.5,
}}
\pgfplotsset{multimodal plot/.style = {
model plot,
width=.8\textwidth,
height=175pt,
clip mode=individual,
xlabel=$\rv{X}$, ylabel=$\rv{y}$,
ymin=-5, ymax=3,
xmin=-11, xmax=11,
xtick={-10, -5, 0, 5, 10},
ytick={-4, -2, 0, 2},
}}
\pgfplotsset{slim colorbar right/.style = {
colorbar,
colorbar style={

142
ecml-poster/figures/semi_bimodal.tex

@ -0,0 +1,142 @@
\documentclass[beamer,tikz,crop]{standalone}
\input{preamble/tikz_standalone.tex}
\input{preamble/tikz_common.tex}
\input{preamble/tikz_style.tex}
\input{preamble/tikz_colors.tex}
\input{../abbreviations.tex}
\begin{document}
\begin{tikzpicture}
\def\datapath{\figurepath/data/semi_bimodal_fancy}
\begin{axis}[
multimodal plot,
xlabel=,
name=p0,
]
\addplot[
data,
] table[
ignore chars={\#}, col sep=space, x=X, y=Y
] {\datapath/Xs_Ys.dat};
\end{axis}
\begin{axis}[
multimodal plot,
at={(p0.outer south east)},
anchor=north east,
xlabel=,
name=p1,
]
\addplot[
data,
fourth,
mark=square*,
] table[
ignore chars={\#}, col sep=space, x=X, y=Y
] {\datapath/Xs_Ys_attrib_separated_1.dat};
\addplot[
data,
third,
mark=triangle*,
] table[
ignore chars={\#}, col sep=space, x=X, y=Y
] {\datapath/Xs_Ys_attrib_separated_0.dat};
\addplot[
data,
second,
mark=diamond*,
] table[
ignore chars={\#}, col sep=space, x=X, y=Y
] {\datapath/Xs_Ys_attrib_separated_2.dat};
\addplot[
data,
first,
mark=pentagon*,
] table[
ignore chars={\#}, col sep=space, x=X, y=Y
] {\datapath/Xs_Ys_attrib_separated_3.dat};
\end{axis}
\begin{axis}[
multimodal plot,
at={(p1.outer south east)},
anchor=north east,
xlabel=,
name=p2,
]
\addplot[
data,
] table[
ignore chars={\#}, col sep=space, x=X, y=Y
] {\datapath/Xs_Ys.dat};
\addplot[std, fourth, name path=minus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\datapath/Xt_mode_1.dat};
\addplot[std, fourth, name path=plus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\datapath/Xt_mode_1.dat};
\addplot[fourth fill]
fill between[of=plus and minus];
\addplot[mean, fourth]
table[ignore chars={\#}, col sep=space, x=X, y=mu] {\datapath/Xt_mode_1.dat};
\addplot[std, third, name path=plus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\datapath/Xt_mode_0.dat};
\addplot[std, third, name path=minus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\datapath/Xt_mode_0.dat};
\addplot[third fill]
fill between[of=plus and minus];
\addplot[mean, third]
table[ignore chars={\#}, col sep=space, x=X, y=mu] {\datapath/Xt_mode_0.dat};
\addplot[std, second, name path=plus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\datapath/Xt_mode_2.dat};
\addplot[std, second, name path=minus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\datapath/Xt_mode_2.dat};
\addplot[second fill]
fill between[of=plus and minus];
\addplot[mean, second]
table[ignore chars={\#}, col sep=space, x=X, y=mu] {\datapath/Xt_mode_2.dat};
\addplot[std, first, name path=plus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\datapath/Xt_mode_3.dat};
\addplot[std, first, name path=minus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\datapath/Xt_mode_3.dat};
\addplot[first fill]
fill between[of=plus and minus];
\addplot[mean, first]
table[ignore chars={\#}, col sep=space, x=X, y=mu] {\datapath/Xt_mode_3.dat};
\end{axis}
\begin{axis}[
multimodal plot,
at={(p2.outer south east)},
anchor=north east,
xlabel=$\rv{X}$, ylabel=$\Fun{\softmax}{\rv{\alpha}}$,
ylabel style={rotate=90},
ymin=-0.05, ymax=0.8,
ytick={0, 0.33, 0.66},
name=p3,
]
\pgfplotsset{restrict/.style = {
restrict x to domain=-10:10,
}}
\addplot[very thick, third, restrict, densely dotted]
table[ignore chars={\#}, col sep=space, x=X, y=mode_0] {\datapath/Xt_mode_prob.dat};
\addplot[very thick, fourth, restrict, densely dashed]
table[ignore chars={\#}, col sep=space, x=X, y=mode_1] {\datapath/Xt_mode_prob.dat};
\addplot[very thick, second, restrict]
table[ignore chars={\#}, col sep=space, x=X, y=mode_2] {\datapath/Xt_mode_prob.dat};
\addplot[very thick, first, restrict, dashdotted]
table[ignore chars={\#}, col sep=space, x=X, y=mode_3] {\datapath/Xt_mode_prob.dat};
\end{axis}
\end{tikzpicture}
\end{document}

69
ecml-poster/poster.tex

@ -92,14 +92,8 @@
\begin{block}{Multimodal Data}
\begin{figure}
\centering
% \includestandalonewithpath{figures/toy_decomposition_true}
\includestandalonewithpath{figures/semi_bimodal}
\end{figure}
\begin{itemize}
\item Two time series are generated via a shared dampened sine function
\item The shared function is never observed directly
\item A non-linear warping and a non-linear alignment are applied to the time series
\item The task is to recover this hierarchy and predict missing intervals
\end{itemize}
\end{block}
\begin{block}{Noise Separation}
\begin{figure}
@ -199,36 +193,39 @@
\separatorcolumn
%
\begin{column}{\colwidth}
\begin{block}{Wet-Chicken RL Benchmark}
\centering
\includestandalonewithpath{figures/wetchicken}
\end{block}
\begin{block}{Interpretable Transition Model}
\begin{figure}
\centering
\includestandalonewithpath{figures/dynamics_posterior}
\end{figure}
\end{block}
\begin{block}{Conservative Policy}
\begin{figure}
\centering
\begin{subfigure}{.475\textwidth}
\centering
\includestandalonewithpath{figures/policy_quiver}
\caption{
$\Fun*{R}{x, y} = x$
}
\end{subfigure}
\hfill
\begin{subfigure}{.475\textwidth}
\centering
\includestandalonewithpath{figures/conservative_policy_quiver}
\caption{
$\Fun*{R^\prime}{x, y} = \Fun*{R}{x, y} - 5 \cdot \Prob{\text{drop} \given x, y}$
}
\end{subfigure}
\end{figure}
\begin{block}{Test}
Test
\end{block}
% \begin{block}{Wet-Chicken RL Benchmark}
% \centering
% \includestandalonewithpath{figures/wetchicken}
% \end{block}
% \begin{block}{Interpretable Transition Model}
% \begin{figure}
% \centering
% \includestandalonewithpath{figures/dynamics_posterior}
% \end{figure}
% \end{block}
% \begin{block}{Conservative Policy}
% \begin{figure}
% \centering
% \begin{subfigure}{.475\textwidth}
% \centering
% \includestandalonewithpath{figures/policy_quiver}
% \caption{
% $\Fun*{R}{x, y} = x$
% }
% \end{subfigure}
% \hfill
% \begin{subfigure}{.475\textwidth}
% \centering
% \includestandalonewithpath{figures/conservative_policy_quiver}
% \caption{
% $\Fun*{R^\prime}{x, y} = \Fun*{R}{x, y} - 5 \cdot \Prob{\text{drop} \given x, y}$
% }
% \end{subfigure}
% \end{figure}
% \end{block}
\end{column}
%
\separatorcolumn

Loading…
Cancel
Save