from keras.models import Sequential # 导入序贯模型 from keras import layers # 导入所有类型的层 from keras.optimizers import Adam # 导入优化器 model = Sequential() # 序贯模型 model.add(layers.Conv1D(32, kernel_size=10, strides=4,