使用Keras进行DNA序列分类:修复Reshape层错误
您需要导入Reshape层,它位于keras.layers中。只需将以下行添加到您的导入语句中即可:
from keras.layers import Dense, Flatten, Conv1D, MaxPooling1D, LSTM, Reshape
然后您的代码应该可以正常运行。
原文地址: https://www.cveoy.top/t/topic/lKOG 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
您需要导入Reshape层,它位于keras.layers中。只需将以下行添加到您的导入语句中即可:
from keras.layers import Dense, Flatten, Conv1D, MaxPooling1D, LSTM, Reshape
然后您的代码应该可以正常运行。
原文地址: https://www.cveoy.top/t/topic/lKOG 著作权归作者所有。请勿转载和采集!