check_training_frac function

Check that the training fraction is greater than 0 and less than or equal to 1