摘要: theano 入门教程1.1两个标量相加import theano.tensor as Tfrom theano import functionx = T.dscalar('x')y = T.dscalar('y')z = x + yf = function([x,y], z)f(2, 3)1.x = T.dscalar('x')y = T.dscalar('y')先定义两个符号x,y,代表你想用... 阅读全文
posted @ 2014-06-05 08:48 fireae 阅读(599) 评论(0) 推荐(0) 编辑
摘要: theano入门教程1.21. 两个矩阵相加import theano.tensor as Tfrom theano import functionx = T.dmatrix('x')y = T.dmatrix('y')z = x + yf = function([x,y], z)f([2,3], [4,5])2 .logistic functionimport theano.tensor as ... 阅读全文
posted @ 2014-06-05 08:48 fireae 阅读(279) 评论(0) 推荐(0) 编辑