Virtual metrology predicts a wafer's measurement result, such as a critical dimension or film thickness, from process sensor data and historical correlations, without performing an actual physical measurement on that specific wafer. This matters because many physical metrology measurements are destructive, slow, or sample only a fraction of wafers; virtual metrology can provide a predicted result for every wafer, including ones that were never physically measured, by learning the relationship between process conditions and measurement outcomes from wafers that were measured.