def C_LSTM_model(input_size): model = Sequential() model.add(Conv1D(filters=64, kernel_size=3, activation='relu',input_shape=(input_size, 1))) model.add(MaxPooling1D(pool_size=2)) model.add(Dropout(0.5)) model.add(LSTM(32)) model.add(Dense(10, activation='relu')) model.add(Dense(1, activation='sigmoid')) return model各层大小
时间: 2023-06-20 10:06:43 浏览: 110
基于C 语言实现 LSTM 算法【100013009】
5星 · 资源好评率100%
- Conv1D层: filters=64, kernel_size=3, activation='relu', input_shape=(input_size, 1)
- MaxPooling1D层: pool_size=2
- Dropout层: rate=0.5
- LSTM层: units=32
- Dense层: units=10, activation='relu'
- Dense层: units=1, activation='sigmoid'
阅读全文