Generative Models for Anomaly Detection and Design-Space Dimensionality Reduction in Shape Optimization