[Keras实用技巧]·错误Sequential has no attribution “validation_data”解决

812 阅读1分钟

[Keras使用技巧]·错误Sequential has no attribution “validation_data”解决

 

错误描述: Sequential has no attribution “validation_data”

解决方法:

here is the solution:

  1. use self.validation_data in your custom callback class
  2. provide validation_data = (x,y) in your fit method.

if point 2 is not done, self.validation_data will be empty.

hope this helps

 

参考地址