mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
tikz/validation-curve: Add
This commit is contained in:
parent
6719a5b82a
commit
9c5d73dbff
16 changed files with 1808 additions and 0 deletions
41
tikz/validation-curve/validation-curve.tex
Normal file
41
tikz/validation-curve/validation-curve.tex
Normal file
|
@ -0,0 +1,41 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage[utf8]{inputenc} % this is needed for umlauts
|
||||
\usepackage[ngerman]{babel} % this is needed for umlauts
|
||||
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
|
||||
\usepackage[margin=2.5cm]{geometry} %layout
|
||||
|
||||
\usepackage{tikz}
|
||||
\usepackage{pgfplots}
|
||||
\pgfplotsset{compat=1.13}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
axis x line=middle,
|
||||
axis y line=middle,
|
||||
enlarge y limits=true,
|
||||
xmin=0,
|
||||
%xmax=2014,
|
||||
ymin=0.15,
|
||||
% ymax=26000,
|
||||
width=15cm, height=8cm, % size of the image
|
||||
grid = major,
|
||||
grid style={dashed, gray!30},
|
||||
ylabel=validation error,
|
||||
ylabel style={at={(0,1.0)}},
|
||||
xlabel=epoch,
|
||||
legend style={at={(0.8,0.71)}, anchor=north},
|
||||
legend cell align=right,
|
||||
xticklabel style=
|
||||
{/pgf/number format/1000 sep=,rotate=60,anchor=east,font=\scriptsize},
|
||||
% yticklabel style=
|
||||
% {scaled ticks=false,/pgf/number format/1000 sep=\,,rotate=0,anchor=east,font=\scriptsize},
|
||||
% legend style={draw=none, legend columns=-1}
|
||||
]
|
||||
\addplot[thick, red, mark=., densely dashed] table [x=epoch, y=max_acc, col sep=comma] {baseline_cifar_test_acc.csv};
|
||||
\addplot[thick, blue, mark=.] table [x=epoch,y=min_acc, col sep=comma] {baseline_cifar_test_acc.csv};
|
||||
\legend{maximum validation accuracy, minimum validation accuracy}
|
||||
\end{axis}
|
||||
\end{tikzpicture}d
|
||||
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue