Predict Training Data Quality via Its Geometry in Metric Space