keras/src/callbacks/progbar_logger.py/ProgbarLogger/on_train_begin
class ProgbarLogger:    def on_train_begin(self, logs=None):
        # When this logger is called inside `fit`, validation is silent.
        self._called_in_fit = True