2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

Add papers/write-math-paper

This commit is contained in:
Martin Thoma 2015-10-14 14:46:02 +02:00
parent 7740f0147f
commit fe78311901
25 changed files with 10624 additions and 0 deletions

View file

@ -0,0 +1,35 @@
SOURCE = errors-by-epoch-pretraining
DELAY = 80
DENSITY = 300
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
make
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
rm $(SOURCE)2.svg

View file

@ -0,0 +1,31 @@
\begin{tikzpicture}
\begin{axis}[
axis x line=middle,
axis y line=middle,
enlarge y limits=true,
xmin=0,
% xmax=1000,
ymin=0.18, ymax=0.4,
minor ytick={0, 0.01, ..., 1},
% width=15cm, height=8cm, % size of the image
grid = both,
minor grid style={dashed, gray!30},
major grid style={gray!40},,
%grid style={dashed, gray!30},
ylabel=error,
xlabel=epoch,
legend cell align=left,
legend style={
at={(0.5,-0.1)},
anchor=north,
legend columns=2
}
]
\addplot[mark=x,green] table [each nth point=20,x=epoch, y=testerror, col sep=comma] {baseline-1.csv};
\addplot[mark=x,orange] table [each nth point=20,x=epoch, y=testerror, col sep=comma] {baseline-2.csv};
\addplot[mark=x,red] table [each nth point=20,x=epoch, y=testerror, col sep=comma] {baseline-2-pretraining.csv};
\legend{{1 hidden layer},
{2 hidden layers},
{2 hidden layers with pretraining}}
\end{axis}
\end{tikzpicture}