Review of chapter 2
This commit is contained in:
1 parent
f3f362359e
commit
74109b2c4c
31 files changed
+751
-352
No files matched your search
@@ -1,6 +1,5 @@
|
||||
\def\layersep{3cm}
|
||||
|
||||
\begin{tikzpicture}[shorten >=1pt,->, node distance=\layersep]
|
||||
\def\layersep{3cm}
|
||||
\begin{tikzpicture}[shorten >=1pt,->, node distance=\layersep,font=\small]
|
||||
\tikzstyle{neuron}=[circle,fill=black!25,minimum size=17pt,inner sep=0pt]
|
||||
\tikzstyle{input neuron}=[neuron, fill=\TikZColorFillDark];
|
||||
\tikzstyle{hidden neuron}=[neuron, fill=\TikZColorFill];
|
||||
@@ -8,31 +7,39 @@
|
||||
\tikzstyle{annot} = [text width=4em, text centered]
|
||||
|
||||
% Draw the hidden layer nodes
|
||||
\foreach \name / \y in {1,...,6}
|
||||
\path[yshift=0.5cm]
|
||||
node[hidden neuron] (H-\name) at (\layersep,-\y cm) {};
|
||||
\foreach \hidden / \y in {1,2,3,4,6}
|
||||
\path[yshift=0cm] node[hidden neuron] (H-\hidden) at (\layersep,-\y cm) {};
|
||||
\path[yshift=0cm] node[rotate=90] (H-5) at (\layersep,-5 cm) {...};
|
||||
|
||||
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:Input \#1}] (I-1) at (0,-1) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:Input \#2}] (I-2) at (0,-2) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:Input \#3}] (I-3) at (0,-3) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:Input \#4}] (I-4) at (0,-4) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:Input \#5}] (I-5) at (0,-5) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:SI}] (I-1) at (0,-1) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:TI}] (I-2) at (0,-2) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:Inter(\%)}] (I-3) at (0,-3) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:AVG\_MV}] (I-4) at (0,-4) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:Bitrate}] (I-5) at (0,-5) {};
|
||||
\node[input neuron, pin={[pin edge={latex-,thick,black}]left:PLR}] (I-6) at (0,-6) {};
|
||||
|
||||
% Draw the output layer nodes
|
||||
\foreach \name / \y in {1,...,4}
|
||||
% This is the same as writing \foreach \name / \y in {1/1,2/2,3/3,4/4}
|
||||
\node[output neuron, pin={[pin edge={-latex,thick,black}]right:M\y}] (O-\name) at (2*\layersep,-0.5-\y) {};
|
||||
%\node[output neuron, pin={[pin edge={-latex,thick,black}]right:M\y}] (O-\name) at (2*\layersep,-0.5-\y) {};
|
||||
\node[yshift=-1cm, output neuron] (O-\name) at (2*\layersep,-\y) {};
|
||||
\node[yshift=-1cm,output neuron] (O-O) at (3*\layersep,-2.5) {};
|
||||
|
||||
% Connect every node in the input layer with every node in the hidden layer.
|
||||
\foreach \source in {1,...,5}
|
||||
\foreach \dest in {1,...,6}
|
||||
\path (I-\source) edge (H-\dest);
|
||||
\foreach \source in {1,...,6}
|
||||
\foreach \hidden in {1,2,3,4,6}
|
||||
\path (I-\source) edge (H-\hidden);
|
||||
|
||||
% Connect every node in the hidden layer with the output layer
|
||||
\foreach \source in {1,...,6}
|
||||
\foreach \hidden in {1,2,3,4,6}
|
||||
\foreach \dest in {1,...,4}
|
||||
\path (H-\source) edge (O-\dest);
|
||||
\path (H-\hidden) edge (O-\dest);
|
||||
|
||||
\foreach \out in {1,...,4}
|
||||
\path[draw] (O-\out) -- (O-O) node[pos=.3,above] {\scriptsize S\out};
|
||||
|
||||
\path[draw] (O-O) -- ++(1.5,0) node[pos=0, above, anchor=south west] {S1...S4};
|
||||
|
||||
% Annotate the layers
|
||||
\node[annot,above of=H-1, node distance=.8cm] (hl) {Hidden};
|
||||
|
||||
Reference in new issue
Block a user