aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/multiplikation/presentation/slides/nn.tex
diff options
context:
space:
mode:
authorNunigan <michael.schmid2@ost.ch>2021-07-27 22:01:05 +0200
committerNunigan <michael.schmid2@ost.ch>2021-07-27 22:01:05 +0200
commit3875ac2b8df9145a66e9f6fcf34e77eb3bc2d072 (patch)
treeb5113260e190dfc7a94e4298bf6eb5ae21c08344 /buch/papers/multiplikation/presentation/slides/nn.tex
parentMerge pull request #50 from paschost/patch-1 (diff)
downloadSeminarMatrizen-3875ac2b8df9145a66e9f6fcf34e77eb3bc2d072.tar.gz
SeminarMatrizen-3875ac2b8df9145a66e9f6fcf34e77eb3bc2d072.zip
added first part of paper and code
Diffstat (limited to 'buch/papers/multiplikation/presentation/slides/nn.tex')
-rw-r--r--buch/papers/multiplikation/presentation/slides/nn.tex97
1 files changed, 97 insertions, 0 deletions
diff --git a/buch/papers/multiplikation/presentation/slides/nn.tex b/buch/papers/multiplikation/presentation/slides/nn.tex
new file mode 100644
index 0000000..e74e970
--- /dev/null
+++ b/buch/papers/multiplikation/presentation/slides/nn.tex
@@ -0,0 +1,97 @@
+
+\begin{frame}
+ \frametitle{Neural Network}
+ \centering
+\newcommand{\inputnum}{4}
+
+% Hidden layer neurons'number
+\newcommand{\hiddennumA}{5}
+\newcommand{\hiddennumB}{6}
+
+% Output layer neurons'number
+\newcommand{\outputnum}{4}
+
+\begin{tikzpicture}
+
+
+% Input Layer
+\foreach \i in {1,...,\inputnum}
+{
+ \node[circle,
+ minimum size = 6mm,
+ fill=blue!30] (Input-\i) at (0,-\i) {};
+}
+
+% Hidden Layer1
+\foreach \i in {1,...,\hiddennumA}
+{
+ \node[circle,
+ minimum size = 6mm,
+ fill=red!50,
+ yshift=(\hiddennumA-\inputnum)*5 mm
+ ] (Hidden1-\i) at (2.5,-\i) {};
+}
+
+% Hidden Layer2
+\foreach \i in {1,...,\hiddennumB}
+{
+ \node[circle,
+ minimum size = 6mm,
+ fill=red!50,
+ yshift=(\hiddennumB-\inputnum)*5 mm
+ ] (Hidden2-\i) at (5,-\i) {};
+}
+
+% Output Layer
+\foreach \i in {1,...,\outputnum}
+{
+ \node[circle,
+ minimum size = 6mm,
+ fill=green!50,
+ yshift=(\outputnum-\inputnum)*5 mm
+ ] (Output-\i) at (7.5,-\i) {};
+}
+
+% Connect neurons In-Hidden
+\foreach \i in {1,...,\inputnum}
+{
+ \foreach \j in {1,...,\hiddennumA}
+ {
+ \draw[->, shorten >=1pt] (Input-\i) -- (Hidden1-\j);
+ }
+}
+
+% Connect neurons In-Hidden
+\foreach \i in {1,...,\hiddennumA}
+{
+ \foreach \j in {1,...,\hiddennumB}
+ {
+ \draw[->, shorten >=1pt] (Hidden1-\i) -- (Hidden2-\j);
+ }
+}
+
+% Connect neurons Hidden-Out
+\foreach \i in {1,...,\hiddennumB}
+{
+ \foreach \j in {1,...,\outputnum}
+ {
+ \draw[->, shorten >=1pt] (Hidden2-\i) -- (Output-\j);
+ }
+}
+
+% Inputs
+\foreach \i in {1,...,\inputnum}
+{
+ \draw[<-, shorten <=1pt] (Input-\i) -- ++(-1,0)
+ node[left]{\LARGE{$x_{\i}$}};
+}
+
+% Outputs
+\foreach \i in {1,...,\outputnum}
+{
+ \draw[->, shorten <=1pt] (Output-\i) -- ++(1,0)
+ node[right]{\LARGE{$y_{\i}$}};
+}
+
+\end{tikzpicture}
+\end{frame}