'Call all registered callbacks\' on_train_end functions.'

def on_train_end(self):

    signal.signal(signal.SIGINT, signal.SIG_DFL)
    for c in self.callbacks:
        c.on_train_end(self.callback_data, self.model())
    self.callback_data.close()
