DeepCreamPy/load.py
2018-02-10 22:19:48 -05:00

15 lines
315 B
Python

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)