Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
680275ad
提交
680275ad
authored
1月 14, 2015
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
scan doc and small stuff
上级
aaab6ea5
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
28 行增加
和
20 行删除
+28
-20
presentation.tex
doc/nextml2015/presentation.tex
+28
-20
没有找到文件。
doc/nextml2015/presentation.tex
浏览文件 @
680275ad
...
@@ -855,21 +855,27 @@ print f([0, 1, 2])
...
@@ -855,21 +855,27 @@ print f([0, 1, 2])
\end{frame}
\end{frame}
\subsection
{
Scan
}
\begin{frame}
\begin{frame}
\frametitle
{
Scan
}
\frametitle
{
Scan
}
Allow looping (for, map, while)
\begin{itemize}
Allow recursion (reduce)
\item
Allow looping (for, map, while)
Allow recursion with dependency on many of the previous time step
\item
Allow recursion (reduce)
Optimize some cases live moving computation outside of scan.
\item
Allow recursion with dependency on many of the previous time step
\item
Optimize some cases like moving computation outside of scan.
When not to use scan:
\item
The Scan grad is done via Backpropagation
\_
through
\_
time(BPTT)
\end{itemize}
\end{frame}
If only needed for ``vectorization'' or ``broadcasting''. tensor and
\begin{frame}
{
When not to use scan
}
numpy.ndarray support them natively. This will be much better.
\begin{itemize}
\item
If only needed for ``vectorization'' or ``broadcasting''. tensor
and numpy.ndarray support them natively. This will be much better.
You do a fixed number of iteration that is very small (2,3). You are probably better to just unroll the graph to do it.
\item
You do a fixed number of iteration that is very small (2,3). You
are probably better to just unroll the graph to do it.
The Scan grad is Backpropagation
\_
through
\_
time(BPTT)
\end{itemize}
\end{frame}
\end{frame}
...
@@ -1069,6 +1075,17 @@ The result is then sliced to obtain the pre-nonlinearity activations for i, f, $
...
@@ -1069,6 +1075,17 @@ The result is then sliced to obtain the pre-nonlinearity activations for i, f, $
\end{itemize}
\end{itemize}
\end{frame}
\end{frame}
\begin{frame}
{
LSTM Tips For Training
}
\begin{itemize}
\item
Do use use SGD, but use something like adagrad or rmsprop.
\item
Initialize any recurrent weights as orthogonal matrices (orth
\_
weights). This helps optimization.
\item
Take out any operation that does not have to be inside "scan".
Theano do many cases, but not all.
\item
Rescale (clip) the L2 norm of the gradient, if necessary.
\item
You can use weight noise or dropout at the output of the recurrent layer for regularization.
\end{itemize}
\end{frame}
\begin{frame}
\begin{frame}
\frametitle
{}
\frametitle
{}
\begin{itemize}
\begin{itemize}
...
@@ -1076,19 +1093,10 @@ The result is then sliced to obtain the pre-nonlinearity activations for i, f, $
...
@@ -1076,19 +1093,10 @@ The result is then sliced to obtain the pre-nonlinearity activations for i, f, $
\end{itemize}
\end{itemize}
\end{frame}
\end{frame}
\begin{frame}
{
Conclusion
}
Theano/Pylearn2/libgpuarry provide an environment for machine learning that is:
\begin{bf}
Fast to develop
\end{bf}
\newline
\begin{bf}
Fast to run
\end{bf}
\newline
\end{frame}
\section
{
Exercices
}
\section
{
Exercices
}
\begin{frame}
{
Exercices
}
\begin{frame}
{
Exercices
}
\begin{itemize}
\begin{itemize}
\item
Theano exercice: Work through the ``01
\_
buildbing
\_
expressions'',
\item
Theano exercice: Work through the ``0[1-4]*'' directory exercices:
``02
\_
compiling
\_
and
\_
running'',
``03
\_
modifying'' and/or ``04
\_
debugging''
directory now.
Available at ``git~clone~https://github.com/abergeron/ccw
\_
tutorial
\_
theano.git''.
Available at ``git~clone~https://github.com/abergeron/ccw
\_
tutorial
\_
theano.git''.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论