📜  imdb数据集python代码示例的描述

📅  最后修改于: 2022-03-11 14:46:26.146000             🧑  作者: Mango

代码示例1
embedding_vector_length = 32
model = Sequential()
model.add(Embedding(max_words, embedding_vector_length, input_length=max_review_length))
model.add(LSTM(100))
model.add(Dense(1, activation='sigmoid'))
model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
print(model.summary())