[Keras使用技巧]·错误Sequential has no attribution “validation_data”解决
错误描述: Sequential has no attribution “validation_data”
解决方法:
here is the solution:
- use self.validation_data in your custom callback class
- provide validation_data = (x,y) in your fit method.
if point 2 is not done, self.validation_data will be empty.
hope this helps