From c9ce563147d2dcb8417d99de01b40f833ed762aa Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Sun, 27 Nov 2016 17:58:26 +0100 Subject: [PATCH] Improve code --- .../2d-epochs-overfitting.tex | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tikz/2d-epochs-overfitting/2d-epochs-overfitting.tex b/tikz/2d-epochs-overfitting/2d-epochs-overfitting.tex index cf4e54a..0f1bd45 100644 --- a/tikz/2d-epochs-overfitting/2d-epochs-overfitting.tex +++ b/tikz/2d-epochs-overfitting/2d-epochs-overfitting.tex @@ -13,26 +13,24 @@ axis x line=middle, axis y line=middle, grid = major, - %width=9cm, - %height=4.5cm, + width=10cm, + height=10cm, grid style={dashed, gray!30}, - xmin=-1, % start the diagram at this x-coordinate + xmin=0, % start the diagram at this x-coordinate xmax= 100, % end the diagram at this x-coordinate - ymin=-0.01, % start the diagram at this y-coordinate + ymin=0, % start the diagram at this y-coordinate ymax= 0.98, % end the diagram at this y-coordinate axis background/.style={fill=white}, xlabel=Epochs, ylabel=Error, - %xticklabels={-2,-1.6,...,7}, - %yticklabels={-8,-7,...,8}, tick align=outside, minor tick num=-3, enlargelimits=true, tension=0.08] - \addplot[domain=2:50, red, thick,samples=200] {(x-50)^2/2700 + 0.1}; + \addplot[domain=2:50, red, thick,samples=200,dashed] {(x-50)^2/2700 + 0.1}; \addplot[domain=4:50, green, thick,samples=200] {(x-50)^2/2700 + 0.2}; - \addplot[domain=50:100, red, thick,samples=200] {0.1}; + \addplot[domain=50:100, red, thick,samples=200,dashed] {0.1}; \addplot[domain=50:100, green, thick,samples=200] {(x-50)^2/10000 + 0.2}; \draw[dashed] (axis cs:50,0.1) -- (axis cs:50,0.2);