Applying training data