Use of deep learning and error correction for data-space inversion and model-based history matching