
theano
嗨皮lemon
这个作者很懒,什么都没留下…
展开
-
theano的tensor
theano官网:http://deeplearning.net/software/theano/ tensowflow 目前只能用在 MacOS 和 Linux, theano 可以在 Windows ,MacOS 和 Linux系统下运行; theano 可以使用 GPU 进行运算,用GPU运行比CPU快100倍左右,theano 是 python 模块。 tensowflow 是比较商...翻译 2018-08-23 15:34:51 · 2602 阅读 · 0 评论 -
theano--function的三种用法
import numpy as npimport theano.tensor as Timport theano#activation function example激活函数的例子x=T.dmatrix('x')s=1/(1+T.exp(-x)) #np.exp 这是一个激活函数的式子logistic=theano.function([x],s)print(logistic([...翻译 2018-08-23 15:53:39 · 1923 阅读 · 0 评论 -
theano--shared 变量
Shared 变量,意思是这些变量可以在运算过程中,不停地进行交换和更新值。 在定义 weights 和 bias 的情况下,会需要用到这样的变量。用累加器来定义 Shared 变量,每一次向上面加一个值,每一次基于上面的变化,再加上另一个值,就这样不断地更新并保存这样的值。import numpy as npimport theano.tensor as Timport th...翻译 2018-08-23 17:10:34 · 775 阅读 · 0 评论