Deep Importance Sampling based on Regression for Model Inversion and Emulation