Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
bb34c8c2
提交
bb34c8c2
authored
7月 17, 2013
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix NumPy SciPy name.
上级
0bb60e21
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
16 行删除
+16
-16
boot_camp_overview.txt
doc/cifarSC2011/boot_camp_overview.txt
+1
-1
index.txt
doc/cifarSC2011/index.txt
+1
-1
introduction.txt
doc/cifarSC2011/introduction.txt
+14
-14
没有找到文件。
doc/cifarSC2011/boot_camp_overview.txt
浏览文件 @
bb34c8c2
...
...
@@ -15,7 +15,7 @@ Day 1
* Show of hands - what is your background?
* Python & Num
p
y in a nutshell
* Python & Num
P
y in a nutshell
* Theano basics
...
...
doc/cifarSC2011/index.txt
浏览文件 @
bb34c8c2
...
...
@@ -18,7 +18,7 @@ What does it do?
* symbolic differentiation.
It complements the Python numeric/scientific software stack (e.g.
numpy, scip
y,
It complements the Python numeric/scientific software stack (e.g.
NumPy, SciP
y,
scikits, matplotlib, PIL.)
Design and feature set has been driven by machine learning research
...
...
doc/cifarSC2011/introduction.txt
浏览文件 @
bb34c8c2
...
...
@@ -13,7 +13,7 @@ Background Questionaire
* What did you do with it?
* Who has used Python?
numpy? scip
y? matplotlib?
* Who has used Python?
NumPy? SciP
y? matplotlib?
* Who has used iPython?
...
...
@@ -116,18 +116,18 @@ Python in one slide
print Bar(99).hello() # Creating an instance of Bar
# -> 99
Num
p
y in one slide
Num
P
y in one slide
------------------
* Python floats are full-fledged objects on the heap
* Not suitable for high-performance computing!
* Num
p
y provides a N-dimensional numeric array in Python
* Num
P
y provides a N-dimensional numeric array in Python
* Perfect for high-performance computing.
* Num
p
y provides
* Num
P
y provides
* elementwise computations
...
...
@@ -135,7 +135,7 @@ Numpy in one slide
* pseudorandom numbers from many distributions
* Sci
p
y provides lots more, including
* Sci
P
y provides lots more, including
* more linear algebra
...
...
@@ -148,29 +148,29 @@ Numpy in one slide
.. code-block:: python
##############################
# Properties of Num
p
y arrays
# Properties of Num
P
y arrays
# that you really need to know
##############################
import numpy as np # import can rename
a = np.random.rand(3,
4,5)
# random generators
a = np.random.rand(3,
4, 5)
# random generators
a32 = a.astype('float32') # arrays are strongly typed
a.ndim # int: 3
a.shape # tuple: (3,
4,
5)
a.shape # tuple: (3,
4,
5)
a.size # int: 60
a.dtype # np.dtype object: 'float64'
a32.dtype # np.dtype object: 'float32'
Arrays can be combined with numeric operators, standard mathematical
functions. Num
p
y has great `documentation <http://docs.scipy.org/doc/numpy/reference/>`_.
functions. Num
P
y has great `documentation <http://docs.scipy.org/doc/numpy/reference/>`_.
Training an MNIST-ready classification neural network in pure
nump
y might look like this:
Training an MNIST-ready classification neural network in pure
NumP
y might look like this:
.. code-block:: python
#########################
# Num
p
y for Training a
# Num
P
y for Training a
# Neural Network on MNIST
#########################
...
...
@@ -215,9 +215,9 @@ What's missing?
* Non-lazy evaluation (required by Python) hurts performance
* Num
p
y is bound to the CPU
* Num
P
y is bound to the CPU
* Num
p
y lacks symbolic or automatic differentiation
* Num
P
y lacks symbolic or automatic differentiation
Now let's have a look at the same algorithm in Theano, which runs 15 times faster if
you have GPU (I'm skipping some dtype-details which we'll come back to).
...
...
@@ -286,7 +286,7 @@ Theano in one slide
* Expression substitution optimizations automatically draw
on many backend technologies for best performance.
* FFTW, MKL, ATLAS, Sci
p
y, Cython, CUDA
* FFTW, MKL, ATLAS, Sci
P
y, Cython, CUDA
* Slower fallbacks always available
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论