Skip to content

Commit f415da5

Browse files
committed
update
1 parent d715846 commit f415da5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ann_class2/theano2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ def main():
3636
lr = 0.0004
3737
reg = 0.01
3838

39-
Xtrain = Xtest.astype(np.float32)
40-
Ytrain = Ytest.astype(np.float32)
39+
Xtrain = Xtrain.astype(np.float32)
40+
Ytrain = Ytrain.astype(np.float32)
41+
Xtest = Xtest.astype(np.float32)
42+
Ytest = Ytest.astype(np.float32)
4143
Ytrain_ind = y2indicator(Ytrain).astype(np.float32)
4244
Ytest_ind = y2indicator(Ytest).astype(np.float32)
4345

0 commit comments

Comments
 (0)