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
f7854092
Commit
f7854092
authored
Jan 12, 2021
by
曹润柘
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'caorunzhe' 到 'master'
Caorunzhe 查看合并请求
!882
parents
cdde171b
e151a3d9
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
238 行增加
和
153 行删除
+238
-153
Chapter13/Figures/figure-network-with-dropout.tex
+78
-29
Chapter13/Figures/figure-reinforcement-learning-method-based-on-actor-critic.tex
+4
-4
Chapter15/Figures/figure-multi-scale-local-modeling.tex
+9
-8
Chapter15/Figures/figure-relative-position-weight.tex
+34
-0
Chapter15/chapter15.tex
+0
-0
Chapter2/Figures/figure-full-probability-word-segmentation-1.tex
+19
-19
Chapter2/Figures/figure-full-probability-word-segmentation-2.tex
+22
-22
Chapter2/Figures/figure-no-smoothing&smoothed-probability-distributions.tex
+3
-3
Chapter2/Figures/figure-self-information-function.tex
+1
-1
Chapter2/Figures/figure-the-dice-game-model.tex
+12
-12
Chapter2/Figures/figure-the-dice-game.tex
+27
-27
Chapter2/Figures/figure-the-dice-game2.tex
+27
-27
bibliography.bib
+1
-1
structure.tex
+1
-0
没有找到文件。
Chapter13/Figures/figure-network-with-dropout.tex
查看文件 @
f7854092
...
...
@@ -2,7 +2,7 @@
\begin{tikzpicture}
\def\neuronsep
{
1
}
\tikzstyle
{
neuronnode
}
= [minimum size=1
em,circle,draw,thick,ublue,inner sep=1
pt, fill=white,align=center]
\tikzstyle
{
neuronnode
}
= [minimum size=1
.5em,circle,draw=ublue,very thick,inner sep=0
pt, fill=white,align=center]
%standard
...
...
@@ -11,67 +11,115 @@
}
\foreach
\n
in
{
1,...,4
}{
\node
[neuronnode] (neuron1
\n
) at (1.
2
\neuronsep
,
\n
*
\neuronsep
)
{}
;
\node
[neuronnode] (neuron1
\n
) at (1.
5
\neuronsep
,
\n
*
\neuronsep
)
{}
;
}
\foreach
\n
in
{
1,...,4
}{
\node
[neuronnode] (neuron2
\n
) at (
2.4
*
\neuronsep
,
\n
*
\neuronsep
)
{}
;
\node
[neuronnode] (neuron2
\n
) at (
3
*
\neuronsep
,
\n
*
\neuronsep
)
{}
;
}
\node
[neuronnode] (neuron3) at (
3.6
*
\neuronsep
,2.5 *
\neuronsep
)
{}
;
\node
[neuronnode] (neuron3) at (
4.5
*
\neuronsep
,2.5 *
\neuronsep
)
{}
;
\foreach
\n
in
{
1,...,4
}{
\foreach
\m
in
{
1,...,4
}{
\draw
[->] (neuron0
\n
.east) -- (neuron1
\m
.west);
\foreach
\n
/
\o
in
{
1/180,2/165,3/150,4/135
}{
\draw
[->,line width=0.2mm] (neuron0
\n
.east) -- (neuron11.
\o
);
}
\foreach
\n
/
\o
in
{
1/220,2/190,3/170,4/140
}{
\foreach
\m
in
{
2,3
}{
\draw
[->,line width=0.2mm] (neuron0
\n
.east) -- (neuron1
\m
.
\o
);
}
}
\foreach
\n
in
{
1,...,4
}{
\foreach
\m
in
{
1,...,4
}{
\draw
[->] (neuron1
\n
.east) -- (neuron2
\m
.west);
\foreach
\n
/
\o
in
{
1/225,2/210,3/195,4/180
}{
\draw
[->,line width=0.2mm] (neuron0
\n
.east) -- (neuron14.
\o
);
}
%\foreach \n in {1,...,4}{
% \foreach \m in {1,...,4}{
% \draw [->,line width=0.2mm] (neuron1\n.east) -- (neuron2\m.west);
% }
%}
\foreach
\n
/
\o
in
{
1/180,2/165,3/150,4/135
}{
\draw
[->,line width=0.2mm] (neuron1
\n
.east) -- (neuron21.
\o
);
}
\foreach
\n
/
\o
in
{
1/220,2/190,3/170,4/140
}{
\foreach
\m
in
{
2,3
}{
\draw
[->,line width=0.2mm] (neuron1
\n
.east) -- (neuron2
\m
.
\o
);
}
}
\foreach
\n
in
{
1,...,4
}{
\draw
[->] (neuron2
\n
.east) -- (neuron3.west);
\foreach
\n
/
\o
in
{
1/225,2/210,3/195,4/180
}{
\draw
[->,line width=0.2mm] (neuron1
\n
.east) -- (neuron24.
\o
);
}
\foreach
\n
/
\o
in
{
1/220,2/190,3/170,4/140
}{
\draw
[->,line width=0.2mm] (neuron2
\n
.east) -- (neuron3.
\o
);
}
%drop
%layer1
\foreach
\n
in
{
1,3,4
}{
\node
[neuronnode] (neuron4
\n
) at (
5
*
\neuronsep
,
\n
*
\neuronsep
)
{}
;
\node
[neuronnode] (neuron4
\n
) at (
7
*
\neuronsep
,
\n
*
\neuronsep
)
{}
;
}
\node
[neuronnode,dashed] (neuron42) at (
5
*
\neuronsep
,2 *
\neuronsep
)
{}
;
\node
[neuronnode,dashed] (neuron42) at (
7
*
\neuronsep
,2 *
\neuronsep
)
{}
;
%layer1
\foreach
\n
in
{
1,2,4
}{
\node
[neuronnode] (neuron5
\n
) at (
6.2
*
\neuronsep
,
\n
*
\neuronsep
)
{}
;
\node
[neuronnode] (neuron5
\n
) at (
8.5
*
\neuronsep
,
\n
*
\neuronsep
)
{}
;
}
\node
[neuronnode,dashed] (neuron53) at (
6.2
*
\neuronsep
,3 *
\neuronsep
)
{}
;
\node
[neuronnode,dashed] (neuron53) at (
8.5
*
\neuronsep
,3 *
\neuronsep
)
{}
;
%layer3
\foreach
\n
in
{
1,4
}{
\node
[neuronnode] (neuron6
\n
) at (
7.4
*
\neuronsep
,
\n
*
\neuronsep
)
{}
;
\node
[neuronnode] (neuron6
\n
) at (
10
*
\neuronsep
,
\n
*
\neuronsep
)
{}
;
}
\node
[neuronnode,dashed] (neuron62) at (
7.4
*
\neuronsep
,2 *
\neuronsep
)
{}
;
\node
[neuronnode,dashed] (neuron63) at (
7.4
*
\neuronsep
,3 *
\neuronsep
)
{}
;
\node
[neuronnode,dashed] (neuron62) at (
10
*
\neuronsep
,2 *
\neuronsep
)
{}
;
\node
[neuronnode,dashed] (neuron63) at (
10
*
\neuronsep
,3 *
\neuronsep
)
{}
;
%layer4
\node
[neuronnode] (neuron7) at (
8.6
*
\neuronsep
,2.5 *
\neuronsep
)
{}
;
\node
[neuronnode] (neuron7) at (
11.5
*
\neuronsep
,2.5 *
\neuronsep
)
{}
;
\foreach
\n
in
{
1,3,4
}{
\foreach
\m
in
{
1,2,4
}{
\draw
[->] (neuron4
\n
.east) -- (neuron5
\m
.west);
}
%\foreach \n in {1,3,4}{
% \foreach \m in {1,2,4}{
% \draw [->,line width=0.2mm] (neuron4\n.east) -- (neuron5\m.west);
% }
%}
\foreach
\n
/
\o
in
{
1/180,3/150,4/135
}{
\draw
[->,line width=0.2mm] (neuron4
\n
.east) -- (neuron51.
\o
);
}
\foreach
\n
in
{
1,2,4
}{
\foreach
\m
in
{
1,4
}{
\draw
[->
] (neuron5
\n
.east) -- (neuron6
\m
.west
);
\foreach
\n
/
\o
in
{
1/220,3/170,4/140
}{
\foreach
\m
in
{
2
}{
\draw
[->
,line width=0.2mm] (neuron4
\n
.east) -- (neuron5
\m
.
\o
);
}
}
\foreach
\n
in
{
1,4
}{
\draw
[->] (neuron6
\n
.east) -- (neuron7.west);
\foreach
\n
/
\o
in
{
1/225,3/195,4/180
}{
\draw
[->,line width=0.2mm] (neuron4
\n
.east) -- (neuron54.
\o
);
}
%\foreach \n in {1,2,4}{
% \foreach \m in {1,4}{
% \draw [->,line width=0.2mm] (neuron5\n.east) -- (neuron6\m.west);
% }
%}
\foreach
\n
/
\o
in
{
1/180,2/165,4/135
}{
\draw
[->,line width=0.2mm] (neuron5
\n
.east) -- (neuron61.
\o
);
}
\foreach
\n
/
\o
in
{
1/225,2/210,4/180
}{
\draw
[->,line width=0.2mm] (neuron5
\n
.east) -- (neuron64.
\o
);
}
%\foreach \n in {1,4}{
% \draw [->,line width=0.2mm] (neuron6\n.east) -- (neuron7.west);
%}
\foreach
\n
/
\o
in
{
1/220,4/140
}{
\draw
[->,line width=0.2mm] (neuron6
\n
.east) -- (neuron7.
\o
);
}
\end{tikzpicture}
\ No newline at end of file
Chapter13/Figures/figure-reinforcement-learning-method-based-on-actor-critic.tex
查看文件 @
f7854092
\begin{tikzpicture}
\node
[anchor=west,thick,inner sep=0mm,minimum height=4em,minimum width=
5.5
em,rounded corners=15pt,align=left,draw,fill=red!15]
(n1) at (0,0)
{
Decoder
\\
Encoder
}
;
\node
[anchor=west,thick,inner sep=0mm,minimum height=4em,minimum width=
8
em,rounded corners=15pt,align=left,draw,fill=red!15]
(n1) at (0,0)
{
Decoder
\\
Encoder
}
;
\node
[anchor=west,thick,inner sep=0mm,minimum height=4em,minimum width=
5.5em,rounded corners=15pt,align=left,draw,fill=green!15]
(n2) at ([xshift=10
em,yshift=0em]n1.east)
{
Decoder
\\
Encoder
}
;
\node
[anchor=west,thick,inner sep=0mm,minimum height=4em,minimum width=
8em,rounded corners=15pt,align=left,draw,fill=green!15]
(n2) at ([xshift=14
em,yshift=0em]n1.east)
{
Decoder
\\
Encoder
}
;
\node
[anchor=south,inner sep=0mm,font=\small]
(a1) at ([xshift=0em,yshift=1em]n1.north)
{
演员
$
p
$}
;
...
...
@@ -24,8 +24,8 @@
%\draw [->,dotted,very thick] ([xshift=0em,yshift=0em]n1.east) .. controls ([xshift=3em,yshift=-1em]n1.-90) and ([xshift=-3em,yshift=-1em]n2.-90) .. (n2.west);
\node
[anchor=west,inner sep=0mm]
(n3) at ([xshift=
2
.1em,yshift=1em]n1.east)
{$
Q
_
1
,Q
_
2
,
\ldots
,Q
_
J
$}
;
\node
[anchor=west,inner sep=0mm]
(n4) at ([xshift=
2
.9em,yshift=-1em]n1.east)
{$
\tilde
{{
y
}}_
1
,
\tilde
{{
y
}}_
2
,
\ldots
,
\tilde
{{
y
}}_
J
$}
;
\node
[anchor=west,inner sep=0mm]
(n3) at ([xshift=
4
.1em,yshift=1em]n1.east)
{$
Q
_
1
,Q
_
2
,
\ldots
,Q
_
J
$}
;
\node
[anchor=west,inner sep=0mm]
(n4) at ([xshift=
4
.9em,yshift=-1em]n1.east)
{$
\tilde
{{
y
}}_
1
,
\tilde
{{
y
}}_
2
,
\ldots
,
\tilde
{{
y
}}_
J
$}
;
\draw
[->,thick] ([xshift=-0.1em,yshift=0.6em]n2.west) -- ([xshift=0.1em,yshift=0.6em]n1.east);
\draw
[->,thick] ([xshift=0.1em,yshift=-0.6em]n1.east) -- ([xshift=-0.1em,yshift=-0.6em]n2.west);
...
...
Chapter15/Figures/figure-multi-scale-local-modeling.tex
查看文件 @
f7854092
\begin{tikzpicture}
\begin{scope}
\tikzstyle
{
cirnode
}
=[
circle,minimum size=3em,font=
\footnotesize
,draw
]
\tikzstyle
{
cirnode
}
=[
rectangle,rounded corners=2pt,minimum height=2em,minimum width=3em,font=
\footnotesize
,draw=blue!50!white!50,fill=blue!20,thick
]
\tikzstyle
{
recnode
}
=[rectangle,rounded corners=2pt,inner sep=0mm,minimum height=1.8em,minimum width=6em]
\node
[anchor=west,cirnode] (n1) at (0, 0)
{$
\mathbi
{
h
}_{
i
-
2
}^
l
$}
;
...
...
@@ -11,24 +11,24 @@
\node
[anchor=west,cirnode] (n5) at ([xshift=1.2em,yshift=0em]n4.east)
{$
\mathbi
{
h
}_{
i
+
2
}^
l
$}
;
\begin{pgfonlayer}
{
background
}
\node
[anchor=center,red!30,minimum height=
4
.5em,minimum width=21em,very thick,draw] (c3) at ([xshift=0em,yshift=0em]n3.center)
{}
;
\node
[anchor=center,ugreen!30,minimum height=
4em,minimum width=12.5
em,very thick,draw] (c2) at ([xshift=0em,yshift=0em]n3.center)
{}
;
\node
[anchor=center,orange!30,minimum height=
3.5em,minimum width=3.6
em,very thick,draw] (c1) at ([xshift=0em,yshift=0em]n3.center)
{}
;
\node
[anchor=center,red!30,minimum height=
3
.5em,minimum width=21em,very thick,draw] (c3) at ([xshift=0em,yshift=0em]n3.center)
{}
;
\node
[anchor=center,ugreen!30,minimum height=
3em,minimum width=13
em,very thick,draw] (c2) at ([xshift=0em,yshift=0em]n3.center)
{}
;
\node
[anchor=center,orange!30,minimum height=
2.5em,minimum width=4
em,very thick,draw] (c1) at ([xshift=0em,yshift=0em]n3.center)
{}
;
\end{pgfonlayer}
\node
[anchor=south,recnode,fill=red!20] (r1) at ([xshift=-3.5em,yshift=2.5em]n2.north)
{$
\textrm
{
head
}_
1
$}
;
\node
[anchor=south,recnode,fill=orange!20] (r2) at ([xshift=0em,yshift=2.5em]n3.north)
{$
\textrm
{
head
}_
2
$}
;
\node
[anchor=south,recnode,fill=ugreen!20] (r3) at ([xshift=3.5em,yshift=2.5em]n4.north)
{$
\textrm
{
head
}_
3
$}
;
\node
[anchor=south,cirnode] (n6) at ([xshift=0em,yshift=1em]r2.north)
{$
\mathbi
{
h
}_{
i
}^{
l
+
1
}$}
;
\node
[anchor=south,cirnode] (n6) at ([xshift=0em,yshift=1
.5
em]r2.north)
{$
\mathbi
{
h
}_{
i
}^{
l
+
1
}$}
;
\draw
[->,very thick,orange!30] ([xshift=0em,yshift=0em]c1.north) -- ([xshift=0em,yshift=0em]r2.south);
\draw
[->,very thick,ugreen!30] ([xshift=3em,yshift=0em]c2.north)..controls +(north:1.5em) and +(south:1.5em)..([xshift=0em,yshift=0em]r3.south);
\draw
[->,very thick,red!30] ([xshift=-3em,yshift=0em]c3.north)..controls +(north:1.5em) and +(south:1.5em)..([xshift=0em,yshift=0em]r1.south);
\draw
[->
] ([xshift=0em,yshift=0em]r1.north) -- ([xshift=0em,yshift=0em]n6.south west
);
\draw
[->] ([xshift=0em,yshift=0em]r2.north) -- ([xshift=0em,yshift=0em]n6.south);
\draw
[->
] ([xshift=0em,yshift=0em]r3.north) -- ([xshift=0em,yshift=0em]n6.south east
);
\draw
[->
,red!30,very thick] ([xshift=0em,yshift=0em]r1.north) -- ([xshift=-0.1em,yshift=-0.05em]n6.south
);
\draw
[->
,orange!30,very thick
] ([xshift=0em,yshift=0em]r2.north) -- ([xshift=0em,yshift=0em]n6.south);
\draw
[->
,ugreen!30,very thick] ([xshift=0em,yshift=0em]r3.north) -- ([xshift=0.1em,yshift=-0.05em]n6.south
);
\end{scope}
\end{tikzpicture}
\ No newline at end of file
Chapter15/Figures/figure-relative-position-weight.tex
0 → 100644
查看文件 @
f7854092
\begin{tikzpicture}
\tikzstyle
{
node1
}
= [anchor=center,draw,minimum height=2em,minimum width=2em,inner sep=0pt,fill=green!80]
\tikzstyle
{
node2
}
= [anchor=center,draw,minimum height=2em,minimum width=2em,inner sep=0pt,fill=green!40]
\tikzstyle
{
node3
}
= [anchor=center,draw,minimum height=2em,minimum width=2em,inner sep=0pt,fill=green!20]
\tikzstyle
{
node4
}
= [anchor=center,draw,minimum height=2em,minimum width=2em,inner sep=0pt]
\tikzstyle
{
node5
}
= [anchor=center,draw,minimum height=2em,minimum width=2em,inner sep=0pt,fill=red!20]
\tikzstyle
{
node6
}
= [anchor=center,draw,minimum height=2em,minimum width=2em,inner sep=0pt,fill=red!40]
\tikzstyle
{
node7
}
= [anchor=center,draw,minimum height=2em,minimum width=2em,inner sep=0pt,fill=red!80]
\begin{scope}
[scale=1.0]
\foreach
\i
/
\j
/
\k
/
\z
in
{
0/6/1/-3, 1/6/1/-3, 2/6/1/-3, 3/6/1/-3, 4/6/2/-2, 5/6/3/-1, 6/6/4/0,
0/5/1/-3, 1/5/1/-3, 2/5/1/-3, 3/5/2/-2, 4/5/3/-1, 5/5/4/0, 6/5/5/1,
0/4/1/-3, 1/4/1/-3, 2/4/2/-2, 3/4/3/-1, 4/4/4/0, 5/4/5/1, 6/4/6/2,
0/3/1/-3, 1/3/2/-2, 2/3/3/-1, 3/3/4/0, 4/3/5/1, 5/3/6/2, 6/3/7/3,
0/2/2/-2, 1/2/3/-1, 2/2/4/0, 3/2/5/1, 4/2/6/2, 5/2/7/3, 6/2/7/3,
0/1/3/-1, 1/1/4/0, 2/1/5/1, 3/1/6/2, 4/1/7/3, 5/1/7/3, 6/1/7/3,
0/0/4/0, 1/0/5/1, 2/0/6/2, 3/0/7/3, 4/0/7/3, 5/0/7/3, 6/0/7/3
}
\node
[node\k]
(a
\i\j
) at (2*1em*
\i
+ 0*0em,2*1em*
\j
+ 0*0em)
{$
\mathbi
{
w
}_{
\z
}$}
;
\foreach
\i
/
\j
/
\k
in
{
0/6/1, 0/5/2, 0/4/3, 0/3/4, 0/2/5, 0/1/6, 0/0/7
}
\node
[anchor=east]
(n
\k
) at ([xshift=-0.5em,yshift=0em]a
\i\j
.west)
{
\j
}
;
\foreach
\i
/
\j
/
\k
in
{
0/0/8, 1/0/9, 2/0/10, 3/0/11, 4/0/12, 5/0/13, 6/0/14
}
\node
[anchor=north]
(n
\k
) at ([xshift=-0em,yshift=-0.5em]a
\i\j
.south)
{
\i
}
;
%\node [anchor=north] (n1) at ([xshift=0em,yshift=0em]a00.south west) {};
\end{scope}
\end{tikzpicture}
\ No newline at end of file
Chapter15/chapter15.tex
查看文件 @
f7854092
差异被折叠。
点击展开。
Chapter2/Figures/figure-full-probability-word-segmentation-1.tex
查看文件 @
f7854092
...
...
@@ -13,32 +13,32 @@
{
\begin{scope}
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s1) at (0,0)
{{
88
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{{
87
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{{
45
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s4) at ([xshift=0.
2
cm]s3.east)
{{
47
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
2
cm]s4.east)
{{
100
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{{
15
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s2) at ([xshift=0.
7
cm]s1.east)
{{
87
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s3) at ([xshift=0.
7
cm]s2.east)
{{
45
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s4) at ([xshift=0.
7
cm]s3.east)
{{
47
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
7
cm]s4.east)
{{
100
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
7
cm]s5.east)
{{
15
}}
;
\end{scope}
\begin{scope}
[yshift=-1cm]
\begin{scope}
[yshift=-1
.2
cm]
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s1) at (0,0)
{{
5
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s2) at ([xshift=0.
2
cm]s1.east)
{{
230
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{{
7
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s4) at ([xshift=0.
2
cm]s3.east)
{{
234
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
2
cm]s4.east)
{{
500
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{{
39
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s7) at ([xshift=0.
2
cm]s6.east)
{{
100
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s8) at ([xshift=0.
2
cm]s7.east)
{{
15
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s2) at ([xshift=0.
7
cm]s1.east)
{{
230
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s3) at ([xshift=0.
7
cm]s2.east)
{{
7
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s4) at ([xshift=0.
7
cm]s3.east)
{{
234
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
7
cm]s4.east)
{{
500
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
7
cm]s5.east)
{{
39
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s7) at ([xshift=0.
7
cm]s6.east)
{{
100
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s8) at ([xshift=0.
7
cm]s7.east)
{{
15
}}
;
\end{scope}
\begin{scope}
[yshift=-2cm]
\begin{scope}
[yshift=-2
.4
cm]
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s1) at (0,0)
{{
975
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{{
7
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s3) at ([xshift=0.
2
cm]s2.east)
{{
234
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s4) at ([xshift=0.
2
cm]s3.east)
{{
294
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
2
cm]s4.east)
{{
69
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{{
15
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s2) at ([xshift=0.
7
cm]s1.east)
{{
7
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s3) at ([xshift=0.
7
cm]s2.east)
{{
234
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s4) at ([xshift=0.
7
cm]s3.east)
{{
294
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
7
cm]s4.east)
{{
69
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
7
cm]s5.east)
{{
15
}}
;
\end{scope}
...
...
Chapter2/Figures/figure-full-probability-word-segmentation-2.tex
查看文件 @
f7854092
...
...
@@ -9,34 +9,34 @@
\begin{tikzpicture}
\begin{scope}
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s1) at (0,0)
{
这
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{
是
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{
一
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s4) at ([xshift=0.
2
cm]s3.east)
{
种
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
2
cm]s4.east)
{
\small
{
数据
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{
。
}
;
\node
[anchor=west]
(s7) at ([xshift=0.
2
cm]s6.east)
{
...
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s2) at ([xshift=0.
55
cm]s1.east)
{
是
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s3) at ([xshift=0.
55
cm]s2.east)
{
一
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s4) at ([xshift=0.
55
cm]s3.east)
{
种
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
55
cm]s4.east)
{
\small
{
数据
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
55
cm]s5.east)
{
。
}
;
\node
[anchor=west]
(s7) at ([xshift=0.
55
cm]s6.east)
{
...
}
;
\end{scope}
\begin{scope}
[yshift=-1cm]
\begin{scope}
[yshift=-1
.2
cm]
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s1) at (0,0)
{
现在
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s2) at ([xshift=0.
2
cm]s1.east)
{
已经
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{
有
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s4) at ([xshift=0.
2
cm]s3.east)
{
不少
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
2
cm]s4.east)
{
\small
{
可
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{
用
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s7) at ([xshift=0.
2
cm]s6.east)
{
数据
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s8) at ([xshift=0.
2
cm]s7.east)
{
。
}
;
\node
[anchor=west]
(s9) at ([xshift=0.
2
cm]s8.east)
{
...
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s2) at ([xshift=0.
55
cm]s1.east)
{
已经
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s3) at ([xshift=0.
55
cm]s2.east)
{
有
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s4) at ([xshift=0.
55
cm]s3.east)
{
不少
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
55
cm]s4.east)
{
\small
{
可
}}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
55
cm]s5.east)
{
用
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s7) at ([xshift=0.
55
cm]s6.east)
{
数据
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s8) at ([xshift=0.
55
cm]s7.east)
{
。
}
;
\node
[anchor=west]
(s9) at ([xshift=0.
55
cm]s8.east)
{
...
}
;
\end{scope}
\begin{scope}
[yshift=-2cm]
\begin{scope}
[yshift=-2
.4
cm]
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s1) at (0,0)
{
确实
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{
有
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s3) at ([xshift=0.
2
cm]s2.east)
{
很
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s4) at ([xshift=0.
2
cm]s3.east)
{
多
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
2
cm]s4.east)
{
疑问
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{
。
}
;
\node
[anchor=west]
(s7) at ([xshift=0.
2
cm]s6.east)
{
...
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s2) at ([xshift=0.
55
cm]s1.east)
{
有
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s3) at ([xshift=0.
55
cm]s2.east)
{
很
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s4) at ([xshift=0.
55
cm]s3.east)
{
多
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt, inner sep=0]
(s5) at ([xshift=0.
55
cm]s4.east)
{
疑问
}
;
\node
[anchor=west,draw,very thick,minimum size=25pt]
(s6) at ([xshift=0.
55
cm]s5.east)
{
。
}
;
\node
[anchor=west]
(s7) at ([xshift=0.
55
cm]s6.east)
{
...
}
;
\end{scope}
\end{tikzpicture}
...
...
Chapter2/Figures/figure-no-smoothing&smoothed-probability-distributions.tex
查看文件 @
f7854092
\definecolor
{
ublue
}{
rgb
}{
0.152,0.250,0.545
}
\begin{tikzpicture}
\begin{axis}
[
width=1
0
cm, height=4.5cm,
width=1
2
cm, height=4.5cm,
symbolic x coords=
{
未抽取词,do,want,what,am,people,look
}
,
xtick=data,
ytick=
{
0,0.05,0.1,0.15,0.2,0.25
}
,
xlabel=
{
低概率词汇
}
,
ylabel=
{
词汇概率
}
,
legend pos=outer north east,
xlabel style=
{
align=right,xshift=
5.3
cm,yshift=0.8cm,font=
\footnotesize
}
,
xlabel style=
{
align=right,xshift=
6.5
cm,yshift=0.8cm,font=
\footnotesize
}
,
ylabel style=
{
rotate=-90,yshift=2cm,xshift=1cm,font=
\footnotesize
}
,
y tick style=
{
opacity=0
}
,
x tick style=
{
opacity=0
}
,
...
...
@@ -24,7 +24,7 @@
ymin=0,
ymax=0.25]
\addplot
[ybar,bar shift=-2mm,bar width=4mm,fill=blue!40,draw=blue!40,area legend] coordinates
{
(未抽取词,0) (do,0.05) (want,0.05) (what,0.05) (am,0.1) (people,0.15) (look,0.2)
}
;
\addplot
[ybar,bar shift=2mm,bar width=4mm,fill=red!40,draw=red!40,area legend] coordinates
{
(未抽取词,0.03) (do,0.062) (want,0.062) (what,0.062) (am,0.09) (people,0.122) (look,0.138)
}
;
\addplot
[ybar,bar shift=2
.15
mm,bar width=4mm,fill=red!40,draw=red!40,area legend] coordinates
{
(未抽取词,0.03) (do,0.062) (want,0.062) (what,0.062) (am,0.09) (people,0.122) (look,0.138)
}
;
\legend
{
未平滑,平滑后
}
\end{axis}
\end{tikzpicture}
...
...
Chapter2/Figures/figure-self-information-function.tex
查看文件 @
f7854092
\definecolor
{
ublue
}{
rgb
}{
0.152,0.250,0.545
}
\begin{tikzpicture}
\begin{axis}
[
width=1
2
cm,
width=1
4
cm,
height=4cm,
xlabel=
{{$
\funp
{
P
}
(
x
)
$}}
,
ylabel=
{{$
\funp
{
I
}
(
x
)
$}}
,
...
...
Chapter2/Figures/figure-the-dice-game-model.tex
查看文件 @
f7854092
...
...
@@ -10,55 +10,55 @@
\begin{scope}
{
\footnotesize
\foreach
\i
in
{
1,...,5
}{
\node
[draw,thick,minimum size=10pt] at (
\i
,0)
{
1
}
;
\node
[draw,thick,minimum size=10pt] at (
1.2*
\i
,0)
{
1
}
;
}
}
\node
[anchor=west] at (
3
3em,0)
{$
\funp
{
P
}
(
\text
{
1
}
)
=
5
/
30
$}
;
\node
[anchor=west] at (
4
3em,0)
{$
\funp
{
P
}
(
\text
{
1
}
)
=
5
/
30
$}
;
\end{scope}
\begin{scope}
[yshift=-2.5em]
{
\footnotesize
\foreach
\i
in
{
1,...,4
}{
\node
[draw,thick,minimum size=10pt] at (
\i
,0)
{{
\color
{
red
}
2
}}
;
\node
[draw,thick,minimum size=10pt] at (
1.2*
\i
,0)
{{
\color
{
red
}
2
}}
;
}
}
\node
[anchor=west] at (
3
3em,0)
{$
\funp
{
P
}
(
\text
{
2
}
)
=
4
/
30
$}
;
\node
[anchor=west] at (
4
3em,0)
{$
\funp
{
P
}
(
\text
{
2
}
)
=
4
/
30
$}
;
\end{scope}
\begin{scope}
[yshift=-5.0em]
{
\footnotesize
\foreach
\i
in
{
1,...,6
}{
\node
[draw,thick,minimum size=10pt] at (
\i
,0)
{{
\color
{
ublue
}
3
}}
;
\node
[draw,thick,minimum size=10pt] at (
1.2*
\i
,0)
{{
\color
{
ublue
}
3
}}
;
}
}
\node
[anchor=west] at (
3
3em,0)
{$
\funp
{
P
}
(
\text
{
3
}
)
=
6
/
30
$}
;
\node
[anchor=west] at (
4
3em,0)
{$
\funp
{
P
}
(
\text
{
3
}
)
=
6
/
30
$}
;
\end{scope}
\begin{scope}
[yshift=-7.5em]
{
\footnotesize
\foreach
\i
in
{
1,...,12
}{
\node
[draw,thick,minimum size=10pt] at (
\i
,0)
{{
\color
{
ugreen
}
4
}}
;
\node
[draw,thick,minimum size=10pt] at (
1.2*
\i
,0)
{{
\color
{
ugreen
}
4
}}
;
}
}
\node
[anchor=west] at (
3
3em,0)
{$
\funp
{
P
}
(
\text
{
4
}
)
=
12
/
30
$}
;
\node
[anchor=west] at (
4
3em,0)
{$
\funp
{
P
}
(
\text
{
4
}
)
=
12
/
30
$}
;
\end{scope}
\begin{scope}
[yshift=-10.0em]
{
\footnotesize
\foreach
\i
in
{
1,...,2
}{
\node
[draw,thick,minimum size=10pt] at (
\i
,0)
{{
\color
{
purple
}
5
}}
;
\node
[draw,thick,minimum size=10pt] at (
1.2*
\i
,0)
{{
\color
{
purple
}
5
}}
;
}
}
\node
[anchor=west] at (
3
3em,0)
{$
\funp
{
P
}
(
\text
{
5
}
)
=
2
/
30
$}
;
\node
[anchor=west] at (
4
3em,0)
{$
\funp
{
P
}
(
\text
{
5
}
)
=
2
/
30
$}
;
\end{scope}
\begin{scope}
[yshift=-12.5em]
{
\footnotesize
\foreach
\i
in
{
1,...,1
}{
\node
[draw,thick,minimum size=10pt] at (
\i
,0)
{{
\color
{
orange
}
6
}}
;
\node
[draw,thick,minimum size=10pt] at (
1.2*
\i
,0)
{{
\color
{
orange
}
6
}}
;
}
}
\node
[anchor=west] at (
3
3em,0)
{$
\funp
{
P
}
(
\text
{
6
}
)
=
1
/
30
$}
;
\node
[anchor=west] at (
4
3em,0)
{$
\funp
{
P
}
(
\text
{
6
}
)
=
1
/
30
$}
;
\end{scope}
\end{tikzpicture}
...
...
Chapter2/Figures/figure-the-dice-game.tex
查看文件 @
f7854092
...
...
@@ -13,41 +13,41 @@
{
\begin{scope}
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s1) at (0,0)
{
\Large
{
\textbf
{
2
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{
\Large
{
\textbf
{
3
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
2
cm]s3.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
2
cm]s4.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
2
cm]s6.east)
{
\Large
{
\textbf
{
5
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
2
cm]s7.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
2
cm]s8.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
2
cm]s9.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
5
cm]s1.east)
{
\Large
{
\textbf
{
3
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
5
cm]s2.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
5
cm]s3.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
5
cm]s4.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
5
cm]s5.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
5
cm]s6.east)
{
\Large
{
\textbf
{
5
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
5
cm]s7.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
5
cm]s8.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
5
cm]s9.east)
{
\Large
{
\textbf
{
4
}}}
;
\end{scope}
\begin{scope}
[yshift=-1cm]
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s1) at (0,0)
{
\Large
{
\textbf
{
5
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{
\Large
{
\textbf
{
6
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
2
cm]s3.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
2
cm]s4.east)
{
\Large
{
\textbf
{
3
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{
\Large
{
\textbf
{
2
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
2
cm]s6.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
2
cm]s7.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
2
cm]s8.east)
{
\Large
{
\textbf
{
5
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
2
cm]s9.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
5
cm]s1.east)
{
\Large
{
\textbf
{
6
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
5
cm]s2.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
5
cm]s3.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
5
cm]s4.east)
{
\Large
{
\textbf
{
3
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
5
cm]s5.east)
{
\Large
{
\textbf
{
2
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
5
cm]s6.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
5
cm]s7.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
5
cm]s8.east)
{
\Large
{
\textbf
{
5
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
5
cm]s9.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\end{scope}
\begin{scope}
[yshift=-2cm]
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s1) at (0,0)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{
\Large
{
\textbf
{
2
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{
\Large
{
\textbf
{
2
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
2
cm]s3.east)
{
\Large
{
\textbf
{
3
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
2
cm]s4.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
2
cm]s6.east)
{
\Large
{
\textbf
{
5
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
2
cm]s7.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
2
cm]s8.east)
{
\Large
{
\textbf
{
3
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
2
cm]s9.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
5
cm]s1.east)
{
\Large
{
\textbf
{
2
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
5
cm]s2.east)
{
\Large
{
\textbf
{
2
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
5
cm]s3.east)
{
\Large
{
\textbf
{
3
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
5
cm]s4.east)
{
\Large
{
\textbf
{
4
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
5
cm]s5.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
5
cm]s6.east)
{
\Large
{
\textbf
{
5
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
5
cm]s7.east)
{
\Large
{{
\color
{
red
}{
1
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
5
cm]s8.east)
{
\Large
{
\textbf
{
3
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
5
cm]s9.east)
{
\Large
{
\textbf
{
4
}}}
;
\end{scope}
}
\end{tikzpicture}
...
...
Chapter2/Figures/figure-the-dice-game2.tex
查看文件 @
f7854092
...
...
@@ -12,41 +12,41 @@
\begin{scope}
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s1) at (0,0)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{
\Large
{
\textbf
{{
\color
{
red
}
2
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
2
cm]s3.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
2
cm]s4.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{
\Large
{
\textbf
{{
\color
{
purple
}
5
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
2
cm]s6.east)
{
\Large
{
\textbf
{
1
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
2
cm]s7.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
2
cm]s8.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
2
cm]s9.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
5
cm]s1.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
5
cm]s2.east)
{
\Large
{
\textbf
{{
\color
{
red
}
2
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
5
cm]s3.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
5
cm]s4.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
5
cm]s5.east)
{
\Large
{
\textbf
{{
\color
{
purple
}
5
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
5
cm]s6.east)
{
\Large
{
\textbf
{
1
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
5
cm]s7.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
5
cm]s8.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
5
cm]s9.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\end{scope}
\begin{scope}
[yshift=-1cm]
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s1) at (0,0)
{
\Large
{
\textbf
{{
\color
{
red
}
2
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{
\Large
{
\textbf
{
1
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
2
cm]s3.east)
{
\Large
{
\textbf
{{
\color
{
purple
}
5
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
2
cm]s4.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
2
cm]s6.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
2
cm]s7.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
2
cm]s8.east)
{
\Large
{
\textbf
{
1
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
2
cm]s9.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
5
cm]s1.east)
{
\Large
{
\textbf
{
1
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
5
cm]s2.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
5
cm]s3.east)
{
\Large
{
\textbf
{{
\color
{
purple
}
5
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
5
cm]s4.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
5
cm]s5.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
5
cm]s6.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
5
cm]s7.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
5
cm]s8.east)
{
\Large
{
\textbf
{
1
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
5
cm]s9.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\end{scope}
\begin{scope}
[yshift=-2cm]
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s1) at (0,0)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
2
cm]s1.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
2
cm]s2.east)
{
\Large
{
\textbf
{{
\color
{
red
}
2
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
2
cm]s3.east)
{
\Large
{
\textbf
{{
\color
{
orange
}
6
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
2
cm]s4.east)
{
\Large
{
\textbf
{
1
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
2
cm]s5.east)
{
\Large
{
\textbf
{{
\color
{
red
}
2
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
2
cm]s6.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
2
cm]s7.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
2
cm]s8.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
2
cm]s9.east)
{
\Large
{
\textbf
{
1
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s2) at ([xshift=0.
5
cm]s1.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s3) at ([xshift=0.
5
cm]s2.east)
{
\Large
{
\textbf
{{
\color
{
red
}
2
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s4) at ([xshift=0.
5
cm]s3.east)
{
\Large
{
\textbf
{{
\color
{
orange
}
6
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s5) at ([xshift=0.
5
cm]s4.east)
{
\Large
{
\textbf
{
1
}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s6) at ([xshift=0.
5
cm]s5.east)
{
\Large
{
\textbf
{{
\color
{
red
}
2
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s7) at ([xshift=0.
5
cm]s6.east)
{
\Large
{
\textbf
{{
\color
{
ublue
}
3
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s8) at ([xshift=0.
5
cm]s7.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s9) at ([xshift=0.
5
cm]s8.east)
{
\Large
{
\textbf
{{
\color
{
ugreen
}
4
}}}}
;
\node
[anchor=west,draw,very thick,minimum size=20pt]
(s10) at ([xshift=0.
5
cm]s9.east)
{
\Large
{
\textbf
{
1
}}}
;
\end{scope}
\end{tikzpicture}
...
...
bibliography.bib
查看文件 @
f7854092
...
...
@@ -7130,7 +7130,7 @@ author = {Yoshua Bengio and
@inproceedings{Katharopoulos2020TransformersAR,
title={Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention},
author={Angelos Katharopoulos and Apoorv Vyas and Nikolaos Pappas and Franccois Fleuret},
publisher={
CoRR
},
publisher={
International Conference on Machine Learning
},
year={2020},
volume={abs/2006.16236}
}
...
...
structure.tex
查看文件 @
f7854092
...
...
@@ -600,6 +600,7 @@ addtohook={%
%----------------------------------------------------------------------------------------
\usepackage
{
pgffor
}
%图片中使用\foreach语句
%\usepackage{ulem}%使用/sout
\usepackage
{
soul
}
%----------------------------------------------------------------------------------------
% Chapter 6
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论