Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
Toy-MT-Introduction
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
NiuTrans
Toy-MT-Introduction
Commits
bbddcc4f
Commit
bbddcc4f
authored
May 13, 2020
by
孟霞
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'mengxia' 到 'caorunzhe'
Mengxia 查看合并请求
!173
parents
5086f189
e1425a46
全部展开
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
21 行增加
和
190 行删除
+21
-190
Book/Chapter5/Figures/fig-activation.tex
+0
-96
Book/Chapter5/Figures/fig-four-layers-of-neural-network.tex
+5
-5
Book/Chapter5/Figures/fig-parallel.tex
+4
-4
Book/Chapter5/Figures/fig-piecewise.tex
+4
-4
Book/Chapter5/Figures/fig-weather-2layer.tex
+0
-37
Book/Chapter5/Figures/fig-weather-forward.tex
+4
-4
Book/Chapter5/Figures/fig-weather-model.tex
+0
-36
Book/Chapter5/Figures/fig-weather.tex
+4
-4
Book/Chapter5/chapter5.tex
+0
-0
没有找到文件。
Book/Chapter5/Figures/fig-activation.tex
deleted
100644 → 0
查看文件 @
5086f189
%%%------------------------------------------------------------------------------------------------------------
\begin{figure}
\subfigure
[softplus]
{
\centering
\begin{minipage}
{
.2
\textwidth
}
\begin{tikzpicture}
\draw
[->]
(-1.2,0)--(1.2,0)node[left,below,font=
\tiny
]
{$
x
$}
;
\draw
[->]
(0,-1.2)--(0,1.2)node[right,font=
\tiny
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\tiny
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
1.0,0.5
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\tiny
]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.2:1]
plot(
\x
,
{
ln(1+(exp(
\x
))
}
);
\node
[black,anchor=south]
at (0,1.2)
{
\small
$
y
=
ln
(
1
+
e
^
x
)
$}
;
\end{tikzpicture}
\end{minipage}
%
}
\hfill
\subfigure
[sigmoid]
{
\centering
\begin{minipage}
{
.2
\textwidth
}
\begin{tikzpicture}
\draw
[->]
(-1.2,0)--(1.2,0)node[left,below,font=
\tiny
]
{$
x
$}
;
\draw
[->]
(0,-1.2)--(0,1.2)node[right,font=
\tiny
]
{$
y
$}
;
\draw
[dashed]
(-1.2,1)--(1.2,1);
\foreach
\x
in
{
-1,-0.5,0,0.5,1
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\tiny
]at(
\x
,0)
{
\pgfmathparse
{
(
\x
)*5
}
\pgfmathresult
}
;
}
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\tiny
]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red,domain=-1.2:1.2]
plot(
\x
,
{
1/(1+(exp(-5*
\x
)))
}
);
\node
[black,anchor=south]
at (0,1.2)
{
\small
$
y
=
\frac
{
1
}{
1
+
e
^{
-
x
}}$}
;
\end{tikzpicture}
\end{minipage}
%
}
\hfill
\subfigure
[tanh]
{
\centering
\begin{minipage}
{
.2
\textwidth
}
\begin{tikzpicture}
\draw
[->]
(-1.2,0)--(1.2,0)node[left,below,font=
\tiny
]
{$
x
$}
;
\draw
[->]
(0,-1.2)--(0,1.2)node[right,font=
\tiny
]
{$
y
$}
;
\draw
[dashed]
(-1.2,1)--(1.2,1);
\draw
[dashed]
(-1.2,-1)--(1.2,-1);
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\tiny
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\tiny
]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.2:1.2]
plot(
\x
,
{
tanh(
\x
)
}
);
\node
[black,anchor=south]
at (0,1.2)
{
\small
$
y
=
\frac
{
e
^{
x
}
-
e
^{
-
x
}}{
e
^{
x
}
+
e
^{
-
x
}}$}
;
\end{tikzpicture}
\end{minipage}
}
\\
\vspace
{
-1em
}
\subfigure
[relu]
{
\centering
\begin{minipage}
{
.2
\textwidth
}
\begin{tikzpicture}
\draw
[->]
(-1.2,0)--(1.2,0)node[left,below,font=
\tiny
]
{$
x
$}
;
\draw
[->]
(0,-1.2)--(0,1.2)node[right,font=
\tiny
]
{$
y
$}
;
\draw
[dashed]
(-1.2,1)--(1.2,1);
\draw
[dashed]
(-1.2,-1)--(1.2,-1);
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\tiny
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\tiny
]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.2:1.2]
plot(
\x
,
{
max(
\x
,0)
}
);
\node
[black,anchor=south]
at (0,1.2)
{
\small
$
y
=
\max
(
0
, x
)
$}
;
\end{tikzpicture}
\end{minipage}
%
}
\hfill
\subfigure
[gaussian]
{
\centering
\begin{minipage}
{
.2
\textwidth
}
\begin{tikzpicture}
\draw
[->]
(-1.2,0)--(1.2,0)node[left,below,font=
\tiny
]
{$
x
$}
;
\draw
[->]
(0,-1.2)--(0,1.2)node[right,font=
\tiny
]
{$
y
$}
;
\draw
[dashed]
(-1.2,1)--(1.2,1);
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\tiny
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\tiny
]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.2:1.2]
plot(
\x
,
{
exp(-1*((
\x
)
^
2))
}
);
\node
[black,anchor=south]
at (0,1.2)
{
\small
$
y
=
e
^{
-
x
^
2
}$}
;
\end{tikzpicture}
\end{minipage}
%
}
\hfill
\subfigure
[identity]
{
\centering
\begin{minipage}
{
.2
\textwidth
}
\begin{tikzpicture}
\draw
[->]
(-1.2,0)--(1.2,0)node[left,below,font=
\tiny
]
{$
x
$}
;
\draw
[->]
(0,-1.2)--(0,1.2)node[right,font=
\tiny
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\tiny
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\tiny
]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1:1]
plot(
\x
,
\x
);
\node
[black,anchor=south]
at (0,1.2)
{
\small
$
y
=
x
$}
;
\end{tikzpicture}
\end{minipage}
}
\end{figure}
%%%------------------------------------------------------------------------------------------------------------
Book/Chapter5/Figures/fig-four-layers-of-neural-network.tex
查看文件 @
bbddcc4f
...
...
@@ -25,10 +25,10 @@
\node
[rectangle,inner sep=0.2em,fill=red!20] [fit = (neuron01) (neuron05)] (layer01)
{}
;
\end{pgfonlayer}
\node
[anchor=west] (layer00label) at ([xshift=1.
25em]x5.east)
{
\footnotesize
{
\red
{{
输入层
}}
}}
;
\node
[anchor=west] (layer00label) at ([xshift=1.
3em]x5.east)
{
\footnotesize
{
第0层
}}
;
\node
[anchor=west] (layer00label2) at (layer00label.east)
{
\footnotesize
{
\red
{
(输入层)
}}}
;
{
\node
[anchor=west] (layer01label) at ([xshift=1em]layer01.east)
{
\footnotesize
{
第
二
层
}}
;
\node
[anchor=west] (layer01label) at ([xshift=1em]layer01.east)
{
\footnotesize
{
第
1
层
}}
;
}
{
\node
[anchor=west] (layer01label2) at (layer01label.east)
{
\footnotesize
{
\red
{
(
{
隐层
}
)
}}}
;
...
...
@@ -55,7 +55,7 @@
}
\end{pgfonlayer}
\node
[anchor=west] (layer02label) at ([xshift=4.4em]layer02.east)
{
\footnotesize
{
第
三
层
}}
;
\node
[anchor=west] (layer02label) at ([xshift=4.4em]layer02.east)
{
\footnotesize
{
第
2
层
}}
;
{
\node
[anchor=west] (layer02label2) at (layer02label.east)
{
\footnotesize
{
\red
{
(
{
隐层
}
)
}}}
;
}
...
...
@@ -85,7 +85,7 @@
}
\end{pgfonlayer}
\node
[anchor=west] (layer03label) at ([xshift=1em]layer03.east)
{
\footnotesize
{
第
四
层
}}
;
\node
[anchor=west] (layer03label) at ([xshift=1em]layer03.east)
{
\footnotesize
{
第
3
层
}}
;
{
\node
[anchor=west] (layer03label2) at (layer03label.east)
{
\footnotesize
{
\red
{
(
{
输出层
}
)
}}}
;
}
...
...
Book/Chapter5/Figures/fig-parallel.tex
查看文件 @
bbddcc4f
...
...
@@ -10,9 +10,9 @@
\tikzstyle
{
parametershard
}
= [draw,thick,minimum width=4em,align=left,rounded corners=2pt]
{
\node
[parametershard,anchor=west,fill=yellow!10]
(param1) at (0,0)
{$
W
_
o
$
,
$
b
_
o
$
}
;
\node
[parametershard,anchor=west,fill=yellow!10]
(param1) at (0,0)
{$
W
_
o
$}
;
\node
(param2) at ([xshift=1em]param1.east)
{}
;
\node
[parametershard,anchor=west,fill=red!10]
(param3) at ([xshift=1em]param2.east)
{$
W
_
h
$
,
$
b
_
h
$
}
;
\node
[parametershard,anchor=west,fill=red!10]
(param3) at ([xshift=1em]param2.east)
{$
W
_
h
$}
;
\node
[anchor=south,inner sep=1pt]
(serverlabel) at ([yshift=0.2em]param2.north)
{
\footnotesize
{
\textbf
{
parameter server
}
:
$
\mathbf
w
_{
new
}
=
\mathbf
w
-
\alpha\cdot
\frac
{
\partial
L
}{
\partial
\mathbf
w
}$}}
;
}
...
...
@@ -88,9 +88,9 @@
\tikzstyle
{
parametershard
}
= [draw,thick,minimum width=4em,align=left,rounded corners=2pt]
{
\node
[parametershard,anchor=west,fill=yellow!10]
(param1) at (0,0)
{$
W
_
o
$
,
$
b
_
o
$
}
;
\node
[parametershard,anchor=west,fill=yellow!10]
(param1) at (0,0)
{$
W
_
o
$}
;
\node
(param2) at ([xshift=1em]param1.east)
{}
;
\node
[parametershard,anchor=west,fill=red!10]
(param3) at ([xshift=1em]param2.east)
{$
W
_
h
$
,
$
b
_
h
$
}
;
\node
[parametershard,anchor=west,fill=red!10]
(param3) at ([xshift=1em]param2.east)
{$
W
_
h
$}
;
\node
[anchor=south,inner sep=1pt]
(serverlabel) at ([yshift=0.2em]param2.north)
{
\footnotesize
{
\textbf
{
parameter server
}
:
$
\mathbf
w
_{
new
}
=
\mathbf
w
-
\alpha\cdot
\frac
{
\partial
L
}{
\partial
\mathbf
w
}$}}
;
}
...
...
Book/Chapter5/Figures/fig-piecewise.tex
查看文件 @
bbddcc4f
...
...
@@ -2,7 +2,7 @@
\begin{tikzpicture}
%% a two-layer neural network
\begin{scope}
\begin{scope}
[xshift=2in]
\tikzstyle
{
neuronnode
}
= [minimum size=1.7em,circle,draw,ublue,very thick,inner sep=1pt, fill=white,align=center,drop shadow=
{
shadow xshift=0.1em,shadow yshift=-0.1em
}
]
%% output illustration
\begin{scope}
[xshift=2.8in,yshift=0.1in]
...
...
@@ -10,7 +10,7 @@
\draw
[->,thick] (-2.2,0) -- (2.2,0);
\draw
[->,thick] (0,0) -- (0,2);
\draw
[-] (-0.05,1) -- (0.05,1);
\node
[anchor=north,inner sep=1pt] (label
a) at (0,-0.2)
{
\footnotesize
{
(a
)
}}
;
\node
[anchor=north,inner sep=1pt] (label
b) at (0,-0.2)
{
\footnotesize
{
(b
)
}}
;
}
{
\draw
[->,thick] (-2.2,0) -- (2.2,0);
...
...
@@ -25,7 +25,7 @@
\end{scope}
%% a two-layer neural network
\begin{scope}
[xshift=
2
in]
\begin{scope}
[xshift=
0
in]
\tikzstyle
{
neuronnode
}
= [minimum size=1.7em,circle,draw,ublue,very thick,inner sep=1pt, fill=white,align=center,drop shadow=
{
shadow xshift=0.1em,shadow yshift=-0.1em
}
]
%% output illustration
\begin{scope}
[xshift=2.8in,yshift=0.1in]
...
...
@@ -35,7 +35,7 @@
\draw
[-] (-0.05,1) -- (0.05,1);
\node
[anchor=east,inner sep=1pt] (label1) at (0,1)
{
\tiny
{
1
}}
;
\node
[anchor=south east,inner sep=1pt] (label2) at (0,0)
{
\tiny
{
0
}}
;
\node
[anchor=north,inner sep=1pt] (label
b) at (0,-0.2)
{
\footnotesize
{
(b
)
}}
;
\node
[anchor=north,inner sep=1pt] (label
a) at (0,-0.2)
{
\footnotesize
{
(a
)
}}
;
}
{
\draw
[->,thick] (-2.2,0) -- (2.2,0);
...
...
Book/Chapter5/Figures/fig-weather-2layer.tex
deleted
100644 → 0
查看文件 @
5086f189
%%%------------------------------------------------------------------------------------------------------------
\begin{tikzpicture}
%左
\node
[anchor=west,draw=ublue,minimum width=1.5em,minimum height=1.5em] (part1-1) at (0,0)
{
\small
{$
x
_
1
$}}
;
\node
[anchor=north,draw=ublue,minimum width=1.5em,minimum height=1.5em] (part1-2) at ([yshift=-2.5em]part1-1.south)
{
\small
{$
x
_
2
$}}
;
\node
[anchor=north,draw=ublue,minimum width=1.5em,minimum height=1.5em] (part1-3) at ([yshift=-2.5em]part1-2.south)
{
\small
{$
x
_
3
$}}
;
\node
[anchor=north,minimum width=3.0em] (part1-4) at ([yshift=-1.0em]part1-3.south)
{
\small
{
输入层
}}
;
\node
[anchor=south,minimum height=13em,minimum width=4.0em,draw=ublue,dotted,thick]
(part1out) at ([xshift=0.0em,yshift=-8.5em]part1-2.north)
{}
;
%中
\node
[circle,anchor=west,draw=ublue,minimum width=2.0em] (part2-1) at ([xshift=4.6em,yshift=2.0em]part1-2.east)
{
\small
{$
a
_
1
$}}
;
\node
[circle,anchor=west,draw=ublue,minimum width=2.0em] (part2-2) at ([xshift=4.6em,yshift=-2.0em]part1-2.east)
{
\small
{$
a
_
2
$}}
;
\node
[anchor=north,minimum width=3.0em] (part2-3) at ([xshift=0.0em,yshift=-2.79em]part2-2.south)
{
\small
{
隐藏层
}}
;
\node
[anchor=south,minimum height=13em,minimum width=4.0em,draw=ublue,dotted,thick]
(part2out) at ([xshift=6.4em,yshift=-8.5em]part1-2.north)
{}
;
%右
\node
[circle,anchor=west,draw=ublue,minimum width=2.0em] (part3-1) at ([xshift=10.5em,yshift=0.0em]part1-2.east)
{
\small
{$
y
$}}
;
\node
[anchor=west,draw=ublue,minimum width=1.5em,minimum height=1.5em] (part3-2) at ([xshift=1.2em]part3-1.east)
{
\small
{$
y
$}}
;
\node
[anchor=north,minimum width=3.0em] (part3-3) at ([xshift=1.4em,yshift=-4.79em]part3-1.south)
{
\small
{
输出层
}}
;
\node
[anchor=south,minimum height=13em,minimum width=6.0em,draw=ublue,dotted,thick]
(part3out) at ([xshift=13.8em,yshift=-8.5em]part1-2.north)
{}
;
%连线
\draw
[->,thick,ublue](part1-1.east)--(part2-1.west);
\draw
[->,thick,ublue](part1-1.east)--(part2-2.west);
\draw
[->,thick,ublue](part1-2.east)--(part2-1.west);
\draw
[->,thick,ublue](part1-2.east)--(part2-2.west);
\draw
[->,thick,ublue](part1-3.east)--(part2-1.west);
\draw
[->,thick,ublue](part1-3.east)--(part2-2.west);
\draw
[->,thick,ublue](part2-1.east)--(part3-1.west);
\draw
[->,thick,ublue](part2-2.east)--(part3-1.west);
\draw
[->,thick,ublue](part3-1.east)--(part3-2.west);
\end{tikzpicture}
%%------------------------------------------------------------------------------------------------------------
Book/Chapter5/Figures/fig-weather-forward.tex
查看文件 @
bbddcc4f
...
...
@@ -18,8 +18,8 @@
\node
[anchor=north,minimum width=4.0em,minimum height=1.5em] (part5) at ([yshift=-1.4em]part4.south)
{
\footnotesize
{$
\mathbf
a
$}}
;
\draw
[-,thick](part4.south)--([yshift=-0.1em]part5.north);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\node
[anchor=west,minimum width=2.0em,minimum height=1.5em,draw,fill=red!20] (part5-3) at ([xshift=0.0em,yshift=0.1em]part5.east)
{
\footnotesize
{$
\mathbf
w
^
2
$}}
;
\node
[anchor=west,minimum width=2.0em,minimum height=1.5em,draw,fill=orange!40] (part5-4) at ([xshift=2.0em,yshift=0.0em]part5-3.east)
{
\footnotesize
{$
\mathbf
b
^
2
$}}
;
\node
[anchor=west,minimum width=2.0em,minimum height=1.5em,draw,fill=red!20] (part5-3) at ([xshift=0.0em,yshift=0.1em]part5.east)
{
\footnotesize
{$
\mathbf
w
^
{
[
2
]
}
$}}
;
\node
[anchor=west,minimum width=2.0em,minimum height=1.5em,draw,fill=orange!40] (part5-4) at ([xshift=2.0em,yshift=0.0em]part5-3.east)
{
\footnotesize
{$
b
^{
[
2
]
}
$}}
;
\draw
[-,thick]
(part4.south)--(part5-3.north);
\draw
[-,thick]
(part3.south)--(part5-4.north);
\node
[anchor=south,minimum width=1.5em,minimum height=1.5em] (part5-3-1) at ([xshift=1.1em,yshift=-0.45em]part5-3.north)
{
\scriptsize
{$
1
\times
2
$}}
;
...
...
@@ -41,8 +41,8 @@
\node
[anchor=north,minimum width=4.0em,minimum height=1.5em] (part9) at ([yshift=-1.4em]part8.south)
{
\footnotesize
{$
\mathbf
x
$}}
;
\draw
[-,thick](part8.south)--([yshift=-0.1em]part9.north);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\node
[anchor=west,minimum width=2.0em,minimum height=1.5em,draw,fill=red!20] (part9-3) at ([xshift=0.0em,yshift=0.1em]part9.east)
{
\footnotesize
{$
\mathbf
w
^
1
$}}
;
\node
[anchor=west,minimum width=2.0em,minimum height=1.5em,draw,fill=orange!40] (part9-4) at ([xshift=2.0em,yshift=0.0em]part9-3.east)
{
\footnotesize
{$
\mathbf
b
^
1
$}}
;
\node
[anchor=west,minimum width=2.0em,minimum height=1.5em,draw,fill=red!20] (part9-3) at ([xshift=0.0em,yshift=0.1em]part9.east)
{
\footnotesize
{$
\mathbf
w
^
{
[
1
]
}
$}}
;
\node
[anchor=west,minimum width=2.0em,minimum height=1.5em,draw,fill=orange!40] (part9-4) at ([xshift=2.0em,yshift=0.0em]part9-3.east)
{
\footnotesize
{$
\mathbf
b
^
{
[
1
]
}
$}}
;
\draw
[-,thick]
(part8.south)--(part9-3.north);
\draw
[-,thick]
(part7.south)--(part9-4.north);
\node
[anchor=south,minimum width=1.5em,minimum height=1.5em] (part9-3-1) at ([xshift=1.1em,yshift=-0.45em]part9-3.north)
{
\scriptsize
{$
3
\times
2
$}}
;
...
...
Book/Chapter5/Figures/fig-weather-model.tex
deleted
100644 → 0
查看文件 @
5086f189
%%%------------------------------------------------------------------------------------------------------------
\begin{tikzpicture}
%左
\node
[anchor=west,draw=ublue,minimum width=3.0em] (part1-1) at (0,0)
{
\small
{
天空状况
}}
;
\node
[anchor=north,draw=ublue,minimum width=3.0em] (part1-2) at ([yshift=-2.5em]part1-1.south)
{
\small
{
低空气温
}}
;
\node
[anchor=north,draw=ublue,minimum width=3.0em] (part1-3) at ([yshift=-2.5em]part1-2.south)
{
\small
{
水平气压
}}
;
\node
[anchor=north,minimum width=3.0em] (part1-4) at ([yshift=-1.0em]part1-3.south)
{
\small
{
输入层
}}
;
\node
[anchor=south,minimum height=13em,minimum width=6.0em,draw=ublue,dotted,thick]
(part1out) at ([xshift=0.0em,yshift=-8.5em]part1-2.north)
{}
;
%中
\node
[circle,anchor=west,draw=ublue,minimum width=2.2em] (part2-1) at ([xshift=4.0em,yshift=2.0em]part1-2.east)
{
\footnotesize
{
温度
}}
;
\node
[circle,anchor=west,draw=ublue,minimum width=2.2em] (part2-2) at ([xshift=4.0em,yshift=-2.0em]part1-2.east)
{
\footnotesize
{
风速
}}
;
\node
[anchor=north,minimum width=3.0em] (part2-3) at ([xshift=0.0em,yshift=-2.42em]part2-2.south)
{
\small
{
隐藏层
}}
;
\node
[anchor=south,minimum height=13em,minimum width=4.0em,draw=ublue,dotted,thick]
(part2out) at ([xshift=7.4em,yshift=-8.5em]part1-2.north)
{}
;
%右
\node
[anchor=west,draw=ublue,minimum width=3.0em] (part3-1) at ([xshift=10.0em,yshift=0.0em]part1-2.east)
{
\small
{
穿衣指数
}}
;
\node
[anchor=north,minimum width=3.0em] (part3-2) at ([yshift=-5.05em]part3-1.south)
{
\small
{
输出层
}}
;
\node
[anchor=south,minimum height=13em,minimum width=6.0em,draw=ublue,dotted,thick]
(part3out) at ([xshift=14.4em,yshift=-8.5em]part1-2.north)
{}
;
%连线
\draw
[->,thick,ublue](part1-1.east)--(part2-1.west);
\draw
[->,thick,ublue](part1-1.east)--(part2-2.west);
\draw
[->,thick,ublue](part1-2.east)--(part2-1.west);
\draw
[->,thick,ublue](part1-2.east)--(part2-2.west);
\draw
[->,thick,ublue](part1-3.east)--(part2-1.west);
\draw
[->,thick,ublue](part1-3.east)--(part2-2.west);
\draw
[->,thick,ublue](part2-1.east)--(part3-1.west);
\draw
[->,thick,ublue](part2-2.east)--(part3-1.west);
\end{tikzpicture}
%%%------------------------------------------------------------------------------------------------------------
Book/Chapter5/Figures/fig-weather.tex
查看文件 @
bbddcc4f
...
...
@@ -7,7 +7,7 @@
\node
[anchor=north,draw=ublue,minimum width=3.55em,fill=yellow!20] (part1-2) at ([yshift=-2.0em]part1-1.south)
{
\scriptsize
{
低空气温
}}
;
\node
[anchor=north,draw=ublue,minimum width=3.55em,fill=yellow!20] (part1-3) at ([yshift=-2.0em]part1-2.south)
{
\scriptsize
{
水平气压
}}
;
\node
[rectangle,rounded corners,draw=black!50,densely dashed,inner sep=0.4em] [fit = (part1-1) (part1-2) (part1-3) (inputlabel)] (inputshadow)
{}
;
\node
[anchor=north,draw=ublue,minimum width=3.55em,fill=yellow!20] (part1-4) at ([yshift=-2.0em]part1-3.south)
{
\scriptsize
{
偏
移
1
}}
;
\node
[anchor=north,draw=ublue,minimum width=3.55em,fill=yellow!20] (part1-4) at ([yshift=-2.0em]part1-3.south)
{
\scriptsize
{
偏
置
1
}}
;
\node
[anchor=north,minimum width=2.5em] (part1-5) at ([yshift=-0.5em]part1-4.south)
{
\scriptsize
{
输入层
}}
;
...
...
@@ -16,7 +16,7 @@
\node
[anchor=north] (hidlabel) at ([yshift=3.1em]part2-1.north)
{
\scriptsize
{
特征
}}
;
\node
[circle,anchor=west,draw=ublue,minimum width=2.5em,fill=blue!20] (part2-2) at ([xshift=2.0em,yshift=-1.7em]part1-2.east)
{
\scriptsize
{
风速
}}
;
\node
[rectangle,rounded corners,draw=black!50,densely dashed,inner sep=0.4em] [fit = (part2-1) (part2-2) (hidlabel) ] (inputshadow)
{}
;
\node
[circle,anchor=west,draw=ublue,minimum width=2.5em,fill=blue!20,inner sep=2pt] (part2-3) at ([xshift=2.0em,yshift=-1.7em]part1-3.east)
{
\scriptsize
{
偏
移
2
}}
;
\node
[circle,anchor=west,draw=ublue,minimum width=2.5em,fill=blue!20,inner sep=2pt] (part2-3) at ([xshift=2.0em,yshift=-1.7em]part1-3.east)
{
\scriptsize
{
偏
置
2
}}
;
\node
[anchor=north,minimum width=3.0em] (part2-4) at ([xshift=0.0em,yshift=-1.6em]part2-3.south)
{
\scriptsize
{
隐藏层
}}
;
\node
[anchor=north] (labela) at ([xshift=0.0em,yshift=-4em]part2-3.south)
{
\footnotesize
{
(a)
}}
;
...
...
@@ -54,7 +54,7 @@
y
\node
[rectangle,rounded corners,draw=black!50,densely dashed,inner sep=0.4em] [fit = (part1-1) (part1-2) (part1-3) (inputlabel)] (inputshadow)
{}
;
\node
[anchor=north,draw=ublue,minimum width=3.55em,fill=yellow!20] (part1-4) at ([yshift=-2.0em]part1-3.south)
{
\footnotesize
{$
\mathbf
b
^
1
$}}
;
\node
[anchor=north,draw=ublue,minimum width=3.55em,fill=yellow!20] (part1-4) at ([yshift=-2.0em]part1-3.south)
{
\footnotesize
{$
\mathbf
b
^
{
[
1
]
}
$}}
;
\node
[anchor=north,minimum width=2.5em] (part1-5) at ([yshift=-0.5em]part1-4.south)
{
\scriptsize
{
输入层
}}
;
...
...
@@ -65,7 +65,7 @@ y
\node
[circle,anchor=west,draw=ublue,minimum width=2.5em,fill=blue!20] (part2-2) at ([xshift=2.0em,yshift=-1.7em]part1-2.east)
{
\large
{$
a
_
2
$}}
;
\node
[rectangle,rounded corners,draw=black!50,densely dashed,inner sep=0.4em] [fit = (part2-1) (part2-2) (hidlabel) ] (inputshadow)
{}
;
\node
[circle,anchor=west,draw=ublue,minimum width=2.5em,fill=blue!20,inner sep=2pt] (part2-3) at ([xshift=2.0em,yshift=-1.7em]part1-3.east)
{
\large
{$
b
^
2
$}}
;
\node
[circle,anchor=west,draw=ublue,minimum width=2.5em,fill=blue!20,inner sep=2pt] (part2-3) at ([xshift=2.0em,yshift=-1.7em]part1-3.east)
{
\large
{$
b
^
{
[
2
]
}
$}}
;
\node
[anchor=north,minimum width=3.0em] (part2-4) at ([xshift=0.0em,yshift=-1.6em]part2-3.south)
{
\scriptsize
{
隐藏层
}}
;
\node
[anchor=north] (labelb) at ([xshift=0.0em,yshift=-4em]part2-3.south)
{
\footnotesize
{
(b)
}}
;
...
...
Book/Chapter5/chapter5.tex
查看文件 @
bbddcc4f
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论