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
c5f65366
Commit
c5f65366
authored
Jan 14, 2021
by
孟霞
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'mengxia' 到 'caorunzhe'
Mengxia 查看合并请求
!904
parents
89d4bea0
aa7eb6dc
全部展开
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
66 行增加
和
50 行删除
+66
-50
Chapter3/chapter3.tex
+0
-0
Chapter4/chapter4.tex
+0
-0
Chapter9/Figures/figure-activate-2.tex
+43
-0
Chapter9/Figures/figure-activate.tex
+23
-50
Chapter9/chapter9.tex
+0
-0
没有找到文件。
Chapter3/chapter3.tex
查看文件 @
c5f65366
差异被折叠。
点击展开。
Chapter4/chapter4.tex
查看文件 @
c5f65366
差异被折叠。
点击展开。
Chapter9/Figures/figure-activate-2.tex
0 → 100644
查看文件 @
c5f65366
%%%------------------------------------------------------------------------------------------------------------
\begin{tikzpicture}
\tikzstyle
{
every node
}
=[scale=1.2]
\begin{scope}
\draw
[->, line width=1pt]
(-1.4,0)--(1.4,0)node[left,below,font=
\scriptsize
]
{$
x
$}
;
\draw
[->, line width=1pt]
(0,-1.2)--(0,1.4)node[right,font=
\scriptsize
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
,,scale=0.8]at(
\x
,0.1)
{
\x
}
;
}
\node
[below,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,0.1)
{
0
}
;
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
,,scale=0.8]at(0.1,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.4:1.2, line width=1pt]
plot(
\x
,
{
max(
\x
,0)
}
);
\node
[black,anchor=south,scale=0.8]
at (0,1.6)
{
\small
$
y
=
\max
(
0
, x
)
$}
;
\node
[anchor=south east,inner sep=1pt,scale=0.8] (labeld) at (0.8,-2)
{
\small
{
(a) ReLU
}}
;
\end{scope}
%%%------------------------------------------------------------------------------------------------------------
\begin{scope}
[xshift=1.7in]
\draw
[->, line width=1pt]
(-1.4,0)--(1.4,0)node[left,below,font=
\scriptsize
]
{$
x
$}
;
\draw
[->, line width=1pt]
(0,-1.2)--(0,1.4)node[right,font=
\scriptsize
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(
\x
,0.1)
{
\x
}
;
}
\node
[below,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,0.1)
{
0
}
;
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(0.1,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.4:1.4, line width=1pt]
plot(
\x
,
{
exp(-1*((
\x
)
^
2))
}
);
\node
[black,anchor=south,scale=0.8]
at (0,1.6)
{
\small
$
y
=
{
\textrm
e
}^{
-
x
^
2
}$}
;
\node
[anchor=south east,inner sep=1pt,scale=0.8] (labele) at (0.8,-2)
{
\small
{
(b) Gaussian
}}
;
\end{scope}
%%%------------------------------------------------------------------------------------------------------------
\begin{scope}
[xshift=3.4in]
\draw
[->, line width=1pt]
(-1.4,0)--(1.4,0)node[left,below,font=
\scriptsize
]
{$
x
$}
;
\draw
[->, line width=1pt]
(0,-1.2)--(0,1.4)node[right,font=
\scriptsize
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(
\x
,0.1)
{
\x
}
;
}
\node
[below,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,0.1)
{
0
}
;
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(0.1,
\y
)
{}
;
}
\node
[left,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,0.5)
{
0.5
}
;
\node
[left,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,1.1)
{
1.0
}
;
\draw
[color=red ,domain=-1:1, line width=1pt]
plot(
\x
,
\x
);
\node
[black,anchor=south,scale=0.8]
at (0,1.6)
{
\small
$
y
=
x
$}
;
\node
[anchor=south east,inner sep=1pt,scale=0.8] (labelf) at (0.8,-2)
{
\small
{
(c) Identity
}}
;
\end{scope}
\end{tikzpicture}
%%%------------------------------------------------------------------------------------------------------------
\ No newline at end of file
Chapter9/Figures/figure-activate.tex
查看文件 @
c5f65366
%%%------------------------------------------------------------------------------------------------------------
\begin{tikzpicture}
\tikzstyle
{
every node
}
=[scale=1.2]
\begin{scope}
\draw
[->, line width=1pt]
(-1.4,0)--(1.4,0)node[left,below,font=
\scriptsize
]
{$
x
$}
;
\draw
[->, line width=1pt]
(0,-1.4)--(0,1.4)node[right,font=
\scriptsize
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
1.0,0.5
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.4:1, line width=1pt]
plot(
\x
,
{
ln(1+(exp(
\x
))
}
);
\node
[black,anchor=south]
at (0,1.6)
{
\small
$
y
=
\ln
(
1
+
{
\textrm
e
}^
x
)
$}
;
\node
[anchor=south east,inner sep=1pt] (labela) at (0.8,-2)
{
\small
{
(a) Softplus
}}
;
\draw
[->, line width=1pt]
(0,-1.2)--(0,1.4)node[right,font=
\scriptsize
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(
\x
,0.1)
{
\x
}
;
}
\node
[below,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,0.1)
{
0
}
;
\foreach
\y
in
{
1.0,0.5
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(0.1,
\y
)
{}
;
}
\node
[left,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,0.4)
{
0.5
}
;
\node
[left,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,1.0)
{
1.0
}
;
\draw
[color=red ,domain=-1.4:1.0, line width=1pt]
plot(
\x
,
{
ln(1+(exp(
\x
))
}
);
\node
[black,anchor=south,scale=0.8]
at (0,1.5)
{
\small
$
y
=
\ln
(
1
+
{
\textrm
e
}^
x
)
$}
;
\node
[anchor=south east,inner sep=1pt,scale=0.8] (labela) at (0.8,-2)
{
\small
{
(a) Softplus
}}
;
\end{scope}
%%%------------------------------------------------------------------------------------------------------------
\begin{scope}
[xshift=1.7in]
\draw
[->, line width=1pt]
(-1.4,0)--(1.4,0)node[left,below,font=
\scriptsize
]
{$
x
$}
;
\draw
[->, line width=1pt]
(0,-1.
4)--(0,1.4)node[right,font=
\scriptsize
]
{$
y
$}
;
\draw
[->, line width=1pt]
(0,-1.
2)--(0,1.4)node[right,font=
\scriptsize
,scale=0.8
]
{$
y
$}
;
\draw
[dashed]
(0,1)--(1.4,1);
\foreach
\x
in
{
-1,-0.5,0
,0.5,1
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
]at(
\x
,0
)
{
\foreach
\x
in
{
-1,-0.5,0
.5,1
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(
\x
,0.1
)
{
\pgfmathparse
{
(
\x
)*5
}
\pgfmathresult
}
;
}
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
]at(-0.15,
\y
)
{
\y
}
;
}
\node
[below,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,0.1)
{
0
}
;
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(0.1,
\y
)
{
\y
}
;
}
\draw
[color=red,domain=-1.4:1.4, line width=1pt]
plot(
\x
,
{
1/(1+(exp(-5*
\x
)))
}
);
\node
[black,anchor=south
]
at (0,1.6)
{
\small
$
y
=
\frac
{
1
}{
1
+
{
\textrm
e
}^{
-
x
}}$}
;
\node
[anchor=south east,inner sep=1pt] (labelb) at (0.8,-2)
{
\small
{
(b) Sigmoid
}}
;
\node
[black,anchor=south
,scale=0.8]
at (0,1.5)
{
\small
$
y
=
\frac
{
1
}{
1
+
{
\textrm
{
e
}
}^{
-
x
}}$}
;
\node
[anchor=south east,inner sep=1pt
,scale=0.8
] (labelb) at (0.8,-2)
{
\small
{
(b) Sigmoid
}}
;
\end{scope}
%%%------------------------------------------------------------------------------------------------------------
\begin{scope}
[xshift=3.4in]
\draw
[->, line width=1pt]
(-1.4,0)--(1.4,0)node[left,below,font=
\scriptsize
]
{$
x
$}
;
\draw
[->, line width=1pt]
(0,-1.4)--(0,1.
4
)node[right,font=
\scriptsize
]
{$
y
$}
;
\draw
[->, line width=1pt]
(0,-1.4)--(0,1.
2
)node[right,font=
\scriptsize
]
{$
y
$}
;
\draw
[dashed]
(0,1)--(1.4,1);
\draw
[dashed]
(-1.4,-1)--(0,-1);
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
,-1.0-0.5,0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
]at(0,
\y
)
{
\y
}
;
}
\foreach
\x
in
{
-1.0,-0.5,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(
\x
,0.1)
{
\x
}
;
}
\node
[below,outer sep=2pt,font=\scriptsize,scale=0.8]
at(0.1,0.1)
{
0
}
;
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
,scale=0.8]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.4:1.4, line width=1pt]
plot(
\x
,
{
tanh(
\x
)
}
);
\node
[black,anchor=south]
at (0,1.6)
{
\small
$
y
=
\frac
{{
\textrm
e
}^{
x
}
-
{
\textrm
e
}^{
-
x
}}{{
e
}^{
x
}
+
e
^{
-
x
}}$}
;
\node
[anchor=south east,inner sep=1pt] (labelc) at (0.8,-2)
{
\small
{
(c) Tanh
}}
;
\end{scope}
%%%------------------------------------------------------------------------------------------------------------
\begin{scope}
[yshift=-1.8in]
\draw
[->, line width=1pt]
(-1.4,0)--(1.4,0)node[left,below,font=
\scriptsize
]
{$
x
$}
;
\draw
[->, line width=1pt]
(0,-1.4)--(0,1.4)node[right,font=
\scriptsize
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.4:1.4, line width=1pt]
plot(
\x
,
{
max(
\x
,0)
}
);
\node
[black,anchor=south]
at (0,1.6)
{
\small
$
y
=
\max
(
0
, x
)
$}
;
\node
[anchor=south east,inner sep=1pt] (labeld) at (0.8,-2)
{
\small
{
(d) ReLU
}}
;
\end{scope}
%%%------------------------------------------------------------------------------------------------------------
\begin{scope}
[yshift=-1.8in,xshift=1.7in]
\draw
[->, line width=1pt]
(-1.4,0)--(1.4,0)node[left,below,font=
\scriptsize
]
{$
x
$}
;
\draw
[->, line width=1pt]
(0,-1.4)--(0,1.4)node[right,font=
\scriptsize
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
]at(-0.15,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1.4:1.4, line width=1pt]
plot(
\x
,
{
exp(-1*((
\x
)
^
2))
}
);
\node
[black,anchor=south]
at (0,1.6)
{
\small
$
y
=
e
^{
-
x
^
2
}$}
;
\node
[anchor=south east,inner sep=1pt] (labele) at (0.8,-2)
{
\small
{
(e) Gaussian
}}
;
\end{scope}
%%%------------------------------------------------------------------------------------------------------------
\begin{scope}
[yshift=-1.8in,xshift=3.4in]
\draw
[->, line width=1pt]
(-1.4,0)--(1.4,0)node[left,below,font=
\scriptsize
]
{$
x
$}
;
\draw
[->, line width=1pt]
(0,-1.4)--(0,1.4)node[right,font=
\scriptsize
]
{$
y
$}
;
\foreach
\x
in
{
-1.0,-0.5,0.0,0.5,1.0
}{
\draw
(
\x
,0)--(
\x
,0.05)node[below,outer sep=2pt,font=
\scriptsize
]at(
\x
,0)
{
\x
}
;
}
\foreach
\y
in
{
0.5,1.0
}{
\draw
(0,
\y
)--(0.05,
\y
)node[left,outer sep=2pt,font=
\scriptsize
]at(0,
\y
)
{
\y
}
;
}
\draw
[color=red ,domain=-1:1, line width=1pt]
plot(
\x
,
\x
);
\node
[black,anchor=south]
at (0,1.6)
{
\small
$
y
=
x
$}
;
\node
[anchor=south east,inner sep=1pt] (labelf) at (0.8,-2)
{
\small
{
(f) Identity
}}
;
\node
[black,anchor=south,scale=0.8]
at (0,1.5)
{
\small
$
y
=
\frac
{{
\textrm
e
}^{
x
}
-
{
\textrm
e
}^{
-
x
}}{
\textrm
{
e
}^{
x
}
+
{
\textrm
e
}^{
-
x
}}$}
;
\node
[anchor=south east,inner sep=1pt,scale=0.8] (labelc) at (0.8,-2)
{
\small
{
(c) Tanh
}}
;
\end{scope}
\end{tikzpicture}
%%%------------------------------------------------------------------------------------------------------------
\ No newline at end of file
Chapter9/chapter9.tex
查看文件 @
c5f65366
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论