2013-08-25 15:25:24 +02:00
|
|
|
\documentclass{article}
|
|
|
|
\usepackage[pdftex,active,tightpage]{preview}
|
|
|
|
\setlength\PreviewBorder{2mm}
|
2015-10-14 14:25:34 +02:00
|
|
|
|
2013-08-25 15:25:24 +02:00
|
|
|
\usepackage{tikz}
|
2016-05-24 13:36:56 +02:00
|
|
|
\usetikzlibrary{arrows, arrows.meta}
|
2013-08-25 15:25:24 +02:00
|
|
|
|
|
|
|
\tikzstyle{input}=[draw,fill=red!50,circle,minimum size=10pt,inner sep=0pt]
|
|
|
|
\tikzstyle{hidden}=[draw,fill=green!50,circle,minimum size=10pt,inner sep=0pt]
|
|
|
|
\tikzstyle{output}=[draw,fill=blue!50,circle,minimum size=10pt,inner sep=0pt]
|
2016-05-24 13:36:56 +02:00
|
|
|
\tikzstyle{bias}=[draw,fill=gray!50,circle,minimum size=10pt,inner sep=0pt]
|
|
|
|
\tikzstyle{arrow}=[arrows={{latex'[scale=0.1]}-}, thick]
|
2013-08-25 15:25:24 +02:00
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
\begin{preview}
|
|
|
|
\begin{tikzpicture}
|
|
|
|
\node (b1)[bias] at (-1,0) {};
|
|
|
|
\node (b2)[bias] at (-0.5,1) {};
|
|
|
|
\node (i1)[input] at (0,0) {};
|
|
|
|
\node (i2)[input] at (1,0) {};
|
|
|
|
\node (i3)[input] at (2,0) {};
|
|
|
|
\node (i4)[input] at (3,0) {};
|
|
|
|
\node (i5)[input] at (4,0) {};
|
|
|
|
\node (h1)[hidden] at (0.5,1) {};
|
|
|
|
\node (h2)[hidden] at (1.5,1) {};
|
|
|
|
\node (h3)[hidden] at (2.5,1) {};
|
|
|
|
\node (o1)[output] at (1.5,2) {};
|
|
|
|
|
2016-05-24 13:36:56 +02:00
|
|
|
\draw[arrow] (o1) -- (b2);
|
|
|
|
\draw[arrow] (o1) -- (h1);
|
|
|
|
\draw[arrow] (o1) -- (h2);
|
|
|
|
\draw[arrow] (o1) -- (h3);
|
2013-08-25 15:25:24 +02:00
|
|
|
|
|
|
|
\foreach \j in {1, ..., 3}{
|
|
|
|
\foreach \i in {1, ..., 5}{
|
2016-05-24 13:36:56 +02:00
|
|
|
\draw[arrow] (h\j) -- (i\i);
|
2013-08-25 15:25:24 +02:00
|
|
|
}
|
2016-05-24 13:36:56 +02:00
|
|
|
\draw[arrow] (h\j) -- (b1);
|
2013-08-25 15:25:24 +02:00
|
|
|
}
|
|
|
|
\end{tikzpicture}
|
|
|
|
\end{preview}
|
|
|
|
\end{document}
|