for each data object Oi in the training data