loading network parameters from HDF5