Feature vector regularization in machine learning