errors-by-epoch-pretraining.tex 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. \begin{tikzpicture}
  2. \begin{axis}[
  3. axis x line=middle,
  4. axis y line=middle,
  5. enlarge y limits=true,
  6. xmin=0,
  7. % xmax=1000,
  8. ymin=0.18, ymax=0.4,
  9. minor ytick={0, 0.01, ..., 1},
  10. % width=15cm, height=8cm, % size of the image
  11. grid = both,
  12. minor grid style={dashed, gray!30},
  13. major grid style={gray!40},,
  14. %grid style={dashed, gray!30},
  15. ylabel=error,
  16. xlabel=epoch,
  17. legend cell align=left,
  18. legend style={
  19. at={(0.5,-0.1)},
  20. anchor=north,
  21. legend columns=2
  22. }
  23. ]
  24. \addplot[mark=x,green] table [each nth point=20,x=epoch, y=testerror, col sep=comma] {baseline-1.csv};
  25. \addplot[mark=x,orange] table [each nth point=20,x=epoch, y=testerror, col sep=comma] {baseline-2.csv};
  26. \addplot[mark=x,red] table [each nth point=20,x=epoch, y=testerror, col sep=comma] {baseline-2-pretraining.csv};
  27. \legend{{1 hidden layer},
  28. {2 hidden layers},
  29. {2 hidden layers with pretraining}}
  30. \end{axis}
  31. \end{tikzpicture}