6 The machine learning procedure