Update question_classify.py
This commit is contained in:
parent
8b336b25a5
commit
9729fa6958
@ -112,8 +112,8 @@ class QuestionClassify(object):
|
|||||||
model.add(Conv1D(128, 3, activation='relu'))
|
model.add(Conv1D(128, 3, activation='relu'))
|
||||||
model.add(GlobalAveragePooling1D())
|
model.add(GlobalAveragePooling1D())
|
||||||
model.add(Dropout(0.5))
|
model.add(Dropout(0.5))
|
||||||
model.add(Dense(13, activation='sigmoid'))
|
model.add(Dense(13, activation='softmax'))
|
||||||
model.compile(loss='binary_crossentropy',
|
model.compile(loss='categorical_crossentropy',
|
||||||
optimizer='rmsprop',
|
optimizer='rmsprop',
|
||||||
metrics=['accuracy'])
|
metrics=['accuracy'])
|
||||||
model.summary()
|
model.summary()
|
||||||
|
Loading…
Reference in New Issue
Block a user