diff options
author | Karl Berry <karl@freefriends.org> | 2013-08-21 22:12:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-08-21 22:12:29 +0000 |
commit | 25ba460f71a0b0e6fcb53990a9a743fa8c12cf79 (patch) | |
tree | d5eed543278915c6d126df22af71e5981b2a78a9 /Master/texmf-dist/doc | |
parent | 0242d8487d77244b7c27ab708bc73bedc35b7eaf (diff) |
neuralnetwork (21aug13)
git-svn-id: svn://tug.org/texlive/trunk@31492 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rwxr-xr-x | Master/texmf-dist/doc/latex/neuralnetwork/examples/neural-networks-ebook.pdf | bin | 0 -> 594709 bytes | |||
-rwxr-xr-x | Master/texmf-dist/doc/latex/neuralnetwork/examples/neuralnetwork.pdf | bin | 0 -> 30526 bytes | |||
-rwxr-xr-x | Master/texmf-dist/doc/latex/neuralnetwork/examples/neuralnetwork.tex | 14 | ||||
-rwxr-xr-x | Master/texmf-dist/doc/latex/neuralnetwork/examples/xor.pdf | bin | 0 -> 25058 bytes | |||
-rwxr-xr-x | Master/texmf-dist/doc/latex/neuralnetwork/examples/xor.tex | 36 |
5 files changed, 50 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/neuralnetwork/examples/neural-networks-ebook.pdf b/Master/texmf-dist/doc/latex/neuralnetwork/examples/neural-networks-ebook.pdf Binary files differnew file mode 100755 index 00000000000..fc49fb4130e --- /dev/null +++ b/Master/texmf-dist/doc/latex/neuralnetwork/examples/neural-networks-ebook.pdf diff --git a/Master/texmf-dist/doc/latex/neuralnetwork/examples/neuralnetwork.pdf b/Master/texmf-dist/doc/latex/neuralnetwork/examples/neuralnetwork.pdf Binary files differnew file mode 100755 index 00000000000..dc047783c52 --- /dev/null +++ b/Master/texmf-dist/doc/latex/neuralnetwork/examples/neuralnetwork.pdf diff --git a/Master/texmf-dist/doc/latex/neuralnetwork/examples/neuralnetwork.tex b/Master/texmf-dist/doc/latex/neuralnetwork/examples/neuralnetwork.tex new file mode 100755 index 00000000000..7112ef0810c --- /dev/null +++ b/Master/texmf-dist/doc/latex/neuralnetwork/examples/neuralnetwork.tex @@ -0,0 +1,14 @@ +\documentclass{standalone} + +\usepackage{neuralnetwork} + +\begin{document} + \begin{neuralnetwork}[height=4] + \newcommand{\nodetextclear}[2]{} + \newcommand{\nodetextx}[2]{$x_#2$} + \newcommand{\nodetexty}[2]{$y_#2$} + \inputlayer[count=4, bias=false, title=Input\\layer, text=\nodetextx] + \hiddenlayer[count=5, bias=false, title=Hidden\\layer, text=\nodetextclear] \linklayers + \outputlayer[count=3, title=Output\\layer, text=\nodetexty] \linklayers + \end{neuralnetwork} +\end{document} diff --git a/Master/texmf-dist/doc/latex/neuralnetwork/examples/xor.pdf b/Master/texmf-dist/doc/latex/neuralnetwork/examples/xor.pdf Binary files differnew file mode 100755 index 00000000000..62c3d9be56d --- /dev/null +++ b/Master/texmf-dist/doc/latex/neuralnetwork/examples/xor.pdf diff --git a/Master/texmf-dist/doc/latex/neuralnetwork/examples/xor.tex b/Master/texmf-dist/doc/latex/neuralnetwork/examples/xor.tex new file mode 100755 index 00000000000..30bfecc7a7d --- /dev/null +++ b/Master/texmf-dist/doc/latex/neuralnetwork/examples/xor.tex @@ -0,0 +1,36 @@ +\documentclass{standalone} + +\usepackage{neuralnetwork} + +\begin{document} + \begin{neuralnetwork}[height=2.5, layertitleheight=0, nodespacing=2.8cm, layerspacing=1.7cm] + \newcommand{\nodetextclear}[2]{} + \newcommand{\nodetextxnb}[2]{\ifnum0=#2 \else $x_#2$ \fi} + \newcommand{\logiclabel}[1]{\,{$\scriptstyle#1$}\,} + \newcommand{\nodetextY}[2]{$y$} + \newcommand{\linklabelsU}[4]{\logiclabel{+1}} + \newcommand{\linklabelsA}[4]{\ifnum0=#2 \logiclabel{+3} \else \logiclabel{-2} \fi} + \setdefaultnodetext{\nodetextclear} + % Input layer + \inputlayer[count=2, bias=false, text=\nodetextxnb] + % links to first hidden layer from input layer + \hiddenlayer[count=3, bias=false, exclude={1, 3}] + \link[from layer=0, to layer=1, from node=1, to node=2, label=\linklabelsA] + \link[from layer=0, to layer=1, from node=2, to node=2, label=\linklabelsA] + \hiddenlayer[count=2, bias=true, biaspos=center] + % links to second hidden layer from input and first hidden layer + \link[from layer=0, to layer=2, from node=1, to node=1, label=\linklabelsA] + \link[from layer=1, to layer=2, from node=2, to node=1, label=\linklabelsA] + \link[from layer=1, to layer=2, from node=2, to node=2, label=\linklabelsA] + \link[from layer=0, to layer=2, from node=2, to node=2, label=\linklabelsA] + \outputlayer[count=1, text=\nodetextY] + % links to output layer from second hidden layer + \link[from layer=2, to layer=3, from node=1, to node=1, label=\linklabelsA] + \link[from layer=2, to layer=3, from node=2, to node=1, label=\linklabelsA] + % links from bias node + \link[from layer=2, to layer=1, from node=0, to node=2, label=\linklabelsA] + \link[from layer=2, to layer=2, from node=0, to node=1, label=\linklabelsA] + \link[from layer=2, to layer=2, from node=0, to node=2, label=\linklabelsA] + \link[from layer=2, to layer=3, from node=0, to node=1, label=\linklabelsA] + \end{neuralnetwork} +\end{document} |