Skip to content

Instantly share code, notes, and snippets.

View markjay4k's full-sized avatar

mark markjay4k

View GitHub Profile
from keras.models import Sequential
from keras.layers import Dense
from keras.utils.io_utils import HDF5Matrix
import numpy as np
def create_dataset():
import h5py
X = np.random.randn(200,10).astype('float32')
y = np.random.randint(0, 2, size=(200,1))
f = h5py.File('test.h5', 'w')