Learning-Based Characterization Models for Quality Assurance of Emerging Memory Technologies