![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
theano
文章平均质量分 81
iseehz
这个作者很懒,什么都没留下…
展开
-
theano入门
第一个theano程序import theanofrom theano import tensor# declare two symbolic floating-point scalarsa = tensor.dscalar()b = tensor.dscalar()# create a simple expressionc = a + b# convert the e原创 2016-09-01 13:00:30 · 448 阅读 · 0 评论 -
theano第二课
一、简述numpy.asarray(a,dtype=None,order=None)功能描述:将输入数据(列表的列表,元组的元组,元组的列表等)转换为矩阵形式a:数组形式的输入数据,包括list,元组的list,元组,元组的元组,元组的list和ndarraysdtype:数据类型由输入数据推导例1:>>> numpy.asarray([[1., 2], [3,原创 2016-09-01 13:45:50 · 374 阅读 · 0 评论 -
theano第三课(scalar与matrix的求和)
一、两个标量(scalar)求和>>> import numpy>>> import theano.tensor as T>>> from theano import function>>> x = T.dscalar('x')>>> y = T.dscalar('y')>>> z = x + y>>> f = function([x, y], z)返回值z即为x+y>>>原创 2016-09-01 14:30:57 · 1411 阅读 · 0 评论 -
theano第四课(一些例子)
一、回归函数(logistic function)简单粗暴,将s(x)用代码的形式写出来,如下:import theanoimport theano.tensor as Tx = T.dmatrix('x')s = 1 / (1 + T.exp(-x))logistic = theano.function([x], s)print logistic([[0, 1], [-1原创 2016-09-01 15:10:01 · 1149 阅读 · 0 评论 -
吐血配置win7+theano+gpu+caffe+matlab+python
首先感谢大神小鱼人fish、hjimce 、double-vane ,本文主要在这三篇博客的基础上,写一下我自己的安装经历。由于我在安装的时候遇到不少问题,所以将三位大神的博客直接复制,在我修改的地方做了一些批注,希望能帮助到更多的人,可能也侵犯三位大神的版权了,罪过罪过。 一、theano环境搭建首先,按照hjimce 的http://blog.csdn.net/hjimce/artic原创 2016-09-04 20:17:18 · 3133 阅读 · 2 评论