validation-curve.tex 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage[utf8]{inputenc} % this is needed for umlauts
  3. \usepackage[ngerman]{babel} % this is needed for umlauts
  4. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  5. \usepackage[margin=2.5cm]{geometry} %layout
  6. \usepackage{tikz}
  7. \usepackage{pgfplots}
  8. \pgfplotsset{compat=1.13}
  9. \begin{document}
  10. \begin{tikzpicture}
  11. \begin{axis}[
  12. axis x line=middle,
  13. axis y line=middle,
  14. enlarge y limits=true,
  15. xmin=0,
  16. %xmax=2014,
  17. ymin=0.15,
  18. % ymax=26000,
  19. width=15cm, height=8cm, % size of the image
  20. grid = major,
  21. grid style={dashed, gray!30},
  22. ylabel=validation error,
  23. ylabel style={at={(0,1.0)}},
  24. xlabel=epoch,
  25. legend style={at={(0.8,0.71)}, anchor=north},
  26. legend cell align=right,
  27. xticklabel style=
  28. {/pgf/number format/1000 sep=,rotate=60,anchor=east,font=\scriptsize},
  29. % yticklabel style=
  30. % {scaled ticks=false,/pgf/number format/1000 sep=\,,rotate=0,anchor=east,font=\scriptsize},
  31. % legend style={draw=none, legend columns=-1}
  32. ]
  33. \addplot[thick, red, mark=., densely dashed] table [x=epoch, y=max_acc, col sep=comma] {baseline_cifar_test_acc.csv};
  34. \addplot[thick, blue, mark=.] table [x=epoch,y=min_acc, col sep=comma] {baseline_cifar_test_acc.csv};
  35. \legend{maximum validation accuracy, minimum validation accuracy}
  36. \end{axis}
  37. \end{tikzpicture}d
  38. \end{document}