Skip to content

Commit

Permalink
transform original int data into float
Browse files Browse the repository at this point in the history
  • Loading branch information
findmyway committed Oct 20, 2014
1 parent 8af3811 commit 407dfae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions data/data.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os

import numpy as np

curpath = os.path.dirname(__file__)
x_train = np.load(curpath + '/x_train.npy')
x_test = np.load(curpath + '/x_test.npy')
x_train_int = np.load(curpath + '/x_train.npy')
x_train = x_train_int / 255.0
x_test_int = np.load(curpath + '/x_test.npy')
x_test = x_test_int / 255.0
y_train = np.load(curpath + '/y_train.npy')
y_test = np.load(curpath + '/y_test.npy')

0 comments on commit 407dfae

Please sign in to comment.