n_training_examples function

Number of training examples