keral报错未解析的引用'Model'
from keras.layers import Input, Dense, Dropout, Activation, Flatten, Conv2D, Conv1D, MaxPooling1D, concatenate, \
BatchNormalization, MaxPooling2D
from keras.models import Model
# 若干代码
model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy'])
history = LossHistory() # 创建一个history实例
model.fit(X_train, Y_train, epochs=200, batch_size=64, verbose=1,
validation_data=(X_test, Y_test),callbacks=[history])
# 若干代码
model.xxxx改成Model.xxxxx即可