出现以下错误,无法弄清楚

Having the following error and can't figure it out

出现以下错误,无法解决。

model = sequential()

NameError: name 'sequential' is not defined

很可能,您需要按如下方式导入keras模型,

from tensorflow.keras import Sequential as sequential