尝试查看顺序神经网络模型时,显示错误,“列表对象没有属性“摘要”。
我尝试过
from keras.models import load_model
enter code '''model= (['''
''' Dense(16,input_shape=(1,),activation='relu'),'''
'''Dense(32,activation='relu'),'''
''' Dense(2,activation='softmax')'''
'''])'''
'''model.summary'''
AttributeError:“列表”对象没有属性“摘要”
答案 0 :(得分:0)
添加关键字顺序
示例:
model = Sequential([
Dense(16, input_shape = (1,), activation = "relu"),
Dense(32, activation = "relu"),
Dense(2, activation = "softmax")
])