DeepCreamPy/load.py

15 lines
315 B
Python
Raw Normal View History

2018-02-11 03:19:48 +00:00
import os
import numpy as np
def load(dir_='./training_data/npy'):
x_train = np.load(os.path.join(dir_, 'x_train.npy'))
x_test = np.load(os.path.join(dir_, 'x_test.npy'))
return x_train, x_test
if __name__ == '__main__':
x_train, x_test = load()
print(x_train.shape)
print(x_test.shape)