顺序没有属性"validation_data". [英] Sequential has no attribution "validation_data"
问题描述
我从下面的链接下载并运行文件 https://github.com/keunwoochoi/keras_callbacks_example
I download and run the file from the link below https://github.com/keunwoochoi/keras_callbacks_example
但是它具有错误顺序没有属性" validation_data"".谁能为我解释?
But the it has the error "Sequential has no attribute "validation_data"". Can anyone explain for me?
推荐答案
您始终可以使用dir()
检查对象中的内容.
You can always check what is in the object with dir()
.
我在使用self.model.validation_data
时遇到了同样的问题.使用dir(self.model)
进行检查后发现,对于我的特定问题,确实没有属性validation_data
.但是然后检查dir(self)
我可以找到它.
I had the same problem using self.model.validation_data
. Checking with dir(self.model)
showed me that there was indeed no attribute validation_data
for my particular problem. But then checking dir(self)
I could find it.
这篇关于顺序没有属性"validation_data".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!