Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mtbookv2
概览
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
mtbookv2
Commits
d97e3dab
Commit
d97e3dab
authored
Jan 11, 2021
by
单韦乔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
15章问题修正
parent
c725b315
全部展开
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
15 行增加
和
21 行删除
+15
-21
Chapter15/Figures/figure-layer-fusion-method-2d.tex
+5
-5
Chapter15/Figures/figure-learning-rate.tex
+3
-3
Chapter15/Figures/figure-light-weight-transformer-module.tex
+4
-10
Chapter15/Figures/figure-multi-task-structure.tex
+3
-3
Chapter15/chapter15.tex
+0
-0
没有找到文件。
Chapter15/Figures/figure-layer-fusion-method-2d.tex
查看文件 @
d97e3dab
...
...
@@ -97,14 +97,14 @@
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]n3.south west) to node [midway,font=
\small
,align=center,xshift=0em,yshift=-0.8em]
{$
d
$}
([xshift=0em]n3.south east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]n6.south west) to node [midway,font=
\small
,align=center,xshift=0em,yshift=-0.8em]
{$
d
_
a
$}
([xshift=0em]n6.south east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]n6.south west) to node [midway,font=
\small
,align=center,xshift=0em,yshift=-0.8em]
{$
d
_
{
\rm
a
}
$}
([xshift=0em]n6.south east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]n7.north west) to node [midway,font=
\small
,align=center,xshift=-0.7em,yshift=-0em]
{$
d
$}
([xshift=0em]n7.south west);
\draw
[decorate,decoration=
{
brace
}
] ([xshift=0em]n7.north west) to node [midway,font=
\small
,align=center,xshift=0em,yshift=0.7em]
{$
d
$}
([xshift=0em]n7.north east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]n8.north west) to node [midway,font=
\small
,align=center,xshift=-0.8em,yshift=-0em]
{$
d
_
a
$}
([xshift=0em]n8.south west);
\draw
[decorate,decoration=
{
brace
}
] ([xshift=0em]n8.north west) to node [midway,font=
\small
,align=center,xshift=0em,yshift=0.8em]
{$
n
_{
hop
}$}
([xshift=0em]n8.north east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]nc31.south west) to node [midway,font=
\small
,align=center,xshift=0em,yshift=-0.8em]
{$
n
_{
hop
}$}
([xshift=0em]nc35.south east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]n8.north west) to node [midway,font=
\small
,align=center,xshift=-0.8em,yshift=-0em]
{$
d
_
{
\rm
a
}
$}
([xshift=0em]n8.south west);
\draw
[decorate,decoration=
{
brace
}
] ([xshift=0em]n8.north west) to node [midway,font=
\small
,align=center,xshift=0em,yshift=0.8em]
{$
n
_{
\rm
hop
}$}
([xshift=0em]n8.north east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]nc31.south west) to node [midway,font=
\small
,align=center,xshift=0em,yshift=-0.8em]
{$
n
_{
\rm
hop
}$}
([xshift=0em]nc35.south east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]ln5.south west) to node [midway,font=
\small
,align=center,xshift=0em,yshift=-0.8em]
{$
d
$}
([xshift=0em]ln5.south east);
\draw
[decorate] ([xshift=0em]ln5.south east) to node [midway,font=
\footnotesize
,align=center,xshift=1em,yshift=-0.5em]
{$
n
_{
hop
}$}
([xshift=0em]ln1.south east);
\draw
[decorate] ([xshift=0em]ln5.south east) to node [midway,font=
\footnotesize
,align=center,xshift=1em,yshift=-0.5em]
{$
n
_{
\rm
hop
}$}
([xshift=0em]ln1.south east);
\draw
[decorate,decoration=
{
brace,mirror
}
] ([xshift=0em]fn.south east) to node [midway,font=
\small
,align=center,xshift=0.7em,yshift=-0em]
{$
d
$}
([xshift=0em]fn.north east);
...
...
Chapter15/Figures/figure-learning-rate.tex
查看文件 @
d97e3dab
...
...
@@ -4,7 +4,7 @@
\begin{axis}
[
width=.50
\textwidth
,
height=.40
\textwidth
,
legend style=
{
at=
{
(0.
60
,0.08)
}
, anchor=south west
}
,
legend style=
{
at=
{
(0.
45
,0.08)
}
, anchor=south west
}
,
xlabel=
{
\scriptsize
{
更新次数(10k)
}}
,
ylabel=
{
\scriptsize
{
学习率 (
$
10
^{
-
3
}$
)
}}
,
ylabel style=
{
yshift=-1em
}
,xlabel style=
{
yshift=0.0em
}
,
...
...
@@ -15,7 +15,7 @@
]
\addplot
[red,line width=1.25pt]
coordinates
{
(0,0) (1.6,2) (1.8,1.888) (2,1.787) (2.5,1.606) (3,1.462) (3.5,1.3549) (4,1.266) (4.5,1.193) (5,1.131)
}
;
\addlegendentry
{
\scriptsize
Base48
}
\addlegendentry
{
\scriptsize
原始学习率
}
%\addplot[red,line width=1.25pt] coordinates {(0,0) (8000,0.002) (10000,0.00179) (12000,0.00163) (12950,0.001572)};
\addplot
[blue,line width=1.25pt]
coordinates
{
(0,0) (0.8,2) (0.9906,1.7983)
}
;
%\addplot[red,line width=1.25pt] coordinates {(0,0) (8000,0.002) (9906,0.0017983)};
...
...
@@ -31,7 +31,7 @@
\addplot
[blue,line width=1.25pt]
coordinates
{
(2.9706,2) (3.1706,1.79) (3.3706,1.63) (3.4656,1.572) (3.6706,1.4602) (3.7136,1.44)
}
;
\addplot
[blue,dashed,line width=1.25pt]
coordinates
{
(3.7136,1.44) (3.7136,2)
}
;
\addplot
[blue,line width=1.25pt]
coordinates
{
(3.7136,2) (3.9136,1.79) (4.1136,1.63) (4.2086,1.572) (4.4136,1.4602) (4.4566,1.44) (4.7000,1.3574) (5.0000,1.2531)
}
;
\addlegendentry
{
\scriptsize
SDT48
}
\addlegendentry
{
\scriptsize
调整后的学习率
}
\end{axis}
}
...
...
Chapter15/Figures/figure-light-weight-transformer-module.tex
查看文件 @
d97e3dab
...
...
@@ -9,22 +9,22 @@
\begin{scope}
[]
\node
[anchor=west,
ffnnode] (f1) at (0, 0)
{
FFN
}
;
\node
[anchor=west,
inner sep=0mm,minimum height=1.8em] (f1) at (0, 0)
{
input
}
;
\node
[anchor=south,ebnode] (e1) at ([xshift=0em,yshift=1em]f1.north)
{
Embedding
}
;
\node
[anchor=south west,manode] (a1) at ([xshift=0em,yshift=1em]e1.north west)
{
Attention
}
;
\node
[anchor=south east,manode] (c1) at ([xshift=0em,yshift=1em]e1.north east)
{
Conv
}
;
\node
[anchor=south west,ebnode] (e2) at ([xshift=0em,yshift=1em]a1.north west)
{
Embedding
}
;
\node
[anchor=south,draw,circle,inner sep=4pt] (add1) at ([xshift=0em,yshift=0.5em]e2.north)
{}
;
\node
[anchor=south,
ffnnode] (f2) at ([xshift=0em,yshift=0.5em]add1.north)
{
FFN
}
;
\node
[anchor=south,
inner sep=0mm,minimum height=1.8em] (f2) at ([xshift=0em,yshift=0.5em]add1.north)
{
output
}
;
\draw
[->,thick]
([xshift=0em,yshift=
0
em]f1.north)--([xshift=0em,yshift=0em]e1.south);
\draw
[->,thick]
([xshift=0em,yshift=
-0.3
em]f1.north)--([xshift=0em,yshift=0em]e1.south);
\draw
[->,thick]
([xshift=0em,yshift=-1em]a1.south)--([xshift=0em,yshift=0em]a1.south);
\draw
[->,thick]
([xshift=0em,yshift=-1em]c1.south)--([xshift=0em,yshift=0em]c1.south);
\draw
[->,thick]
([xshift=0em,yshift=0em]a1.north)--([xshift=0em,yshift=1em]a1.north);
\draw
[->,thick]
([xshift=0em,yshift=0em]c1.north)--([xshift=0em,yshift=1em]c1.north);
\draw
[-,thick]
([xshift=0em,yshift=0em]e2.north)--([xshift=0em,yshift=0em]add1.south);
\draw
[->,thick]
([xshift=0em,yshift=0em]add1.north)--([xshift=0em,yshift=0em]f2.south);
\draw
[->,thick]
([xshift=0em,yshift=0em]add1.north)--([xshift=0em,yshift=0
.3
em]f2.south);
\draw
[-]
([xshift=0em,yshift=0em]add1.west)--([xshift=-0em,yshift=0em]add1.east);
\draw
[-]
([xshift=0em,yshift=0em]add1.south)--([xshift=-0em,yshift=-0em]add1.north);
...
...
@@ -33,11 +33,6 @@
\draw
[->,thick,rectangle,rounded corners=5pt]
([xshift=0em,yshift=0.5em]f1.north)--([xshift=-6em,yshift=0.5em]f1.north)--([xshift=-5.45em,yshift=0em]add1.west)--([xshift=0em,yshift=0em]add1.west);
\node
[anchor=north,inner sep=0mm,minimum height=1.5em] (ip) at ([xshift=0em,yshift=-1em]f1.south)
{
input
}
;
\node
[anchor=south,inner sep=0mm,minimum height=1.5em] (op) at ([xshift=0em,yshift=1em]f2.north)
{
output
}
;
\draw
[->,thick]
([xshift=0em,yshift=0em]ip.north)--([xshift=0em,yshift=0em]f1.south);
\draw
[->,thick]
([xshift=0em,yshift=0em]f2.north)--([xshift=0em,yshift=0em]op.south);
\end{scope}
\end{tikzpicture}
\end{center}
\ No newline at end of file
Chapter15/Figures/figure-multi-task-structure.tex
查看文件 @
d97e3dab
...
...
@@ -2,7 +2,7 @@
\begin{tikzpicture}
\begin{scope}
\tikzstyle
{
enode
}
=[rectangle,inner sep=0mm,minimum height=5em,minimum width=5em,rounded corners=7pt,fill=
u
green!30]
\tikzstyle
{
enode
}
=[rectangle,inner sep=0mm,minimum height=5em,minimum width=5em,rounded corners=7pt,fill=green!30]
\tikzstyle
{
dnode
}
=[rectangle,inner sep=0mm,minimum height=2em,minimum width=6.5em,rounded corners=5pt,fill=red!30]
\tikzstyle
{
wnode
}
=[inner sep=0mm,minimum height=2em,minimum width=4em]
...
...
@@ -11,8 +11,8 @@
\node
[anchor=west,enode] (e1) at ([xshift=1.5em,yshift=0em]w1.east)
{
编码器
}
;
\node
[anchor=west,dnode] (d1) at ([xshift=3em,yshift=6em]e1.east)
{
翻译任务
}
;
\node
[anchor=north,dnode] (d2) at ([xshift=0em,yshift=-2em]d1.south)
{
文本处理
任务
}
;
\node
[anchor=north,dnode] (d3) at ([xshift=0em,yshift=-2em]d2.south)
{
语言理解
}
;
\node
[anchor=north,dnode] (d2) at ([xshift=0em,yshift=-2em]d1.south)
{
句法分析
任务
}
;
\node
[anchor=north,dnode] (d3) at ([xshift=0em,yshift=-2em]d2.south)
{
语言理解
任务
}
;
\node
[anchor=north,dnode] (d4) at ([xshift=0em,yshift=-2em]d3.south)
{
其他任务
}
;
\node
[anchor=west] (w2) at ([xshift=2em,yshift=0em]d1.east)
{
英语(目标语言)
}
;
...
...
Chapter15/chapter15.tex
查看文件 @
d97e3dab
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论