Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
c58166ca
提交
c58166ca
authored
7月 19, 2017
作者:
abergeron
提交者:
GitHub
7月 19, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #6165 from lamblin/docstrings
Docstring improvements
上级
e76d05d6
7dfdf20a
全部展开
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
gradient.txt
doc/library/gradient.txt
+2
-2
gradient.py
theano/gradient.py
+0
-0
slinalg.py
theano/tensor/slinalg.py
+7
-7
没有找到文件。
doc/library/gradient.txt
浏览文件 @
c58166ca
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
from theano.gradient import *
from theano.gradient import *
Symbolic gradient is usually computed from :func:`gradient.grad`, which offers a
Symbolic gradient is usually computed from :func:`gradient.grad`, which offers a
more convenient syntax for the common case of wanting the gradient
in
some
more convenient syntax for the common case of wanting the gradient
of
some
expressions with respect to a scalar cost.
The :func:`grad_sources_inputs`
scalar cost with respect to some input expressions.
The :func:`grad_sources_inputs`
function does the underlying work, and is more flexible, but is also more
function does the underlying work, and is more flexible, but is also more
awkward to use when :func:`gradient.grad` can do the job.
awkward to use when :func:`gradient.grad` can do the job.
...
...
theano/gradient.py
浏览文件 @
c58166ca
差异被折叠。
点击展开。
theano/tensor/slinalg.py
浏览文件 @
c58166ca
...
@@ -84,11 +84,11 @@ class Cholesky(Op):
...
@@ -84,11 +84,11 @@ class Cholesky(Op):
"""
"""
Cholesky decomposition reverse-mode gradient update.
Cholesky decomposition reverse-mode gradient update.
Symbolic expression for reverse-mode Cholesky gradient taken from [
0
]_
Symbolic expression for reverse-mode Cholesky gradient taken from [
#
]_
References
References
----------
----------
.. [
0
] I. Murray, "Differentiation of the Cholesky decomposition",
.. [
#
] I. Murray, "Differentiation of the Cholesky decomposition",
http://arxiv.org/abs/1602.07527
http://arxiv.org/abs/1602.07527
"""
"""
...
@@ -158,12 +158,12 @@ class CholeskyGrad(Op):
...
@@ -158,12 +158,12 @@ class CholeskyGrad(Op):
def
perform
(
self
,
node
,
inputs
,
outputs
):
def
perform
(
self
,
node
,
inputs
,
outputs
):
"""
"""
Implements the "reverse-mode" gradient [
1
]_ for the
Implements the "reverse-mode" gradient [
#
]_ for the
Cholesky factorization of a positive-definite matrix.
Cholesky factorization of a positive-definite matrix.
References
References
----------
----------
.. [
1
] S. P. Smith. "Differentiation of the Cholesky Algorithm".
.. [
#
] S. P. Smith. "Differentiation of the Cholesky Algorithm".
Journal of Computational and Graphical Statistics,
Journal of Computational and Graphical Statistics,
Vol. 4, No. 2 (Jun.,1995), pp. 134-147
Vol. 4, No. 2 (Jun.,1995), pp. 134-147
http://www.jstor.org/stable/1390762
http://www.jstor.org/stable/1390762
...
@@ -268,13 +268,13 @@ class Solve(Op):
...
@@ -268,13 +268,13 @@ class Solve(Op):
def
grad
(
self
,
inputs
,
output_gradients
):
def
grad
(
self
,
inputs
,
output_gradients
):
"""
"""
Reverse-mode gradient updates for matrix solve operation c = A
\
b.
Reverse-mode gradient updates for matrix solve operation c = A
\
\
\
b.
Symbolic expression for updates taken from [
1
]_.
Symbolic expression for updates taken from [
#
]_.
References
References
----------
----------
..
[1
] M. B. Giles, "An extended collection of matrix derivative results
..
[#
] M. B. Giles, "An extended collection of matrix derivative results
for forward and reverse mode automatic differentiation",
for forward and reverse mode automatic differentiation",
http://eprints.maths.ox.ac.uk/1079/
http://eprints.maths.ox.ac.uk/1079/
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论