A Generative Model for Accelerated Inverse Modelling Using a Novel Embedding for Continuous Variables