Sampling via the aggregation value for data-driven manufacturing