Performing the training