原地址:http://blog.csdn.net/niuwei22007/article/details/49229909
Callbacks(回调函数)是一组用于在模型训练期间指定阶段被调用的函数。可以通过回调函数查看在模型训练过程中的模型内部信息和统计数据。可以通过传递一个回调函数list给fit()函数,然后相关的回调函数就可以在指定的阶段被调用了。
一、Callbacks基类
keras.callbacks.Callback()
属性:
- Params:字典类型。训练参数(例如verbosity, batch size, numberof epochs…)
- Model:keras.models.Model类型。被训练模型的引用。
方法:
- on_train_begin(logs={}):