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
10440973
Commit
10440973
authored
Jan 08, 2021
by
xiaotong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates of figures (secs 13-18)
parent
29933a93
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
59 行增加
和
58 行删除
+59
-58
Chapter13/Figures/figure-bpe.tex
+4
-4
Chapter13/Figures/figure-framework-of-Adversarial-Neural-machine-translation.tex
+1
-1
Chapter14/Figures/figure-different-integration-model.tex
+11
-11
Chapter14/Figures/figure-hypothesis-generation.tex
+8
-8
Chapter14/Figures/figure-main-module.tex
+2
-2
Chapter14/Figures/figure-multi-modality.tex
+3
-3
Chapter14/Figures/figure-non-autoregressive.tex
+5
-5
Chapter15/Figures/figure-encoder-of-bidirectional-tree-structure.tex
+2
-2
Chapter15/Figures/figure-encoder-tree-structure-modeling.tex
+1
-1
Chapter15/Figures/figure-main-flow-of-neural-network-structure-search.tex
+3
-3
Chapter15/Figures/figure-multi-task-structure.tex
+1
-1
Chapter15/Figures/figure-structure-search-based-on-gradient-method.tex
+1
-1
Chapter15/Figures/figure-structure-search-based-on-reinforcement-learning.tex
+1
-1
Chapter15/Figures/figure-three-fusion-methods-of-tree-structure-information-2.tex
+3
-3
Chapter17/Figures/figure-cache.tex
+13
-12
没有找到文件。
Chapter13/Figures/figure-bpe.tex
查看文件 @
10440973
\begin{tikzpicture}
\begin{tikzpicture}
\tikzstyle
{
tnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=
u
green!20]
\tikzstyle
{
tnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=green!20]
\tikzstyle
{
pnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=yellow!
2
0]
\tikzstyle
{
pnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=yellow!
3
0]
\tikzstyle
{
mnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=red!20]
\tikzstyle
{
mnode
}
= [rectangle,inner sep=0em,minimum width=8em,minimum height=6.6em,rounded corners=5pt,fill=red!20]
\tikzstyle
{
wnode
}
= [inner sep=0em,minimum height=1.5em]
\tikzstyle
{
wnode
}
= [inner sep=0em,minimum height=1.5em]
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
\begin{pgfonlayer}
{
background
}
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=0.7em,draw,ugreen!
4
0,dashed,very thick,rounded corners=7pt] [fit = (n1) (n4)] (box1)
{}
;
\node
[rectangle,inner sep=0.7em,draw,ugreen!
6
0,dashed,very thick,rounded corners=7pt] [fit = (n1) (n4)] (box1)
{}
;
\end{pgfonlayer}
\end{pgfonlayer}
\node
[anchor=west,align=left,font=
\footnotesize
] (nt1) at ([xshift=0.1em,yshift=0em]n2.east)
{
统计词表和
\\
[0.5ex]
词频
}
;
\node
[anchor=west,align=left,font=
\footnotesize
] (nt1) at ([xshift=0.1em,yshift=0em]n2.east)
{
统计词表和
\\
[0.5ex]
词频
}
;
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
\node
[anchor=east,ublue,align=left,font=
\footnotesize
] (l3) at ([xshift=-0.5em,yshift=0em]cd.west)
{
直至达到设定的符号合
\\
并表大小或无法合并
}
;
\node
[anchor=east,ublue,align=left,font=
\footnotesize
] (l3) at ([xshift=-0.5em,yshift=0em]cd.west)
{
直至达到设定的符号合
\\
并表大小或无法合并
}
;
\begin{pgfonlayer}
{
background
}
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=0.7em,draw,
yellow
!40,dashed,very thick,rounded corners=7pt] [fit = (n5) (n8) (l3) (cd)] (box2)
{}
;
\node
[rectangle,inner sep=0.7em,draw,
orange
!40,dashed,very thick,rounded corners=7pt] [fit = (n5) (n8) (l3) (cd)] (box2)
{}
;
\end{pgfonlayer}
\end{pgfonlayer}
%第五排
%第五排
...
...
Chapter13/Figures/figure-framework-of-Adversarial-Neural-machine-translation.tex
查看文件 @
10440973
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
\begin{tikzpicture}
\begin{tikzpicture}
\tikzstyle
{
rnnnode
}
= [draw,inner sep=4pt,minimum width=2em,minimum height=2em,rounded corners=1pt,fill=
yellow
!20]
\tikzstyle
{
rnnnode
}
= [draw,inner sep=4pt,minimum width=2em,minimum height=2em,rounded corners=1pt,fill=
green
!20]
\tikzstyle
{
snode
}
= [draw,inner sep=4pt,minimum width=2em,minimum height=2em,rounded corners=1pt,fill=red!20]
\tikzstyle
{
snode
}
= [draw,inner sep=4pt,minimum width=2em,minimum height=2em,rounded corners=1pt,fill=red!20]
\tikzstyle
{
wode
}
= [inner sep=0pt,minimum width=2em,minimum height=2em,rounded corners=0pt]
\tikzstyle
{
wode
}
= [inner sep=0pt,minimum width=2em,minimum height=2em,rounded corners=0pt]
...
...
Chapter14/Figures/figure-different-integration-model.tex
查看文件 @
10440973
...
@@ -10,12 +10,12 @@
...
@@ -10,12 +10,12 @@
\tikzstyle
{
output
}
= [rectangle,thick,rounded corners=3pt,minimum width=1.2cm,align=center,font=
\scriptsize
];
\tikzstyle
{
output
}
= [rectangle,thick,rounded corners=3pt,minimum width=1.2cm,align=center,font=
\scriptsize
];
\begin{scope}
\begin{scope}
\node
[system,fill=
orange!2
0,draw] (model3) at (0,0)
{
模型
$
3
$}
;
\node
[system,fill=
yellow!3
0,draw] (model3) at (0,0)
{
模型
$
3
$}
;
\node
[system,fill=
u
green!20,draw,anchor=south] (model2) at ([yshift=0.5cm]model3.north)
{
模型
$
2
$}
;
\node
[system,fill=green!20,draw,anchor=south] (model2) at ([yshift=0.5cm]model3.north)
{
模型
$
2
$}
;
\node
[system,fill=red!20,draw,anchor=south] (model1) at ([yshift=0.5cm]model2.north)
{
模型
$
1
$}
;
\node
[system,fill=red!20,draw,anchor=south] (model1) at ([yshift=0.5cm]model2.north)
{
模型
$
1
$}
;
\node
[output,fill=
orange!2
0,draw,anchor=west] (output3) at ([xshift=0.8cm]model3.east)
{
输出
$
3
$}
;
\node
[output,fill=
yellow!3
0,draw,anchor=west] (output3) at ([xshift=0.8cm]model3.east)
{
输出
$
3
$}
;
\node
[output,fill=
u
green!20,draw,anchor=west] (output2) at ([xshift=0.8cm]model2.east)
{
输出
$
2
$}
;
\node
[output,fill=green!20,draw,anchor=west] (output2) at ([xshift=0.8cm]model2.east)
{
输出
$
2
$}
;
\node
[output,fill=red!20,draw,anchor=west] (output1) at ([xshift=0.8cm]model1.east)
{
输出
$
1
$}
;
\node
[output,fill=red!20,draw,anchor=west] (output1) at ([xshift=0.8cm]model1.east)
{
输出
$
1
$}
;
\begin{pgfonlayer}
{
background
}
\begin{pgfonlayer}
{
background
}
...
@@ -40,15 +40,15 @@
...
@@ -40,15 +40,15 @@
\tikzstyle
{
output
}
= [rectangle,thick,rounded corners=3pt,minimum width=1.2cm,align=center,font=
\scriptsize
];
\tikzstyle
{
output
}
= [rectangle,thick,rounded corners=3pt,minimum width=1.2cm,align=center,font=
\scriptsize
];
\begin{scope}
\begin{scope}
\node
[system,fill=
orange!2
0,draw] (model3) at (0,0)
{
模型
$
3
$}
;
\node
[system,fill=
yellow!3
0,draw] (model3) at (0,0)
{
模型
$
3
$}
;
\node
[system,fill=
u
green!20,draw,anchor=south] (model2) at ([yshift=0.5cm]model3.north)
{
模型
$
2
$}
;
\node
[system,fill=green!20,draw,anchor=south] (model2) at ([yshift=0.5cm]model3.north)
{
模型
$
2
$}
;
\node
[system,fill=red!20,draw,anchor=south] (model1) at ([yshift=0.5cm]model2.north)
{
模型
$
1
$}
;
\node
[system,fill=red!20,draw,anchor=south] (model1) at ([yshift=0.5cm]model2.north)
{
模型
$
1
$}
;
\begin{pgfonlayer}
{
background
}
\begin{pgfonlayer}
{
background
}
\node
[draw,thick,dashed,inner sep=3pt,fit=(model3) (model2) (model1)] (ensemble)
{}
;
\node
[draw,thick,dashed,inner sep=3pt,fit=(model3) (model2) (model1)] (ensemble)
{}
;
\end{pgfonlayer}
\end{pgfonlayer}
\node
[system,fill=
u
green!20,draw,right=1cm of ensemble] (model)
{
模型
}
;
\node
[system,fill=green!20,draw,right=1cm of ensemble] (model)
{
模型
}
;
\node
[output,fill=cocoabrown!20,draw,minimum width=1.2cm,anchor=west] (final) at ([xshift=0.8cm]model.east)
{
最终
\\
输出
}
;
\node
[output,fill=cocoabrown!20,draw,minimum width=1.2cm,anchor=west] (final) at ([xshift=0.8cm]model.east)
{
最终
\\
输出
}
;
...
@@ -68,12 +68,12 @@
...
@@ -68,12 +68,12 @@
\tikzstyle
{
dot
}
= [circle,fill=blue!40!white,minimum size=5pt,inner sep=0pt];
\tikzstyle
{
dot
}
= [circle,fill=blue!40!white,minimum size=5pt,inner sep=0pt];
\begin{scope}
\begin{scope}
\node
[system,fill=
orange!2
0,draw] (model3) at (0,0)
{
模型
$
3
$}
;
\node
[system,fill=
yellow!3
0,draw] (model3) at (0,0)
{
模型
$
3
$}
;
\node
[system,fill=
u
green!20,draw,anchor=south] (model2) at ([yshift=0.5cm]model3.north)
{
模型
$
2
$}
;
\node
[system,fill=green!20,draw,anchor=south] (model2) at ([yshift=0.5cm]model3.north)
{
模型
$
2
$}
;
\node
[system,fill=red!20,draw,anchor=south] (model1) at ([yshift=0.5cm]model2.north)
{
模型
$
1
$}
;
\node
[system,fill=red!20,draw,anchor=south] (model1) at ([yshift=0.5cm]model2.north)
{
模型
$
1
$}
;
\node
[output,fill=
orange!2
0,draw,anchor=west] (output3) at ([xshift=0.8cm]model3.east)
{
输出
$
3
$}
;
\node
[output,fill=
yellow!3
0,draw,anchor=west] (output3) at ([xshift=0.8cm]model3.east)
{
输出
$
3
$}
;
\node
[output,fill=
u
green!20,draw,anchor=west] (output2) at ([xshift=0.8cm]model2.east)
{
输出
$
2
$}
;
\node
[output,fill=green!20,draw,anchor=west] (output2) at ([xshift=0.8cm]model2.east)
{
输出
$
2
$}
;
\node
[output,fill=red!20,draw,anchor=west] (output1) at ([xshift=0.8cm]model1.east)
{
输出
$
1
$}
;
\node
[output,fill=red!20,draw,anchor=west] (output1) at ([xshift=0.8cm]model1.east)
{
输出
$
1
$}
;
\draw
[->,very thick] (model1) to (output1);
\draw
[->,very thick] (model1) to (output1);
...
...
Chapter14/Figures/figure-hypothesis-generation.tex
查看文件 @
10440973
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
\tikzstyle
{
output
}
= [rectangle,thick,rounded corners=3pt,minimum width=1.2cm,align=center,font=
\scriptsize
];
\tikzstyle
{
output
}
= [rectangle,thick,rounded corners=3pt,minimum width=1.2cm,align=center,font=
\scriptsize
];
\begin{scope}
[local bounding box=MULTIPLE]
\begin{scope}
[local bounding box=MULTIPLE]
\node
[system,fill=
orange!2
0,draw] (engine3) at (0,0)
{
系统
$
n
$}
;
\node
[system,fill=
yellow!3
0,draw] (engine3) at (0,0)
{
系统
$
n
$}
;
\node
[system,fill=
u
green!20,draw,anchor=south] (engine2) at ([yshift=0.6cm]engine3.north)
{
系统
$
2
$}
;
\node
[system,fill=green!20,draw,anchor=south] (engine2) at ([yshift=0.6cm]engine3.north)
{
系统
$
2
$}
;
\node
[system,fill=red!20,draw,anchor=south] (engine1) at ([yshift=0.3cm]engine2.north)
{
系统
$
1
$}
;
\node
[system,fill=red!20,draw,anchor=south] (engine1) at ([yshift=0.3cm]engine2.north)
{
系统
$
1
$}
;
\node
[output,fill=
orange!2
0,draw,anchor=west] (output3) at ([xshift=0.5cm]engine3.east)
{
输出
$
n
$}
;
\node
[output,fill=
yellow!3
0,draw,anchor=west] (output3) at ([xshift=0.5cm]engine3.east)
{
输出
$
n
$}
;
\node
[output,fill=
u
green!20,draw,anchor=west] (output2) at ([xshift=0.5cm]engine2.east)
{
输出
$
2
$}
;
\node
[output,fill=green!20,draw,anchor=west] (output2) at ([xshift=0.5cm]engine2.east)
{
输出
$
2
$}
;
\node
[output,fill=red!20,draw,anchor=west] (output1) at ([xshift=0.5cm]engine1.east)
{
输出
$
1
$}
;
\node
[output,fill=red!20,draw,anchor=west] (output1) at ([xshift=0.5cm]engine1.east)
{
输出
$
1
$}
;
\draw
[very thick,decorate,decoration=
{
brace
}
] ([xshift=3pt]output1.north east) to node [midway,name=final]
{}
([xshift=3pt]output3.south east);
\draw
[very thick,decorate,decoration=
{
brace
}
] ([xshift=3pt]output1.north east) to node [midway,name=final]
{}
([xshift=3pt]output3.south east);
...
@@ -25,11 +25,11 @@
...
@@ -25,11 +25,11 @@
\end{scope}
\end{scope}
\begin{scope}
[local bounding box=SINGLE]
\begin{scope}
[local bounding box=SINGLE]
\node
[output,fill=
u
green!20,draw,anchor=west] (output3) at ([xshift=4cm]output3.east)
{
输出
$
n
$}
;
\node
[output,fill=green!20,draw,anchor=west] (output3) at ([xshift=4cm]output3.east)
{
输出
$
n
$}
;
\node
[output,fill=
u
green!20,draw,anchor=west] (output2) at ([xshift=4cm]output2.east)
{
输出
$
2
$}
;
\node
[output,fill=green!20,draw,anchor=west] (output2) at ([xshift=4cm]output2.east)
{
输出
$
2
$}
;
\node
[output,fill=
u
green!20,draw,anchor=west] (output1) at ([xshift=4cm]output1.east)
{
输出
$
1
$}
;
\node
[output,fill=green!20,draw,anchor=west] (output1) at ([xshift=4cm]output1.east)
{
输出
$
1
$}
;
\node
[system,fill=
u
green!20,draw,anchor=east,align=center,inner sep=1.9pt] (engine) at ([xshift=-0.5cm]output2.west)
{
单系统
}
;
\node
[system,fill=green!20,draw,anchor=east,align=center,inner sep=1.9pt] (engine) at ([xshift=-0.5cm]output2.west)
{
单系统
}
;
\draw
[very thick,decorate,decoration=
{
brace
}
] ([xshift=3pt]output1.north east) to node [midway,name=final]
{}
([xshift=3pt]output3.south east);
\draw
[very thick,decorate,decoration=
{
brace
}
] ([xshift=3pt]output1.north east) to node [midway,name=final]
{}
([xshift=3pt]output3.south east);
...
...
Chapter14/Figures/figure-main-module.tex
查看文件 @
10440973
\begin{tikzpicture}
\begin{tikzpicture}
%左
%左
\node
[anchor=west,draw=black!70,rounded corners,drop shadow,very thick,minimum width=6em,minimum height=3.5em,fill=
blue!15,align=center,text=black] (part1) at (0,0)
{
\scriptsize
{
预测模块
}}
;
\node
[anchor=west,draw=black!70,rounded corners,drop shadow,very thick,minimum width=6em,minimum height=3.5em,fill=
red!15,align=center,text=black] (part1) at (0,0)
{
\small
{
预测模块
}}
;
\node
[anchor=south] (text) at ([xshift=0.5em,yshift=-3.5em]part1.south)
{
\scriptsize
{
源语言句子(编码器输出)
}}
;
\node
[anchor=south] (text) at ([xshift=0.5em,yshift=-3.5em]part1.south)
{
\scriptsize
{
源语言句子(编码器输出)
}}
;
\node
[anchor=east,draw=black!70,rounded corners,drop shadow,very thick,minimum width=6em,minimum height=3.5em,fill=
blue!15,align=center,text=black] (part2) at ([xshift=10em]part1.east)
{
\scriptsize
{
搜索模块
}}
;
\node
[anchor=east,draw=black!70,rounded corners,drop shadow,very thick,minimum width=6em,minimum height=3.5em,fill=
green!15,align=center,text=black] (part2) at ([xshift=10em]part1.east)
{
\small
{
搜索模块
}}
;
\node
[anchor=south] (text1) at ([xshift=0.1em,yshift=2.2em]part1.north)
{
\scriptsize
{
译文中已经生成的单词
}}
;
\node
[anchor=south] (text1) at ([xshift=0.1em,yshift=2.2em]part1.north)
{
\scriptsize
{
译文中已经生成的单词
}}
;
\node
[anchor=south] (text2) at ([xshift=0.5em,yshift=2.2em]part2.north)
{
\scriptsize
{
预测当前位置的单词概率分布
}}
;
\node
[anchor=south] (text2) at ([xshift=0.5em,yshift=2.2em]part2.north)
{
\scriptsize
{
预测当前位置的单词概率分布
}}
;
...
...
Chapter14/Figures/figure-multi-modality.tex
查看文件 @
10440973
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
\tikzstyle
{
po
}
= [font=
\scriptsize
,rounded corners=1pt, fill=gray!20, minimum width=1.8em,minimum height=1.5em,draw]
\tikzstyle
{
po
}
= [font=
\scriptsize
,rounded corners=1pt, fill=gray!20, minimum width=1.8em,minimum height=1.5em,draw]
\tikzstyle
{
tgt
}
= [minimum height=1.6em,minimum width=5.2em,fill=black!10!yellow!30,font=
\footnotesize
,drop shadow=
{
shadow xshift=0.15em,shadow yshift=-0.15em,
}
]
\tikzstyle
{
tgt
}
= [minimum height=1.6em,minimum width=5.2em,fill=black!10!yellow!30,font=
\footnotesize
,drop shadow=
{
shadow xshift=0.15em,shadow yshift=-0.15em,
}
]
\tikzstyle
{
p
}
= [fill=ugreen!15,minimum width=0.4em,inner sep=0pt]
\tikzstyle
{
p
}
= [fill=ugreen!15,minimum width=0.4em,inner sep=0pt]
\node
[ rounded corners=3pt, fill=red!20, drop shadow, minimum width=12em,minimum height=4em,draw]
(encoder) at (0,0)
{
编码器
}
;
\node
[ rounded corners=3pt,
thick,
fill=red!20, drop shadow, minimum width=12em,minimum height=4em,draw]
(encoder) at (0,0)
{
编码器
}
;
\node
[anchor=north,rounded corners=3pt, fill=yellow!20, drop shadow, minimum width=12em,minimum height=2em,draw]
(lenpre) at([yshift=3em]encoder.north)
{
长度预测器
}
;
\node
[anchor=north,rounded corners=3pt,
thick,
fill=yellow!20, drop shadow, minimum width=12em,minimum height=2em,draw]
(lenpre) at([yshift=3em]encoder.north)
{
长度预测器
}
;
\node
[anchor=north]
(lable) at([xshift=3.5em,yshift=2.5em]lenpre.north)
{
译文长度:3
}
;
\node
[anchor=north]
(lable) at([xshift=3.5em,yshift=2.5em]lenpre.north)
{
译文长度:3
}
;
\node
[anchor=west, rounded corners=3pt, fill=blue!20, drop shadow, minimum width=13em,minimum height=4em,draw]
(decoder) at ([xshift=1cm]encoder.east)
{
解码器
}
;
\node
[anchor=west, rounded corners=3pt,
thick,
fill=blue!20, drop shadow, minimum width=13em,minimum height=4em,draw]
(decoder) at ([xshift=1cm]encoder.east)
{
解码器
}
;
\node
[anchor=north,emb]
(en1) at ([yshift=-1.3em,xshift=-4.5em]encoder.south)
{${
\mathbi
e
}$
(干)
}
;
\node
[anchor=north,emb]
(en1) at ([yshift=-1.3em,xshift=-4.5em]encoder.south)
{${
\mathbi
e
}$
(干)
}
;
\node
[anchor=north,emb]
(en2) at ([yshift=-1.3em,xshift=-1.5em]encoder.south)
{${
\mathbi
e
}$
(得)
}
;
\node
[anchor=north,emb]
(en2) at ([yshift=-1.3em,xshift=-1.5em]encoder.south)
{${
\mathbi
e
}$
(得)
}
;
...
...
Chapter14/Figures/figure-non-autoregressive.tex
查看文件 @
10440973
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
\tikzstyle
{
emb
}
= [font=
\scriptsize
,rounded corners=1pt, fill=orange!20, minimum width=1.8em,minimum height=1.5em,draw]
\tikzstyle
{
emb
}
= [font=
\scriptsize
,rounded corners=1pt, fill=orange!20, minimum width=1.8em,minimum height=1.5em,draw]
\tikzstyle
{
po
}
= [font=
\scriptsize
,rounded corners=1pt, fill=gray!20, minimum width=1.8em,minimum height=1.5em,draw]
\tikzstyle
{
po
}
= [font=
\scriptsize
,rounded corners=1pt, fill=gray!20, minimum width=1.8em,minimum height=1.5em,draw]
\begin{scope}
\begin{scope}
\node
[rounded corners=3pt, fill=red!20, drop shadow, minimum width=10em,minimum height=4em,draw]
(encoder) at (0,0)
{
编码器
}
;
\node
[rounded corners=3pt,
thick,
fill=red!20, drop shadow, minimum width=10em,minimum height=4em,draw]
(encoder) at (0,0)
{
编码器
}
;
\node
[anchor=north,rounded corners=3pt, fill=yellow!20, drop shadow, minimum width=10em,minimum height=2em,draw]
(lenpre) at([yshift=3em]encoder.north)
{
长度预测器
}
;
\node
[anchor=north,rounded corners=3pt,
thick,
fill=yellow!20, drop shadow, minimum width=10em,minimum height=2em,draw]
(lenpre) at([yshift=3em]encoder.north)
{
长度预测器
}
;
\node
[anchor=north]
(lable) at([xshift=3.5em,yshift=2.5em]lenpre.north)
{
译文长度:4
}
;
\node
[anchor=north]
(lable) at([xshift=3.5em,yshift=2.5em]lenpre.north)
{
译文长度:4
}
;
\node
[anchor=west, rounded corners=3pt, fill=blue!20, drop shadow, minimum width=16em,minimum height=4em,draw]
(decoder) at ([xshift=1.8cm]encoder.east)
{
解码器
}
;
\node
[anchor=west, rounded corners=3pt,
thick,
fill=blue!20, drop shadow, minimum width=16em,minimum height=4em,draw]
(decoder) at ([xshift=1.8cm]encoder.east)
{
解码器
}
;
\node
[anchor=north,emb]
(en2) at ([yshift=-1.3em]encoder.south)
{${
\mathbi
e
}
(
x
_
2
)
$}
;
\node
[anchor=north,emb]
(en2) at ([yshift=-1.3em]encoder.south)
{${
\mathbi
e
}
(
x
_
2
)
$}
;
\node
[anchor=north,emb]
(en1) at ([yshift=-1.3em,xshift=-3em]encoder.south)
{${
\mathbi
e
}
(
x
_
1
)
$}
;
\node
[anchor=north,emb]
(en1) at ([yshift=-1.3em,xshift=-3em]encoder.south)
{${
\mathbi
e
}
(
x
_
1
)
$}
;
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
\end{scope}
\end{scope}
\begin{scope}
[yshift=2.8in]
\begin{scope}
[yshift=2.8in]
\node
[rounded corners=3pt, fill=red!20, drop shadow, minimum width=10em,minimum height=4em,draw]
(encoder) at (0,0)
{
编码器
}
;
\node
[rounded corners=3pt,
thick,
fill=red!20, drop shadow, minimum width=10em,minimum height=4em,draw]
(encoder) at (0,0)
{
编码器
}
;
\node
[anchor=west,minimum width=16em,minimum height=4em]
(decoder) at ([xshift=1.8cm]encoder.east)
{}
;
\node
[anchor=west,minimum width=16em,minimum height=4em]
(decoder) at ([xshift=1.8cm]encoder.east)
{}
;
\node
[anchor=north,emb]
(en2) at ([yshift=-1.3em]encoder.south)
{${
\mathbi
e
}
(
x
_
2
)
$}
;
\node
[anchor=north,emb]
(en2) at ([yshift=-1.3em]encoder.south)
{${
\mathbi
e
}
(
x
_
2
)
$}
;
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
\draw
[->,very thick,dotted] ([xshift=-0.3em]out2.east) .. controls +(east:0.5) and +(west:0.5) ..([xshift=0em]de3.west);
\draw
[->,very thick,dotted] ([xshift=-0.3em]out2.east) .. controls +(east:0.5) and +(west:0.5) ..([xshift=0em]de3.west);
\draw
[->,very thick,dotted] ([xshift=-0.3em]out3.east) .. controls +(east:0.5) and +(west:0.5) ..([xshift=0em]de4.west);
\draw
[->,very thick,dotted] ([xshift=-0.3em]out3.east) .. controls +(east:0.5) and +(west:0.5) ..([xshift=0em]de4.west);
\draw
[->,very thick,dotted] ([xshift=-0.3em]out4.east) .. controls +(east:0.5) and +(west:0.5) ..([xshift=0em]de5.west);
\draw
[->,very thick,dotted] ([xshift=-0.3em]out4.east) .. controls +(east:0.5) and +(west:0.5) ..([xshift=0em]de5.west);
\node
[anchor=west, rounded corners=3pt, fill=blue!20, drop shadow, minimum width=16em,minimum height=4em,draw]
(decoder2) at ([xshift=1.8cm]encoder.east)
{
解码器
}
;
\node
[anchor=west, rounded corners=3pt,
thick,
fill=blue!20, drop shadow, minimum width=16em,minimum height=4em,draw]
(decoder2) at ([xshift=1.8cm]encoder.east)
{
解码器
}
;
\draw
[->,line width=1pt]
(encoder.east) -- (decoder.west);
\draw
[->,line width=1pt]
(encoder.east) -- (decoder.west);
\end{scope}
\end{scope}
...
...
Chapter15/Figures/figure-encoder-of-bidirectional-tree-structure.tex
查看文件 @
10440973
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
\begin{tikzpicture}
\begin{tikzpicture}
\begin{scope}
\begin{scope}
\tikzstyle
{
hnode
}
=[rectangle,inner sep=0mm,minimum height=2em,minimum width=3em,rounded corners=5pt,fill=
u
green!20]
\tikzstyle
{
hnode
}
=[rectangle,inner sep=0mm,minimum height=2em,minimum width=3em,rounded corners=5pt,fill=green!20]
\tikzstyle
{
tnode
}
=[rectangle,inner sep=0mm,minimum height=2em,minimum width=3em,rounded corners=5pt,fill=red!20]
\tikzstyle
{
tnode
}
=[rectangle,inner sep=0mm,minimum height=2em,minimum width=3em,rounded corners=5pt,fill=red!20]
\tikzstyle
{
fnoder
}
=[rectangle,inner sep=0mm,minimum height=2.4em,minimum width=6.8em,draw,dashed,very thick,rounded corners=5pt,red!40]
\tikzstyle
{
fnoder
}
=[rectangle,inner sep=0mm,minimum height=2.4em,minimum width=6.8em,draw,dashed,very thick,rounded corners=5pt,red!40]
\tikzstyle
{
fnodeg
}
=[rectangle,inner sep=0mm,minimum height=2.4em,minimum width=6.8em,draw,dashed,very thick,rounded corners=5pt,
u
green!40]
\tikzstyle
{
fnodeg
}
=[rectangle,inner sep=0mm,minimum height=2.4em,minimum width=6.8em,draw,dashed,very thick,rounded corners=5pt,green!40]
\node
[anchor=south west,fnodeg] (f1) at (0,0)
{}
;
\node
[anchor=south west,fnodeg] (f1) at (0,0)
{}
;
\node
[anchor=west,hnode] (n1) at ([xshift=0.2em,yshift=0em]f1.west)
{$
\mathbi
{
h
}_
1
^{
\textrm
{
up
}}$}
;
\node
[anchor=west,hnode] (n1) at ([xshift=0.2em,yshift=0em]f1.west)
{$
\mathbi
{
h
}_
1
^{
\textrm
{
up
}}$}
;
...
...
Chapter15/Figures/figure-encoder-tree-structure-modeling.tex
查看文件 @
10440973
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
\begin{tikzpicture}
\begin{tikzpicture}
\begin{scope}
\begin{scope}
\tikzstyle
{
hnode
}
=[rectangle,inner sep=0mm,minimum height=2em,minimum width=4.5em,rounded corners=5pt,fill=
u
green!30]
\tikzstyle
{
hnode
}
=[rectangle,inner sep=0mm,minimum height=2em,minimum width=4.5em,rounded corners=5pt,fill=green!30]
\tikzstyle
{
tnode
}
=[rectangle,inner sep=0mm,minimum height=2em,minimum width=4.5em,rounded corners=5pt,fill=red!30]
\tikzstyle
{
tnode
}
=[rectangle,inner sep=0mm,minimum height=2em,minimum width=4.5em,rounded corners=5pt,fill=red!30]
\tikzstyle
{
wnode
}
=[inner sep=0mm,minimum height=1.4em,minimum width=4.4em]
\tikzstyle
{
wnode
}
=[inner sep=0mm,minimum height=1.4em,minimum width=4.4em]
...
...
Chapter15/Figures/figure-main-flow-of-neural-network-structure-search.tex
查看文件 @
10440973
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
\begin{scope}
[scale=0.36]
\begin{scope}
[scale=0.36]
\tikzstyle
{
every node
}
=[scale=0.36]
\tikzstyle
{
every node
}
=[scale=0.36]
\node
[draw=ublue,very thick,drop shadow,fill=white,minimum width=40em,minimum height=25em]
(rec3) at (2.25,0)
{}
;
\node
[draw=ublue,very thick,
rounded corners=3pt,
drop shadow,fill=white,minimum width=40em,minimum height=25em]
(rec3) at (2.25,0)
{}
;
\node
[draw=ublue,very thick,drop shadow,fill=white,minimum width=22em,minimum height=25em]
(rec2) at (-12.4,0)
{}
;
\node
[draw=ublue,very thick,
rounded corners=3pt,
drop shadow,fill=white,minimum width=22em,minimum height=25em]
(rec2) at (-12.4,0)
{}
;
\node
[draw=ublue,very thick,drop shadow,fill=white,minimum width=24em,minimum height=25em]
(rec1) at (-24,0)
{}
;
\node
[draw=ublue,very thick,
rounded corners=3pt,
drop shadow,fill=white,minimum width=24em,minimum height=25em]
(rec1) at (-24,0)
{}
;
%left
%left
\node
[text=ublue]
(label1) at (-26.4,4)
{
\Huge\bfnew
{
结构空间
}}
;
\node
[text=ublue]
(label1) at (-26.4,4)
{
\Huge\bfnew
{
结构空间
}}
;
...
...
Chapter15/Figures/figure-multi-task-structure.tex
查看文件 @
10440973
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
\begin{tikzpicture}
\begin{tikzpicture}
\begin{scope}
\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
{
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]
\tikzstyle
{
wnode
}
=[inner sep=0mm,minimum height=2em,minimum width=4em]
...
...
Chapter15/Figures/figure-structure-search-based-on-gradient-method.tex
查看文件 @
10440973
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
\node
[node,fill=red!20]
(n1) at (0,0)
{
\scriptsize\bfnew
{
超网络
}
:
\\
[1ex] 模型结构参数
\\
[0.4ex]
网络参数
}
;
\node
[node,fill=red!20]
(n1) at (0,0)
{
\scriptsize\bfnew
{
超网络
}
:
\\
[1ex] 模型结构参数
\\
[0.4ex]
网络参数
}
;
\node
[anchor=west,node,fill=yellow!20]
(n2) at ([xshift=4em]n1.east)
{
\scriptsize\bfnew
{
优化后的超网络
}
:
\\
[1ex]模型
{
\color
{
red
}
结构参数
}
(已优化)
\\
[0.4ex]网络参数(已优化)
}
;
\node
[anchor=west,node,fill=yellow!20]
(n2) at ([xshift=4em]n1.east)
{
\scriptsize\bfnew
{
优化后的超网络
}
:
\\
[1ex]模型
{
\color
{
red
}
结构参数
}
(已优化)
\\
[0.4ex]网络参数(已优化)
}
;
\node
[anchor=west,node,fill=
blue
!20]
(n3) at ([xshift=6em]n2.east)
{
\scriptsize\bfnew
{
找到的模型结构
}}
;
\node
[anchor=west,node,fill=
green
!20]
(n3) at ([xshift=6em]n2.east)
{
\scriptsize\bfnew
{
找到的模型结构
}}
;
\draw
[-latex,thick]
(n1.0) -- node[above,align=center,font=
\scriptsize
]
{
优化后的
\\
超网络
}
(n2.180);
\draw
[-latex,thick]
(n1.0) -- node[above,align=center,font=
\scriptsize
]
{
优化后的
\\
超网络
}
(n2.180);
\draw
[-latex,thick]
(n2.0) -- node[above,align=center,font=
\scriptsize
]
{
根据结构参数
\\
离散化结构
}
(n3.180);
\draw
[-latex,thick]
(n2.0) -- node[above,align=center,font=
\scriptsize
]
{
根据结构参数
\\
离散化结构
}
(n3.180);
...
...
Chapter15/Figures/figure-structure-search-based-on-reinforcement-learning.tex
查看文件 @
10440973
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
\tikzstyle
{
node
}
=[minimum height=2em,minimum width=5em,draw,rounded corners=2pt,thick,drop shadow]
\tikzstyle
{
node
}
=[minimum height=2em,minimum width=5em,draw,rounded corners=2pt,thick,drop shadow]
\node
[node,fill=red!20]
(n1) at (0,0)
{
\small\bfnew
{
环境
}}
;
\node
[node,fill=red!20]
(n1) at (0,0)
{
\small\bfnew
{
环境
}}
;
\node
[anchor=south,node,fill=
blue
!20]
(n2) at ([yshift=5em]n1.north)
{
\small\bfnew
{
智能体
}}
;
\node
[anchor=south,node,fill=
green
!20]
(n2) at ([yshift=5em]n1.north)
{
\small\bfnew
{
智能体
}}
;
\node
[anchor=north,font=\footnotesize]
at ([yshift=-0.2em]n1.south)
{
(结构所应用于的任务)
}
;
\node
[anchor=north,font=\footnotesize]
at ([yshift=-0.2em]n1.south)
{
(结构所应用于的任务)
}
;
\node
[anchor=south,font=\footnotesize]
at ([yshift=0.2em]n2.north)
{
(结构生成器)
}
;
\node
[anchor=south,font=\footnotesize]
at ([yshift=0.2em]n2.north)
{
(结构生成器)
}
;
...
...
Chapter15/Figures/figure-three-fusion-methods-of-tree-structure-information-2.tex
查看文件 @
10440973
...
@@ -48,9 +48,9 @@
...
@@ -48,9 +48,9 @@
\node
[anchor=south,wnode] (w10) at ([xshift=0em,yshift=0.5em]c3.north)
{$
\mathbi
{
e
}_{
w
_
2
}$}
;
\node
[anchor=south,wnode] (w10) at ([xshift=0em,yshift=0.5em]c3.north)
{$
\mathbi
{
e
}_{
w
_
2
}$}
;
\begin{pgfonlayer}
{
background
}
\begin{pgfonlayer}
{
background
}
\node
[rectangle,minimum height=5em,inner sep=0.6em,fill=
u
green!20,rounded corners=8pt] [fit = (c1) (w8)] (box6)
{}
;
\node
[rectangle,minimum height=5em,inner sep=0.6em,fill=green!20,rounded corners=8pt] [fit = (c1) (w8)] (box6)
{}
;
\node
[rectangle,minimum height=5em,inner sep=0.6em,fill=
u
green!20,rounded corners=8pt] [fit = (c2) (w9)] (box7)
{}
;
\node
[rectangle,minimum height=5em,inner sep=0.6em,fill=green!20,rounded corners=8pt] [fit = (c2) (w9)] (box7)
{}
;
\node
[rectangle,minimum height=5em,inner sep=0.6em,fill=
u
green!20,rounded corners=8pt] [fit = (c3) (w10)] (box8)
{}
;
\node
[rectangle,minimum height=5em,inner sep=0.6em,fill=green!20,rounded corners=8pt] [fit = (c3) (w10)] (box8)
{}
;
\end{pgfonlayer}
\end{pgfonlayer}
\node
[anchor=south,wrnode] (wr1) at ([xshift=0em,yshift=1em]box6.north)
{$
\mathbi
{
h
}_{
w
_
1
}$}
;
\node
[anchor=south,wrnode] (wr1) at ([xshift=0em,yshift=1em]box6.north)
{$
\mathbi
{
h
}_{
w
_
1
}$}
;
...
...
Chapter17/Figures/figure-cache.tex
查看文件 @
10440973
...
@@ -17,10 +17,10 @@
...
@@ -17,10 +17,10 @@
\node
[anchor=south,font=\footnotesize,inner sep=0pt]
at ([yshift=0.2em]value.north)
{
value
}
;
\node
[anchor=south,font=\footnotesize,inner sep=0pt]
at ([yshift=0.2em]value.north)
{
value
}
;
\node
[anchor=south,font=\footnotesize,inner sep=0pt]
(cache)at ([yshift=2em,xshift=1.5em]key.north)
{
\small\bfnew
{
缓存
}}
;
\node
[anchor=south,font=\footnotesize,inner sep=0pt]
(cache)at ([yshift=2em,xshift=1.5em]key.north)
{
\small\bfnew
{
缓存
}}
;
\node
[draw,anchor=east,minimum size=1.8em,fill=orange!15]
(dt) at ([yshift=2.1em,xshift=-4em]key.west)
{${
\mathbi
{
d
}}_{
t
}$}
;
\node
[draw,anchor=east,
thick,
minimum size=1.8em,fill=orange!15]
(dt) at ([yshift=2.1em,xshift=-4em]key.west)
{${
\mathbi
{
d
}}_{
t
}$}
;
\node
[anchor=north,font=\footnotesize]
(readlab) at ([xshift=2.8em,yshift=0.3em]dt.north)
{
\red
{
读取
}}
;
\node
[anchor=north,font=\footnotesize]
(readlab) at ([xshift=2.8em,yshift=0.3em]dt.north)
{
\red
{
读取
}}
;
\node
[draw,anchor=east,minimum size=1.8em,fill=ugreen!15]
(st) at ([xshift=-3.7em]dt.west)
{${
\mathbi
{
s
}}_{
t
}$}
;
\node
[draw,anchor=east,
thick,
minimum size=1.8em,fill=ugreen!15]
(st) at ([xshift=-3.7em]dt.west)
{${
\mathbi
{
s
}}_{
t
}$}
;
\node
[draw,anchor=east,minimum size=1.8em,fill=red!15]
(st2) at ([xshift=-0.85em,yshift=3.5em]dt.west)
{$
\widetilde
{
\mathbi
{
s
}}_{
t
}$}
;
\node
[draw,anchor=east,
thick,
minimum size=1.8em,fill=red!15]
(st2) at ([xshift=-0.85em,yshift=3.5em]dt.west)
{$
\widetilde
{
\mathbi
{
s
}}_{
t
}$}
;
%\node[draw,anchor=north,circle,inner sep=0pt, minimum size=1.2em,fill=yellow] (add) at ([yshift=-1em]st2.south){+};
%\node[draw,anchor=north,circle,inner sep=0pt, minimum size=1.2em,fill=yellow] (add) at ([yshift=-1em]st2.south){+};
\node
[draw,thick,inner sep=0pt, minimum size=1.1em, circle]
(add) at ([yshift=-1.5em]st2.south)
{}
;
\node
[draw,thick,inner sep=0pt, minimum size=1.1em, circle]
(add) at ([yshift=-1.5em]st2.south)
{}
;
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
\node
[anchor=north,inner sep=0pt,font=\footnotesize,text=red]
at ([xshift=-0em,yshift=-0.5em]add.south)
{
融合
}
;
\node
[anchor=north,inner sep=0pt,font=\footnotesize,text=red]
at ([xshift=-0em,yshift=-0.5em]add.south)
{
融合
}
;
\node
[draw,anchor=east,minimum size=1.8em,fill=yellow!15]
(ct) at ([xshift=-2em,yshift=-3.5em]st.west)
{$
{
\mathbi
{
C
}}_{
t
}$}
;
\node
[draw,anchor=east,
thick,
minimum size=1.8em,fill=yellow!15]
(ct) at ([xshift=-2em,yshift=-3.5em]st.west)
{$
{
\mathbi
{
C
}}_{
t
}$}
;
\node
[anchor=north,font=\footnotesize]
(matchlab) at ([xshift=6.7em,yshift=-0.1em]ct.north)
{
\red
{
匹配
}}
;
\node
[anchor=north,font=\footnotesize]
(matchlab) at ([xshift=6.7em,yshift=-0.1em]ct.north)
{
\red
{
匹配
}}
;
\node
[anchor=east]
(y) at ([xshift=-6em,yshift=1em]st.west)
{$
\mathbi
{
y
}_{
t
-
1
}$}
;
\node
[anchor=east]
(y) at ([xshift=-6em,yshift=1em]st.west)
{$
\mathbi
{
y
}_{
t
-
1
}$}
;
...
@@ -53,12 +53,12 @@
...
@@ -53,12 +53,12 @@
%node[above,font=\footnotesize,text=red,rotate=25]{reading}
%node[above,font=\footnotesize,text=red,rotate=25]{reading}
\draw
[-latex,dashed,very thick,out=-5,in=-170]
(ct.0) to ([yshift=-2.5em]box.180);
\draw
[-latex,dashed,very thick,out=-5,in=-170]
(ct.0) to ([yshift=-2.5em]box.180);
%node[above,font=\footnotesize,text=red,pos=0.7,rotate=8]{matching}
%node[above,font=\footnotesize,text=red,pos=0.7,rotate=8]{matching}
\draw
[-,
very
thick,out=0,in=-135]
(st.0) to (add.-135);
\draw
[-,thick,out=0,in=-135]
(st.0) to (add.-135);
\draw
[-,
very
thick,out=180,in=-45]
(dt.180) to (add.-45);
\draw
[-,thick,out=180,in=-45]
(dt.180) to (add.-45);
\draw
[-latex,
very
thick]
(add.90) -- (st2.-90);
\draw
[-latex,thick]
(add.90) -- (st2.-90);
\draw
[-latex,
very
thick,out=100,in=-100]
(ct.90) to (output.-90);
\draw
[-latex,thick,out=100,in=-100]
(ct.90) to (output.-90);
\draw
[-latex,
very
thick,out=180,in=-100]
(st2.180) to (output.-90);
\draw
[-latex,thick,out=180,in=-100]
(st2.180) to (output.-90);
\draw
[-latex,
very
thick,out=80,in=-100]
(y.90) to (output.-90);
\draw
[-latex,thick,out=80,in=-100]
(y.90) to (output.-90);
\draw
[-latex,
very
thick]
(output.90) -- ([yshift=1em]output.90);
\draw
[-latex,thick]
(output.90) -- ([yshift=1em]output.90);
\draw
[-latex,
very
thick]
([yshift=-1.2em]yt.-90) -- (yt.-90);
\draw
[-latex,thick]
([yshift=-1.2em]yt.-90) -- (yt.-90);
\end{tikzpicture}
\end{tikzpicture}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论