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
d4d708b2
Commit
d4d708b2
authored
Dec 11, 2020
by
zengxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
18
parent
1e8e3be2
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
231 行增加
和
0 行删除
+231
-0
Chapter18/Figures/figure-comparison-of-incremental-model-optimization-methods.tex
+73
-0
Chapter18/Figures/figure-memory-multi-use.tex
+109
-0
Chapter18/Figures/figure-translation-interfered.tex
+49
-0
Chapter18/chapter18.tex
+0
-0
没有找到文件。
Chapter18/Figures/figure-comparison-of-incremental-model-optimization-methods.tex
0 → 100644
查看文件 @
d4d708b2
\begin{tabular}
{
c c c
}
\begin{tikzpicture}
\begin{scope}
% ,minimum height =1em,minimum width=2em
\tikzstyle
{
model
}
= [draw,black,very thick,inner sep=3.5pt,rounded corners=4pt,fill=blue!20,minimum width=4em,minimum height=1.5em,font=
\footnotesize
]
\tikzstyle
{
data
}
= [draw,black,very thick,inner sep=3.5pt,rounded corners=4pt,fill=green!20,minimum width=4em,minimum height=1.5em,font=
\footnotesize
]
\tikzstyle
{
word
}
= [inner sep=3.5pt,font=
\footnotesize
]
\node
[data]
(old) at (0,0)
{
旧数据
}
;
\node
[data]
(new) at ([xshift=3em]old.east)
{
新数据
}
;
\node
[data]
(all) at ([xshift=2.55em,yshift=-4em]old.south)
{
最终数据
}
;
\node
[model]
(final
_
model) at ([xshift=0em,yshift=-4em]all.south)
{
最终模型
}
;
\draw
[->,thick] ([yshift=-0.2em]old.south) .. controls +(south:2.5em) and +(north:2.5em) .. ([xshift=-0.2em,yshift=0.2em]all.north);
\draw
[->,thick] ([yshift=-0.2em]new.south) .. controls +(south:2.5em) and +(north:2.5em) .. ([xshift=0.2em,yshift=0.2em]all.north);
\draw
[->,thick] ([yshift=-0.2em]all.south) -- ([yshift=0.2em]final
_
model.north)node[pos=0.5,right,align=center,font=
\footnotesize
]
{
训练
}
;
\node
[word]
at ([yshift=-2em]final
_
model.south)
{
(a)数据混合
}
;
\end{scope}
\end{tikzpicture}
&
\begin{tikzpicture}
\begin{scope}
\tikzstyle
{
model
}
= [draw,black,very thick,inner sep=3.5pt,rounded corners=4pt,fill=blue!20,minimum width=4em,minimum height=1.5em,font=
\footnotesize
]
\tikzstyle
{
data
}
= [draw,black,very thick,inner sep=3.5pt,rounded corners=4pt,fill=green!20,minimum width=4em,minimum height=1.5em,font=
\footnotesize
]
\tikzstyle
{
word
}
= [inner sep=3.5pt,font=
\footnotesize
]
\node
[data]
(old) at (0,0)
{
旧数据
}
;
\node
[data]
(new) at ([xshift=3em]old.east)
{
新数据
}
;
\node
[model]
(old
_
model) at ([yshift=-4em]old.south)
{
旧模型
}
;
\node
[model]
(new
_
model) at ([yshift=-4em]new.south)
{
新模型
}
;
\node
[model]
(final
_
model) at ([xshift=2.55em,yshift=-4em]old
_
model.south)
{
最终模型
}
;
\draw
[->,thick] ([yshift=-0.2em]old.south) -- ([yshift=0.2em]old
_
model.north) node[pos=0.5,left,align=center,font=
\footnotesize
]
{
训练
}
;
\draw
[->,thick] ([yshift=-0.2em]new.south) -- ([yshift=0.2em]new
_
model.north) node[pos=0.5,right,align=center,font=
\footnotesize
]
{
训练
}
;
\draw
[->,thick] ([yshift=-0.2em]old
_
model.south) .. controls +(south:2.5em) and +(north:2.5em) .. ([xshift=-0.2em,yshift=0.2em]final
_
model.north);
\draw
[->,thick] ([yshift=-0.2em]new
_
model.south) .. controls +(south:2.5em) and +(north:2.5em) .. ([xshift=0.2em,yshift=0.2em]final
_
model.north);
\node
[word]
at ([yshift=2em]final
_
model.north)
{
插值
}
;
\node
[word]
at ([yshift=-2em]final
_
model.south)
{
(b)模型插值
}
;
%空白占位
\node
[word]
at ([xshift=-3em]old.west)
{}
;
\node
[word]
at ([xshift=3em]new.east)
{}
;
\end{scope}
\end{tikzpicture}
&
\begin{tikzpicture}
\begin{scope}
\tikzstyle
{
model
}
= [draw,black,very thick,inner sep=3.5pt,rounded corners=4pt,fill=blue!20,minimum width=4em,minimum height=1.5em,font=
\footnotesize
]
\tikzstyle
{
data
}
= [draw,black,very thick,inner sep=3.5pt,rounded corners=4pt,fill=green!20,minimum width=4em,minimum height=1.5em,font=
\footnotesize
]
\tikzstyle
{
word
}
= [inner sep=3.5pt,font=
\footnotesize
]
\node
[data]
(old) at (0,0)
{
旧数据
}
;
\node
[data]
(new) at ([xshift=3em]old.east)
{
新数据
}
;
\node
[model]
(final
_
model) at ([yshift=-8.8em]new.south)
{
最终模型
}
;
\draw
[->,thick] ([yshift=-0.2em]new.south) -- ([xshift=0.2em,yshift=0.2em]final
_
model.north) node[pos=0.5,right,align=center,font=
\footnotesize
]
{
目标
\\
函数1
}
;
\draw
[->,thick,dashed] ([yshift=-0.2em]old.south) .. controls +(south:4.5em) and +(north:4.5em) .. ([xshift=-0.2em,yshift=0.2em]final
_
model.north) node[align=center,font=
\footnotesize
] at ([xshift=-0.1em,yshift=-4em]old.south)
{
目标
\\
函数2
}
;
\node
[word]
at ([yshift=-2em,xshift=-2.55em]final
_
model.south)
{
(c)多目标训练
}
;
\end{scope}
\end{tikzpicture}
\end{tabular}
\ No newline at end of file
Chapter18/Figures/figure-memory-multi-use.tex
0 → 100644
查看文件 @
d4d708b2
\begin{tabular}
{
c c
}
\begin{tikzpicture}
\begin{scope}
% ,minimum height =1em,minimum width=2em
\tikzstyle
{
memory
}
= [draw,black,very thick,inner sep=2pt,rounded corners=0pt,fill=blue!20,minimum width=2em,minimum height=1.5em,anchor=west]
\tikzstyle
{
thread
}
= [very thick,inner sep=3.5pt,rounded corners=0pt,minimum width=3em,minimum height=1.5em]
\tikzstyle
{
word
}
= [inner sep=3.5pt,font=
\scriptsize
]
\node
[thread]
(one) at (0,0)
{}
;
\node
[word] at (one.north)
{
\scriptsize
数据1
}
;
\draw
[|-|,very thick]
(-1.5em,0em) -- (1.6em,0em);
\node
[thread,minimum width=5em]
(two) at ([yshift=-1em,xshift=2.6em]one.south east)
{}
;
\node
[word] at (two.north)
{
\scriptsize
数据2
}
;
\draw
[|-|,very thick]
(1.8em,-1.8em) -- (6.5em,-1.8em);
\node
[thread,minimum width=4em]
(three) at ([yshift=-1em,xshift=0.3em]two.south east)
{}
;
\node
[word] at (three.north)
{
\scriptsize
数据3
}
;
\draw
[|-|,very thick]
(5em,-1.8*2em) -- (9em,-1.8*2em);
\node
[thread,minimum width=2em]
(four) at ([yshift=-1em,xshift=1.2em]three.south east)
{}
;
\node
[word] at (four.north)
{
\scriptsize
数据4
}
;
\draw
[|-|,very thick]
(9.3em,-1.8*3em) -- (11em,-1.8*3em);
\node
[memory] (mone) at ([yshift=4em,xshift=1em]one.north)
{}
;
\node
[memory] (mtwo) at ([xshift=0em]mone.east)
{}
;
\node
[memory] (mthree) at ([xshift=0em]mtwo.east)
{}
;
\node
[memory] (mfour) at ([xshift=0em]mthree.east)
{}
;
\draw
[->,very thick]
(-0.8,-2.5) -- (4.7,-2.5);
\draw
[->,very thick]
(-0.8,-2.5) -- (-0.8,1);
\node
[word] (time) at ([yshift=-1.5em,xshift=0.3em]four.south)
{
\scriptsize
时间线
}
;
\node
[word] (time) at ([yshift=1.5em,xshift=-2.2em]one.west)
{
\scriptsize
数据
}
;
\draw
[->,dashed,line width=0.7pt] ([yshift=0.5em]one.north) .. controls +(north:1.5em) and +(south:1.5em) .. ([yshift=-0.2em]mone.south);
\draw
[->,dashed,line width=0.7pt] ([yshift=0.5em]two.north) -- ([yshift=-0.2em]mtwo.south);
\draw
[->,dashed,line width=0.7pt] ([yshift=0.5em,xshift=0.5em]three.north) .. controls +(north:3.5em) and +(south:4.5em) .. ([yshift=-0.2em]mthree.south);
\draw
[->,dashed,line width=0.7pt] ([yshift=0.5em]four.north) .. controls +(north:4.5em) and +(south:4.5em) .. ([yshift=-0.2em]mfour.south);
\node
[word] at ([yshift=-6em]two.south)
{
(a)显存不复用
}
;
%占位
\node
[word]
at ([xshift=1em]four.east)
{}
;
\node
[word] at ([xshift=1.5em,yshift=5.6em]one.north)
{
\scriptsize
显存
}
;
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=0.5em,rounded corners=1pt,minimum width=10em,minimum height=3.6em,fill=gray!10,drop shadow] at ([yshift=6.6em,xshift=1em]two.north)
{}
;
\end{pgfonlayer}
\end{scope}
\end{tikzpicture}
&
\begin{tikzpicture}
\begin{scope}
%\tikzstyle{memory} = [draw,black,very thick,inner sep=2pt,rounded corners=0pt,fill=blue!20,minimum width=2em,minimum height=1.5em,anchor=west]
%\tikzstyle{thread} = [draw,black,very thick,inner sep=3.5pt,rounded corners=0pt,fill=green!20,minimum width=3em,minimum height=1.5em]
\tikzstyle
{
memory
}
= [draw,black,very thick,inner sep=2pt,rounded corners=0pt,fill=blue!20,minimum width=2em,minimum height=1.5em,anchor=west]
\tikzstyle
{
thread
}
= [very thick,inner sep=3.5pt,rounded corners=0pt,minimum width=3em,minimum height=1.5em]
\tikzstyle
{
word
}
= [inner sep=3.5pt,font=
\scriptsize
]
\node
[thread]
(one) at (0,0)
{}
;
\node
[word] at (one.north)
{
\scriptsize
数据1
}
;
\draw
[|-|,very thick]
(-1.5em,0em) -- (1.6em,0em);
\node
[thread,minimum width=5em]
(two) at ([yshift=-1em,xshift=2.6em]one.south east)
{}
;
\node
[word] at (two.north)
{
\scriptsize
数据2
}
;
\draw
[|-|,very thick]
(1.8em,-1.8em) -- (6.5em,-1.8em);
\node
[thread,minimum width=4em]
(three) at ([yshift=-1em,xshift=0.3em]two.south east)
{}
;
\node
[word] at (three.north)
{
\scriptsize
数据3
}
;
\draw
[|-|,very thick]
(5em,-1.8*2em) -- (9em,-1.8*2em);
\node
[thread,minimum width=2em]
(four) at ([yshift=-1em,xshift=1.2em]three.south east)
{}
;
\node
[word] at (four.north)
{
\scriptsize
数据4
}
;
\draw
[|-|,very thick]
(9.3em,-1.8*3em) -- (11em,-1.8*3em);
\node
[memory] (mone) at ([yshift=4em,xshift=1em]one.north)
{}
;
\node
[memory] (mtwo) at ([xshift=0em]mone.east)
{}
;
\node
[memory,fill=white,minimum width=4em] (mthree) at ([xshift=0em]mtwo.east)
{}
;
%\node [memory,fill=white] (mfour) at ([xshift=0em]mthree.east) {};
\draw
[->,very thick]
(-0.8,-2.5) -- (4.7,-2.5);
\draw
[->,very thick]
(-0.8,-2.5) -- (-0.8,1);
\node
[word] (time) at ([yshift=-1.5em,xshift=0.3em]four.south)
{
\scriptsize
时间线
}
;
\node
[word] (time) at ([yshift=1.5em,xshift=-2.2em]one.west)
{
\scriptsize
数据
}
;
\draw
[->,dashed,line width=0.7pt] ([yshift=0.5em]one.north) .. controls +(north:1.5em) and +(south:1.5em) .. ([yshift=-0.2em,xshift=-0.4em]mone.south);
\draw
[->,dashed,line width=0.7pt] ([yshift=0.5em]two.north) .. controls +(north:3.5em) and +(south:3.5em) .. ([yshift=-0.2em,xshift=0.4em]mone.south);
\draw
[->,dashed,line width=0.7pt] ([yshift=0.5em,xshift=0.5em]three.north) .. controls +(north:3.5em) and +(south:3.5em) .. ([yshift=-0.2em,xshift=-0.4em]mtwo.south);
\draw
[->,dashed,line width=0.7pt] ([yshift=0.5em]four.north) .. controls +(north:4.5em) and +(south:3.5em) .. ([yshift=-0.2em,xshift=0.4em]mtwo.south);
\node
[word] at ([xshift=1.5em,yshift=5.6em]one.north)
{
\scriptsize
显存
}
;
\node
[word] at ([yshift=-6em]two.south)
{
(b)显存复用
}
;
\begin{pgfonlayer}
{
background
}
\node
[rectangle,inner sep=0.5em,rounded corners=1pt,minimum width=10em,minimum height=3.6em,fill=gray!10,drop shadow] at ([yshift=6.6em,xshift=1em]two.north)
{}
;
\end{pgfonlayer}
\end{scope}
\end{tikzpicture}
\end{tabular}
\ No newline at end of file
Chapter18/Figures/figure-translation-interfered.tex
0 → 100644
查看文件 @
d4d708b2
%%% outline
%-------------------------------------------------------------------------
\begin{tikzpicture}
[scale=0.8]
\tikzstyle
{
every node
}
=[scale=0.8]
\tikzstyle
{
node
}
=[rounded corners=4pt, draw,minimum width=3em, minimum height=2em, drop shadow=
{
shadow xshift=0.14em, shadow yshift=-0.14em
}
]
\begin{scope}
%\draw[fill=yellow!20] (-5em, 0) -- (-6em, 1em) -- (5em, 1em) -- (6em, 0em) -- (5em, -1em) -- (-6em, -1em) -- (-5em, 0em);
%\draw[fill=yellow!20] (-5em, 10em) -- (-6em, 11.2em) -- (5em, 11.2em) -- (6em, 10em) -- (5em,8.8em) -- (-6em, 8.8em) -- (-5em, 10em);
\node
[]
(n1) at (0,0)
{
小牛翻译的总部在哪里?
}
;
\node
[node,fill=blue!20]
(c1) at (0, 5em)
{
\scriptsize\bfnew
{
机器翻译
}}
;
\node
[align=left]
(n2) at (0,10em)
{
Where is the headquarters
\\
of
{
\color
{
red
}
Mavericks Translation
}
?
}
;
\node
[draw,single arrow,inner ysep=0.3em, minimum height=2.4em, rotate=90,fill=cyan!40,very thin] (arrow1) at (0, 2.4em)
{}
;
\node
[draw,single arrow,inner ysep=0.3em, minimum height=2em, rotate=90,fill=cyan!40,very thin] (arrow1) at (0, 7.2em)
{}
;
\node
[font=\Large,text=red]
at (0, -2em)
{
\ding
{
56
}}
;
\end{scope}
\begin{scope}
[xshift=14em]
%\draw[fill=yellow!20] (-5em, 0) -- (-6em, 1em) -- (5em, 1em) -- (6em, 0em) -- (5em, -1em) -- (-6em, -1em) -- (-5em, 0em);
%\draw[fill=yellow!20] (-5em, 10em) -- (-6em, 11.2em) -- (5em, 11.2em) -- (6em, 10em) -- (5em,8.8em) -- (-6em, 8.8em) -- (-5em, 10em);
\node
[]
(n3) at (0,0)
{
小牛翻译的总部在哪里?
}
;
\node
[node,fill=blue!20]
(c2) at (-3em, 5em)
{
\scriptsize\bfnew
{
机器翻译
}}
;
\node
[node,fill=red!20]
(c3) at (3em, 5em)
{
\scriptsize\bfnew
{
术语词典
}}
;
\node
[font=\scriptsize,draw,inner sep=3pt,fill=red!20,minimum height=1em]
(w1) at (9em, 6.5em)
{
小牛翻译
}
;
\node
[font=\scriptsize,draw,inner sep=3pt,fill=red!20,minimum height=1em]
(w2) at (9em, 3.5em)
{
NiuTrans
}
;
\node
[font=\Large]
(add) at (0em, 5em)
{
+
}
;
\node
[align=left]
(n4) at (0,10em)
{
Where is the headquarters
\\
of
{
\color
{
red
}
NiuTrans
}
?
}
;
\node
[draw,single arrow,inner ysep=0.3em, minimum height=2.4em, rotate=90,fill=cyan!40,very thin] (arrow1) at (0, 2.4em)
{}
;
\node
[draw,single arrow,inner ysep=0.3em, minimum height=2em, rotate=90,fill=cyan!40,very thin] (arrow1) at (0, 7.2em)
{}
;
\draw
[dash pattern=on 1pt off 0.5pt,black,line width=1.2pt,->, out=180, in=45]
([xshift=-0.2em]w1.180) to ([xshift=0.2em]c3.20);
\draw
[dash pattern=on 1pt off 0.5pt,black,line width=1.2pt,->,out=180,in=-45]
([xshift=-0.2em]w2.180) to ([xshift=0.2em]c3.-20);
\node
[font=\Large,text=ugreen]
at (0, -2em)
{
\ding
{
52
}}
;
\end{scope}
\end{tikzpicture}
Chapter18/chapter18.tex
查看文件 @
d4d708b2
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论