Anomaly Detection and Sampling Cost Control via Hierarchical GANs