Triplet Adaptation Framework for Robust Semi-Supervised Learning