Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
Toy-MT-Introduction
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
NiuTrans
Toy-MT-Introduction
Commits
1b44af55
Commit
1b44af55
authored
May 16, 2020
by
孟霞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cha5图重叠和不清晰,调图间距
parent
e1a76ed0
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
19 行增加
和
35 行删除
+19
-35
Book/Chapter5/Figures/deep-learning.jpg
+0
-0
Book/Chapter5/Figures/feature-engineering.jpg
+0
-0
Book/Chapter5/Figures/fig-4-gram.tex
+9
-17
Book/Chapter5/Figures/fig-rnn-LM.tex
+7
-16
Book/Chapter5/Figures/fig-two-layer-neural-network.tex
+2
-2
Book/Chapter5/chapter5.tex
+1
-0
没有找到文件。
Book/Chapter5/Figures/deep-learning.jpg
查看文件 @
1b44af55
28.6 KB
|
W:
|
H:
82.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Book/Chapter5/Figures/feature-engineering.jpg
查看文件 @
1b44af55
31.9 KB
|
W:
|
H:
100 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Book/Chapter5/Figures/fig-4-gram.tex
查看文件 @
1b44af55
%%%------------------------------------------------------------------------------------------------------------
\begin{tikzpicture}
\begin{tikzpicture}
\begin{scope}
\begin{scope}
\node
[anchor=west] (w0) at (0,0)
{
\footnotesize
{$
w
_{
i
-
3
}$}}
;
\node
[anchor=west] (w0) at (0,0)
{
\footnotesize
{$
w
_{
i
-
3
}$}}
;
...
@@ -7,11 +6,13 @@
...
@@ -7,11 +6,13 @@
\node
[anchor=north] (index0) at ([yshift=0.5em]w0.south)
{
\tiny
(index)
}
;
\node
[anchor=north] (index0) at ([yshift=0.5em]w0.south)
{
\tiny
(index)
}
;
\node
[anchor=north] (index1) at ([yshift=0.5em]w1.south)
{
\tiny
(index)
}
;
\node
[anchor=north] (index1) at ([yshift=0.5em]w1.south)
{
\tiny
(index)
}
;
\node
[anchor=north] (index2) at ([yshift=0.5em]w2.south)
{
\tiny
(index)
}
;
\node
[anchor=north] (index2) at ([yshift=0.5em]w2.south)
{
\tiny
(index)
}
;
\node
[anchor=south,draw,inner sep=3pt] (e0) at ([yshift=1em]w0.north)
{
\tiny
{$
\textbf
{
e
}_
0
=
w
_{
i
-
3
}
\textbf
{
C
}$}}
;
\node
[anchor=south,draw,inner sep=3pt] (e1) at ([yshift=1em]w1.north)
{
\tiny
{$
\textbf
{
e
}_
1
=
w
_{
i
-
2
}
\textbf
{
C
}$}}
;
\node
[anchor=south,draw,inner sep=3pt,fill=blue!20!white] (e0) at ([yshift=1em]w0.north)
{
\tiny
{$
\textbf
{
e
}_
0
=
w
_{
i
-
3
}
\textbf
{
C
}$}}
;
\node
[anchor=south,draw,inner sep=3pt] (e2) at ([yshift=1em]w2.north)
{
\tiny
{$
\textbf
{
e
}_
2
=
w
_{
i
-
1
}
\textbf
{
C
}$}}
;
\node
[anchor=south,draw,inner sep=3pt,fill=blue!20!white] (e1) at ([yshift=1em]w1.north)
{
\tiny
{$
\textbf
{
e
}_
1
=
w
_{
i
-
2
}
\textbf
{
C
}$}}
;
\node
[anchor=south,draw,minimum width=9em,inner sep=3pt] (h0) at ([yshift=1.5em]e1.north)
{
\tiny
{$
\textbf
{
h
}_
0
=
\textrm
{
Tanh
}
([
\textbf
{
e
}_
0
,
\textbf
{
e
}_
1
,
\textbf
{
e
}_
2
]
\textbf
{
H
}
+
\textbf
{
d
}
)
$}}
;
\node
[anchor=south,draw,inner sep=3pt,fill=blue!20!white] (e2) at ([yshift=1em]w2.north)
{
\tiny
{$
\textbf
{
e
}_
2
=
w
_{
i
-
1
}
\textbf
{
C
}$}}
;
\node
[anchor=south,draw,minimum width=9em,inner sep=3pt] (h1) at ([yshift=1.5em]h0.north)
{
\tiny
{$
\textbf
{
y
}
=
\textrm
{
Softmax
}
(
\textbf
{
h
}_
0
\textbf
{
U
}
)
$}}
;
\node
[anchor=south,draw,minimum width=9em,inner sep=3pt,fill=orange!20!white] (h0) at ([yshift=1.5em]e1.north)
{
\tiny
{$
\textbf
{
h
}_
0
=
\textrm
{
Tanh
}
([
\textbf
{
e
}_
0
,
\textbf
{
e
}_
1
,
\textbf
{
e
}_
2
]
\textbf
{
H
}
+
\textbf
{
d
}
)
$}}
;
\node
[anchor=south,draw,minimum width=9em,inner sep=3pt,fill=orange!20!white] (h1) at ([yshift=1.5em]h0.north)
{
\tiny
{$
\textbf
{
y
}
=
\textrm
{
Softmax
}
(
\textbf
{
h
}_
0
\textbf
{
U
}
)
$}}
;
\node
[anchor=south] (ylabel) at ([yshift=1em]h1.north)
{
\footnotesize
{$
\textrm
{
P
}
(
w
_
i|w
_{
i
-
3
}
w
_{
i
-
2
}
w
_{
i
-
1
}
)
$}}
;
\node
[anchor=south] (ylabel) at ([yshift=1em]h1.north)
{
\footnotesize
{$
\textrm
{
P
}
(
w
_
i|w
_{
i
-
3
}
w
_{
i
-
2
}
w
_{
i
-
1
}
)
$}}
;
\draw
[->,line width=1pt] ([yshift=0.1em]w0.north) -- ([yshift=-0.1em]e0.south);
\draw
[->,line width=1pt] ([yshift=0.1em]w0.north) -- ([yshift=-0.1em]e0.south);
...
@@ -37,17 +38,7 @@
...
@@ -37,17 +38,7 @@
}
}
\end{pgfonlayer}
\end{pgfonlayer}
{
\node
[anchor=south,draw,inner sep=3pt,fill=blue!20!white] (e0) at ([yshift=1em]w0.north)
{
\tiny
{$
\textbf
{
e
}_
0
=
w
_{
i
-
3
}
\textbf
{
C
}$}}
;
\node
[anchor=south,draw,inner sep=3pt,fill=blue!20!white] (e1) at ([yshift=1em]w1.north)
{
\tiny
{$
\textbf
{
e
}_
1
=
w
_{
i
-
2
}
\textbf
{
C
}$}}
;
\node
[anchor=south,draw,inner sep=3pt,fill=blue!20!white] (e2) at ([yshift=1em]w2.north)
{
\tiny
{$
\textbf
{
e
}_
2
=
w
_{
i
-
1
}
\textbf
{
C
}$}}
;
}
{
\node
[anchor=south,draw,minimum width=9em,inner sep=3pt,fill=orange!20!white] (h0) at ([yshift=1.5em]e1.north)
{
\tiny
{$
\textbf
{
h
}_
0
=
\textrm
{
Tanh
}
([
\textbf
{
e
}_
0
,
\textbf
{
e
}_
1
,
\textbf
{
e
}_
2
]
\textbf
{
H
}
+
\textbf
{
d
}
)
$}}
;
\node
[anchor=south,draw,minimum width=9em,inner sep=3pt,fill=orange!20!white] (h1) at ([yshift=1.5em]h0.north)
{
\tiny
{$
\textbf
{
y
}
=
\textrm
{
Softmax
}
(
\textbf
{
h
}_
0
\textbf
{
U
}
)
$}}
;
}
\end{scope}
\end{scope}
\end{tikzpicture}
\end{tikzpicture}
\ No newline at end of file
%%%------------------------------------------------------------------------------------------------------------
Book/Chapter5/Figures/fig-rnn-LM.tex
查看文件 @
1b44af55
%%%------------------------------------------------------------------------------------------------------------
\begin{tikzpicture}
\begin{tikzpicture}
\begin{scope}
\begin{scope}
\tikzstyle
{
rnnnode
}
= [draw,inner sep=5pt,minimum width=4em,minimum height=1.5em,fill=green!30!white,blur shadow=
{
shadow xshift=1pt,shadow yshift=-1pt
}
]
\tikzstyle
{
rnnnode
}
= [draw,inner sep=5pt,minimum width=4em,minimum height=1.5em,fill=green!30!white,blur shadow=
{
shadow xshift=1pt,shadow yshift=-1pt
}
]
...
@@ -28,10 +27,10 @@
...
@@ -28,10 +27,10 @@
\draw
[->,thick] ([yshift=0.1em]e4.north)--([yshift=-0.1em]node14.south);
\draw
[->,thick] ([yshift=0.1em]e4.north)--([yshift=-0.1em]node14.south);
{
{
\node
[anchor=south,rnnnode
] (node21) at ([yshift=1.5em]node11.north)
{
\scriptsize
{
RNN Cell
}}
;
\node
[anchor=south,rnnnode
,fill=blue!30!white] (node21) at ([yshift=1.5em]node11.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode
] (node22) at ([yshift=1.5em]node12.north)
{
\scriptsize
{
RNN Cell
}}
;
\node
[anchor=south,rnnnode
,fill=blue!30!white] (node22) at ([yshift=1.5em]node12.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode
] (node23) at ([yshift=1.5em]node13.north)
{
\scriptsize
{
RNN Cell
}}
;
\node
[anchor=south,rnnnode
,fill=blue!30!white] (node23) at ([yshift=1.5em]node13.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode
] (node24) at ([yshift=1.5em]node14.north)
{
\scriptsize
{
RNN Cell
}}
;
\node
[anchor=south,rnnnode
,fill=blue!30!white] (node24) at ([yshift=1.5em]node14.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode,fill=blue!30!white] (node31) at ([yshift=1.5em]node21.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode,fill=blue!30!white] (node31) at ([yshift=1.5em]node21.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode,fill=blue!30!white] (node32) at ([yshift=1.5em]node22.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode,fill=blue!30!white] (node32) at ([yshift=1.5em]node22.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
...
@@ -40,13 +39,6 @@
...
@@ -40,13 +39,6 @@
}
}
{
{
\node
[anchor=south,rnnnode,fill=blue!30!white] (node21) at ([yshift=1.5em]node11.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode,fill=blue!30!white] (node22) at ([yshift=1.5em]node12.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode,fill=blue!30!white] (node23) at ([yshift=1.5em]node13.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
\node
[anchor=south,rnnnode,fill=blue!30!white] (node24) at ([yshift=1.5em]node14.north)
{
\scriptsize
{
Softmax(
$
\cdot
$
)
}}
;
}
{
\draw
[->,thick] ([yshift=0.1em]node31.north)--([yshift=1em]node31.north) node[pos=1,above]
{
\scriptsize
{$
\textrm
{
P
}
(
w
_
2
)
$}}
;
\draw
[->,thick] ([yshift=0.1em]node31.north)--([yshift=1em]node31.north) node[pos=1,above]
{
\scriptsize
{$
\textrm
{
P
}
(
w
_
2
)
$}}
;
\draw
[->,thick] ([yshift=0.1em]node32.north)--([yshift=1em]node32.north) node[pos=1,above]
{
\scriptsize
{$
\textrm
{
P
}
(
w
_
3
|w
_
2
)
$}}
;
\draw
[->,thick] ([yshift=0.1em]node32.north)--([yshift=1em]node32.north) node[pos=1,above]
{
\scriptsize
{$
\textrm
{
P
}
(
w
_
3
|w
_
2
)
$}}
;
\draw
[->,thick] ([yshift=0.1em]node33.north)--([yshift=1em]node33.north) node[pos=1,above]
{
\scriptsize
{$
\textrm
{
P
}
(
w
_
4
|w
_
2
w
_
3
)
$}}
;
\draw
[->,thick] ([yshift=0.1em]node33.north)--([yshift=1em]node33.north) node[pos=1,above]
{
\scriptsize
{$
\textrm
{
P
}
(
w
_
4
|w
_
2
w
_
3
)
$}}
;
...
@@ -64,7 +56,7 @@
...
@@ -64,7 +56,7 @@
\draw
[->,thick] ([xshift=0.1em]node24.east)--([xshift=1em]node24.east);
\draw
[->,thick] ([xshift=0.1em]node24.east)--([xshift=1em]node24.east);
}
}
{
\draw
[->,thick] ([yshift=0.1em]node11.north)--([yshift=-0.1em]node21.south);
\draw
[->,thick] ([yshift=0.1em]node11.north)--([yshift=-0.1em]node21.south);
\draw
[->,thick] ([yshift=0.1em]node12.north)--([yshift=-0.1em]node22.south);
\draw
[->,thick] ([yshift=0.1em]node12.north)--([yshift=-0.1em]node22.south);
\draw
[->,thick] ([yshift=0.1em]node13.north)--([yshift=-0.1em]node23.south);
\draw
[->,thick] ([yshift=0.1em]node13.north)--([yshift=-0.1em]node23.south);
...
@@ -75,9 +67,7 @@
...
@@ -75,9 +67,7 @@
\draw
[->,thick] ([xshift=0.1em]node12.east)--([xshift=-0.1em]node13.west);
\draw
[->,thick] ([xshift=0.1em]node12.east)--([xshift=-0.1em]node13.west);
\draw
[->,thick] ([xshift=0.1em]node13.east)--([xshift=-0.1em]node14.west);
\draw
[->,thick] ([xshift=0.1em]node13.east)--([xshift=-0.1em]node14.west);
\draw
[->,thick] ([xshift=0.1em]node14.east)--([xshift=1em]node14.east);
\draw
[->,thick] ([xshift=0.1em]node14.east)--([xshift=1em]node14.east);
}
\end{scope}
\end{scope}
\end{tikzpicture}
\end{tikzpicture}
\ No newline at end of file
%%%------------------------------------------------------------------------------------------------------------
Book/Chapter5/Figures/fig-two-layer-neural-network.tex
查看文件 @
1b44af55
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
%% weight and bias
%% weight and bias
{
\node
[anchor=center,rotate=90,fill=white,inner sep=1pt] (b0) at ([yshift=2em,xshift=-0.5em]b.north)
{
\scriptsize
{$
b
_
1
$}}
;
}
{
\node
[anchor=center,rotate=90,fill=white,inner sep=1pt] (b0) at ([yshift=2em,xshift=-0.5em]b.north)
{
\scriptsize
{$
b
_
1
$}}
;
}
{
\node
[anchor=center,rotate=-59,fill=white,inner sep=1pt] (w2) at ([yshift=1em,xshift=-1.0em]x1.north)
{
\scriptsize
{$
w
_
1
$}}
;
}
{
\node
[anchor=center,rotate=-59,fill=white,inner sep=1pt] (w2) at ([yshift=1em,xshift=-1.0em]x1.north)
{
\scriptsize
{$
w
_
1
$}}
;
}
{
\node
[anchor=center,rotate=62,fill=white,inner sep=1pt] (w21) at ([yshift=1.2em,xshift=
0
em]n10.north)
{
\scriptsize
{$
w'
_
1
$}}
;
}
{
\node
[anchor=center,rotate=62,fill=white,inner sep=1pt] (w21) at ([yshift=1.2em,xshift=
-0.2
em]n10.north)
{
\scriptsize
{$
w'
_
1
$}}
;
}
{
\node
[anchor=center,rotate=-62,fill=white,inner sep=1pt] (w22) at ([yshift=1.2em,xshift=
-0
em]n11.north)
{
\scriptsize
{$
w'
_
2
$}}
;
}
{
\node
[anchor=center,rotate=-62,fill=white,inner sep=1pt] (w22) at ([yshift=1.2em,xshift=
0.2
em]n11.north)
{
\scriptsize
{$
w'
_
2
$}}
;
}
{
\node
[anchor=center,rotate=59,fill=white,inner sep=1pt] (b1) at ([yshift=3.4em,xshift=1.5em]b.north)
{
\scriptsize
{$
b
_
2
$}}
;
}
{
\node
[anchor=center,rotate=59,fill=white,inner sep=1pt] (b1) at ([yshift=3.4em,xshift=1.5em]b.north)
{
\scriptsize
{$
b
_
2
$}}
;
}
{
\node
[anchor=center,rotate=90,fill=white,inner sep=1pt] (w1) at ([yshift=2em,xshift=0.5em]x1.north)
{
\scriptsize
{$
w
_
2
$}}
;
}
{
\node
[anchor=center,rotate=90,fill=white,inner sep=1pt] (w1) at ([yshift=2em,xshift=0.5em]x1.north)
{
\scriptsize
{$
w
_
2
$}}
;
}
...
...
Book/Chapter5/chapter5.tex
查看文件 @
1b44af55
...
@@ -134,6 +134,7 @@
...
@@ -134,6 +134,7 @@
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
\begin{figure}
[htp]
\begin{figure}
[htp]
\centering
\centering
\subfigcapskip
=8pt
\subfigure
[基于特征工程的机器学习方法做图像分类]
{
\subfigure
[基于特征工程的机器学习方法做图像分类]
{
\begin{minipage}
{
.9
\textwidth
}
\begin{minipage}
{
.9
\textwidth
}
\centering
\centering
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论