* Modify val_interval and val_begin to be the attributes of TrainLoop. * update doc * fix lint * type hint