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
50308891
Commit
50308891
authored
May 30, 2020
by
zengxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slide 7 minor change
parent
b6cb8bce
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
41 行增加
和
34 行删除
+41
-34
Section07-Towards-Strong-NMT-Systems/section07.tex
+41
-34
没有找到文件。
Section07-Towards-Strong-NMT-Systems/section07.tex
查看文件 @
50308891
...
...
@@ -341,8 +341,11 @@
\end{frame}
%%%------------------------------------------------------------------------------------------------------------
\section
{
基础技术
}
%%%------------------------------------------------------------------------------------------------------------
\subsection
{
数据处理
}
%%%------------------------------------------------------------------------------------------------------------
%%% 数据处理(也可以提一下不同blue脚本对tokenization的要求)
...
...
@@ -901,6 +904,8 @@
\end{frame}
%%%------------------------------------------------------------------------------------------------------------
\subsection
{
建模与训练
}
%%%------------------------------------------------------------------------------------------------------------
%%% 正则化(dropout、label smoothing)
\begin{frame}
{
正则化
}
...
...
@@ -1334,25 +1339,25 @@
\begin{center}
\vspace
{
-
1
em
}
\vspace
{
-
0.5
em
}
\begin{tikzpicture}
\def\neuronsep
{
1.
5
}
\def\neuronsep
{
1.
3
}
\def\nodespace
{
1
}
\def\picturespace
{
0.8
}
\tikzstyle
{
neuronnode
}
= [minimum size=1.
8
em,circle,draw,very thick,ublue,inner sep=0pt, fill=white,align=center]
\tikzstyle
{
neuronnode
}
= [minimum size=1.
4
em,circle,draw,very thick,ublue,inner sep=0pt, fill=white,align=center]
%standard
\node
[neuronnode] (neuron
_
b) at (0,0)
{
\
scriptsize
{$
b
_{
i
}^{
l
}$}}
;
\node
[neuronnode] (neuron
_
y3) at (0,-1*
\neuronsep
)
{
\
scriptsize
{$
x
_{
3
}^{
l
}$}}
;
\node
[neuronnode] (neuron
_
y2) at (0,-2*
\neuronsep
)
{
\
scriptsize
{$
x
_{
2
}^{
l
}$}}
;
\node
[neuronnode] (neuron
_
y1) at (0,-3*
\neuronsep
)
{
\
scriptsize
{$
x
_{
1
}^{
l
}$}}
;
\node
[neuronnode] (neuron
_
z) at (1.2 *
\nodespace
,-1.5 *
\neuronsep
)
{
\
scriptsize
{$
z
_{
i
}^{
l
+
1
}$}}
;
\node
[neuronnode] (neuron
_
y') at (2.4 *
\nodespace
,-1.5 *
\neuronsep
)
{
\
scriptsize
{$
x
_{
i
}^{
l
+
1
}$}}
;
\node
[neuronnode] (neuron
_
b) at (0,0)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
b
_{
i
}^{
l
}$}}
;
\node
[neuronnode] (neuron
_
y3) at (0,-1*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
x
_{
3
}^{
l
}$}}
;
\node
[neuronnode] (neuron
_
y2) at (0,-2*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
x
_{
2
}^{
l
}$}}
;
\node
[neuronnode] (neuron
_
y1) at (0,-3*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
x
_{
1
}^{
l
}$}}
;
\node
[neuronnode] (neuron
_
z) at (1.2 *
\nodespace
,-1.5 *
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
z
_{
i
}^{
l
+
1
}$}}
;
\node
[neuronnode] (neuron
_
y') at (2.4 *
\nodespace
,-1.5 *
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
x
_{
i
}^{
l
+
1
}$}}
;
\node
[anchor=north,ublue] (standard) at ([yshift=-4em]neuron
_
z.south)
{
\scriptsize
{
standard
}}
;
\node
[ublue] (standard) at ([xshift=-1em]neuron
_
z.west)
{
\
scriptsize
{$
\mathbf
{
w
}_{
i
}^{
l
}$}}
;
\node
[ublue] (standard) at ([xshift=0.6em,yshift=0.3em]neuron
_
z.east)
{
\
scriptsize
{$
f
$}}
;
\node
[anchor=north,ublue] (standard) at ([yshift=-4em]neuron
_
z.south)
{{
standard
}}
;
\node
[ublue] (standard) at ([xshift=-1em]neuron
_
z.west)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
\mathbf
{
w
}_{
i
}^{
l
}$}}
;
\node
[ublue] (standard) at ([xshift=0.6em,yshift=0.3em]neuron
_
z.east)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
f
$}}
;
\draw
[->,line width=0.3mm] (neuron
_
b.east) -- (neuron
_
z.west);
\draw
[->,line width=0.3mm] (neuron
_
y3.east) -- (neuron
_
z.west);
...
...
@@ -1361,24 +1366,24 @@
\draw
[->,line width=0.3mm] (neuron
_
z.east) -- (neuron
_
y'.west);
%dropout
\node
[neuronnode] (drop
_
neuron
_
b) at (4.7*
\nodespace
,0)
{
\
scriptsize
{$
b
_{
i
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y3') at (4.7*
\nodespace
,-1*
\neuronsep
)
{
\
scriptsize
{$
\tilde
{
x
}_{
3
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y2') at (4.7*
\nodespace
,-2*
\neuronsep
)
{
\
scriptsize
{$
\tilde
{
x
}_{
2
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y1') at (4.7*
\nodespace
,-3*
\neuronsep
)
{
\
scriptsize
{$
\tilde
{
x
}_{
1
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
z) at (5.9 *
\nodespace
,-1.5 *
\neuronsep
)
{
\
scriptsize
{$
z
_{
i
}^{
l
+
1
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y') at (7.1 *
\nodespace
,-1.5 *
\neuronsep
)
{
\
scriptsize
{$
x
_{
i
}^{
l
+
1
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y3) at (3.5*
\nodespace
,-1*
\neuronsep
)
{
\
scriptsize
{$
x
_{
3
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y2) at (3.5*
\nodespace
,-2*
\neuronsep
)
{
\
scriptsize
{$
x
_{
2
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y1) at (3.5*
\nodespace
,-3*
\neuronsep
)
{
\
scriptsize
{$
x
_{
1
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
r3) at (4.1*
\nodespace
,-0.5*
\neuronsep
)
{
\
scriptsize
{$
r
_{
3
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
r2) at (4.1*
\nodespace
,-1.5*
\neuronsep
)
{
\
scriptsize
{$
r
_{
2
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
r1) at (4.1*
\nodespace
,-2.5*
\neuronsep
)
{
\
scriptsize
{$
r
_{
1
}^{
l
}$}}
;
\node
[anchor=north,ublue] (standard) at ([yshift=-4em]drop
_
neuron
_
z.south)
{
\scriptsize
{
dropout
}}
;
\node
[ublue] (standard) at ([xshift=-1em]drop
_
neuron
_
z.west)
{
\
scriptsize
{$
\mathbf
{
w
}_{
i
}^{
l
}$}}
;
\node
[ublue] (standard) at ([xshift=0.6em,yshift=0.3em]drop
_
neuron
_
z.east)
{
\
scriptsize
{$
f
$}}
;
\node
[neuronnode] (drop
_
neuron
_
b) at (4.7*
\nodespace
,0)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
b
_{
i
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y3') at (4.7*
\nodespace
,-1*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
\tilde
{
x
}_{
3
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y2') at (4.7*
\nodespace
,-2*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
\tilde
{
x
}_{
2
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y1') at (4.7*
\nodespace
,-3*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
\tilde
{
x
}_{
1
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
z) at (5.9 *
\nodespace
,-1.5 *
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
z
_{
i
}^{
l
+
1
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y') at (7.1 *
\nodespace
,-1.5 *
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
x
_{
i
}^{
l
+
1
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y3) at (3.5*
\nodespace
,-1*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
x
_{
3
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y2) at (3.5*
\nodespace
,-2*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
x
_{
2
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
y1) at (3.5*
\nodespace
,-3*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
x
_{
1
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
r3) at (4.1*
\nodespace
,-0.5*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
r
_{
3
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
r2) at (4.1*
\nodespace
,-1.5*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
r
_{
2
}^{
l
}$}}
;
\node
[neuronnode] (drop
_
neuron
_
r1) at (4.1*
\nodespace
,-2.5*
\neuronsep
)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
r
_{
1
}^{
l
}$}}
;
\node
[anchor=north,ublue] (standard) at ([yshift=-4em]drop
_
neuron
_
z.south)
{{
dropout
}}
;
\node
[ublue] (standard) at ([xshift=-1em]drop
_
neuron
_
z.west)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
\mathbf
{
w
}_{
i
}^{
l
}$}}
;
\node
[ublue] (standard) at ([xshift=0.6em,yshift=0.3em]drop
_
neuron
_
z.east)
{
\
fontsize
{
4
}{
4
}
\selectfont
{$
f
$}}
;
%structure
\draw
[->,line width=0.3mm] (drop
_
neuron
_
b.east) -- (drop
_
neuron
_
z.west);
\draw
[->,line width=0.3mm] (drop
_
neuron
_
y3'.east) -- (drop
_
neuron
_
z.west);
...
...
@@ -1390,12 +1395,14 @@
\draw
[->,line width=0.3mm] (drop
_
neuron
_
y2.east) -- (drop
_
neuron
_
y2'.west);
\draw
[->,line width=0.3mm] (drop
_
neuron
_
y1.east) -- (drop
_
neuron
_
y1'.west);
\draw
[-,line width=0.3mm] (drop
_
neuron
_
r3.south) -- ([yshift=-0.
9
em]drop
_
neuron
_
r3.south);
\draw
[-,line width=0.3mm] (drop
_
neuron
_
r2.south) -- ([yshift=-0.
9
em]drop
_
neuron
_
r2.south);
\draw
[-,line width=0.3mm] (drop
_
neuron
_
r1.south) -- ([yshift=-0.
9
em]drop
_
neuron
_
r1.south);
\draw
[-,line width=0.3mm] (drop
_
neuron
_
r3.south) -- ([yshift=-0.
8
em]drop
_
neuron
_
r3.south);
\draw
[-,line width=0.3mm] (drop
_
neuron
_
r2.south) -- ([yshift=-0.
8
em]drop
_
neuron
_
r2.south);
\draw
[-,line width=0.3mm] (drop
_
neuron
_
r1.south) -- ([yshift=-0.
8
em]drop
_
neuron
_
r1.south);
%equ
\node
[anchor=west,inner sep = 2pt] (line1) at (7.5*
\nodespace
,0)
{
未应用dropout:
}
;
% 自定义字号
\fontsize
{
9.0pt
}{
\baselineskip
}
\selectfont
\node
[anchor=west,inner sep = 2pt] (line1) at (8*
\nodespace
,0)
{
未应用dropout:
}
;
\node
[anchor=north west,inner sep = 2pt] (line2) at (line1.south west)
{$
z
_{
i
}^{
l
+
1
}
=
\mathbf
{
w
}_{
i
}^{
l
}
\mathbf
{
x
}
+
b
_{
i
}^{
l
}$}
;
\node
[anchor=north west,inner sep = 2pt] (line3) at (line2.south west)
{$
x
_{
i
}^{
l
+
1
}
=
f
\left
(
x
_{
i
}^{
l
}
\right
)
$}
;
\node
[anchor=north west,inner sep = 2pt] (line4) at (line3.south west)
{
应用dropout:
}
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论