Frailty is the main predictor of falls in elderly patients undergoing rehabilitation training.