summaryrefslogtreecommitdiff
path: root/info/examples/lgc/5-5-9.ltx
blob: a0cf7ae2559d4ca8800e9cccc794994161a37e36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\documentclass{ppex}
\nonstopmode
\usepackage [all,dvips]{xy}
\pagestyle{empty}

\begin{document}
\ResetPreambleCommands
\ReadyForTheFray
\usepackage [all,dvips]{xy}
\newcommand{\Neuron}[1]{\POS*+=<1em>[o]+[F]{#1}}
\newcommand{\Link}[1]{\ar @{-} "#1"}
\newcommand{\Out}{\ar +/r8mm/}
\newcommand{\In}{\save +/l9mm/*{}\ar +/r5mm/\restore}
\newgraphescape{O}[1]{!{\Neuron{#1}="#1"\Out}}
\newgraphescape{H}[1]{!{\Neuron{#1}="#1"\Link{A}\Link{B}}}
\newgraphescape{I}[1]{!{\Neuron{#1}\In\Link{a}\Link{b}\Link{c}}}
\[\xygraph{!{0;<18mm,0mm>:<0mm,10mm>::}
 [] !O{A}       [d]!O{B}
 [dd]*[left]!U[F]\txt<12mm>{output\\layer}="T"
"A" [u(.5)l]!H{a}
    [d]!H{b}    [d]!H{c}
"T" [l] *[left]!U[F]\txt<12mm>{hidden\\layer}
"a" [ul]!I{t_1}    [d] !I{t_2}    [d] !I{t_3}
    [d] !I{t_4}    [d] !I{t_5}
"T"[ll] *[left]!U[F]\txt<12mm>{input\\layer}
}\]
\end{document}