Stability of machine learning algorithms