Skip to content

Commit

Permalink
Deep Learning in Theano
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubens Zimbres committed Jan 12, 2017
1 parent 16fffb7 commit 1fd36be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Python - Theano Deep Learning
Expand Up @@ -71,7 +71,6 @@ inputs = x2
exp_y = np.array(y)

z=[]
# AQUI AVALIA OS TENSORES
for i in range(epochs):
for k in range(len(inputs)):
cur_cost = cost(inputs[k], exp_y[k])
Expand All @@ -89,4 +88,4 @@ w0=[]
for i in range (0,98):
w0.append(predict([x[18][i],x[30][i]]))

print('Accuracy=',1-np.mean(abs(np.array(y)-w0)))
print('Accuracy=',1-np.mean(abs(np.array(y)-w0)))

0 comments on commit 1fd36be

Please sign in to comment.