Functions used to create pytorch `DataSet`s and `DataLoader`s.
'int' in 'uint8'
import numpy as np
x = np.random.randn(100, 3)
y = np.random.randn(100, 1)
train_ds = TrainData(x, y)
x_elem, y_elem = train_ds[99]
print(x_elem, x_elem.dtype)
print(y_elem, y_elem.dtype)
y = np.random.randint(0, 3, (100, 1))
train_ds = TrainData(x, y)
x_elem, y_elem = train_ds[99]
print(x_elem, x_elem.dtype)
print(y_elem, y_elem.dtype)
x = np.random.randn(100, 3)
y = np.random.randn(100, 1)
db = create_db(x,y, bs=10)
[x.shape for x in db.one_batch()]