()
return X, y
Load training data from .npy files.
Load training data from .npy files.
Load training data from . npy files .
def load_train_data():
    """
    Load training data from .npy files.
    """
    X = np.load('data/X_train.npy')
    y = np.load('data/y_train.npy')

    X = X.astype(np.float32)
    X /= 255

    seed = np.random.randint(1, 10e6)
    np.random.seed(seed)
    np.random.shuffle(X)
    np.random.seed(seed)
    np.random.shuffle(y)

    return X, y
def load_train_data ( ) : X = np . load ( 'data/X_train.npy' ) y = np . load ( 'data/y_train.npy' ) X = X . astype ( np . float32 ) X /= 255 seed = np . random . randint ( 1 , 10e6 ) np . random . seed ( seed ) np . random . shuffle ( X ) np . random . seed ( seed ) np . random . shuffle ( y ) return X , y