Migrate from .npz to HDF5
senarvi opened this issue · comments
Seppo Enarvi commented
import h5py
h5f = h5py.File(filename, 'w')
h5f.create_dataset('x', data=x)
h5f.close()
h5f = h5py.File(filename, 'r')
x = h5f['x'][:]
h5f.close()
TheanoLM is a recurrent neural network language modeling tool implemented using Theano
senarvi opened this issue · comments
import h5py
h5f = h5py.File(filename, 'w')
h5f.create_dataset('x', data=x)
h5f.close()
h5f = h5py.File(filename, 'r')
x = h5f['x'][:]
h5f.close()