read items from trainiset hdf