提交 5ed61508 authored 作者: amrithasuresh's avatar amrithasuresh

Updated numpy as np

上级 963e524e
from __future__ import absolute_import, print_function, division from __future__ import absolute_import, print_function, division
import numpy import numpy as np
import theano import theano
import theano.tensor as T import theano.tensor as T
rng = numpy.random rng = np.random
N = 400 N = 400
feats = 784 feats = 784
...@@ -13,7 +13,7 @@ training_steps = 10000 ...@@ -13,7 +13,7 @@ training_steps = 10000
x = T.matrix("x") x = T.matrix("x")
y = T.vector("y") y = T.vector("y")
w = theano.shared(rng.randn(feats).astype(theano.config.floatX), name="w") w = theano.shared(rng.randn(feats).astype(theano.config.floatX), name="w")
b = theano.shared(numpy.asarray(0., dtype=theano.config.floatX), name="b") b = theano.shared(np.asarray(0., dtype=theano.config.floatX), name="b")
x.tag.test_value = D[0] x.tag.test_value = D[0]
y.tag.test_value = D[1] y.tag.test_value = D[1]
#print "Initial model:" #print "Initial model:"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论