figure-corresponence-between-matrix-element-and-output.tex 2.25 KB
Newer Older
孟霞 committed
1 2 3 4 5 6 7 8 9 10
%%%------------------------------------------------------------------------------------------------------------
\begin{tikzpicture}
\begin{scope}

\tikzstyle{neuronnode} = [minimum size=1.5em,circle,draw,ublue,very thick,fill=white,drop shadow={shadow xshift=0.1em,shadow yshift=-0.1em}]

\node [anchor=center,neuronnode] (neuron00) at (0,0) {};
\node [anchor=center,neuronnode] (neuron01) at ([yshift=-3em]neuron00) {};
\node [anchor=center,neuronnode] (neuron02) at ([yshift=-3em]neuron01) {};

孟霞 committed
11 12
\node [anchor=east] (x0) at ([xshift=-6em]neuron00.west) {$x_1$};
\node [anchor=east] (x1) at ([xshift=-6em]neuron01.west) {$x_2$};
孟霞 committed
13
\node [anchor=east] (x2) at ([xshift=-6em]neuron02.west) {$\mathbi{b}$};
孟霞 committed
14

孟霞 committed
15
\node [anchor=west] (y0) at ([xshift=4em]neuron00.east) {$y_1$\scriptsize{温度}};
孟霞 committed
16

孟霞 committed
17 18 19
\draw [->,red!50,line width=0.4mm] (x0.east) -- (neuron00.180) node [pos=0.1,above] {\tiny{$w_{11}$}};
\draw [->,red!50,line width=0.4mm] (x1.east) -- (neuron00.200) node [pos=0.1,above] {\tiny{$w_{21}$}};
\draw [->,red!50,line width=0.4mm] (x2.east) -- (neuron00.220) node [pos=0.05,above,yshift=0.3em] {\tiny{$b_{1}$}};
孟霞 committed
20 21
\draw [->,red!30,line width=0.4mm] (neuron00.east) -- (y0.west);

孟霞 committed
22
\node [anchor=west] (y1) at ([xshift=4em]neuron01.east) {$y_2$\scriptsize{湿度}};
孟霞 committed
23

孟霞 committed
24 25 26
\draw [->,blue!50,line width=0.4mm] (x0.east) -- (neuron01.160) node [pos=0.4,above] {\tiny{$w_{12}$}};
\draw [->,blue!50,line width=0.4mm] (x1.east) -- (neuron01.180) node [pos=0.35,above,yshift=-0.2em] {\tiny{$w_{22}$}};
\draw [->,blue!50,line width=0.4mm] (x2.east) -- (neuron01.200) node [pos=0.3,below,yshift=0.2em] {\tiny{$b_{2}$}};
孟霞 committed
27 28
\draw [->,blue!30,line width=0.4mm] (neuron01.east) -- (y1.west);

孟霞 committed
29
\node [anchor=west] (y2) at ([xshift=4em]neuron02.east) {$y_3$\scriptsize{风力}};
孟霞 committed
30

孟霞 committed
31 32 33
\draw [->,ugreen!50,line width=0.4mm] (x0.east) -- (neuron02.140) node [pos=0.1,below,yshift=-0.2em] {\tiny{$w_{13}$}};
\draw [->,ugreen!50,line width=0.4mm] (x1.east) -- (neuron02.160) node [pos=0.1,below] {\tiny{$w_{23}$}};
\draw [->,ugreen!50,line width=0.4mm] (x2.east) -- (neuron02.180) node [pos=0.3,below] {\tiny{$b_{3}$}};
xiaotong committed
34
\draw [->,ugreen!30,line width=0.4mm] (neuron02.east) -- (y2.west);
孟霞 committed
35 36 37 38 39 40 41 42

\end{scope}
\end{tikzpicture}



%%%------------------------------------------------------------------------------------------------------------