Skip to content

Commit ae490f6

Browse files
author
User
committed
update
1 parent 6d35fa0 commit ae490f6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: nlp_class3/cnn_toxic.py

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
# Download the data:
2121
# https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge
22+
# https://lazyprogrammer.me/course_files/toxic_comment_train.csv
2223
# Download the word vectors:
2324
# http://nlp.stanford.edu/data/glove.6B.zip
2425

Diff for: nlp_class3/lstm_toxic.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
# Download the data:
2929
# https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge
30+
# https://lazyprogrammer.me/course_files/toxic_comment_train.csv
3031
# Download the word vectors:
3132
# http://nlp.stanford.edu/data/glove.6B.zip
3233

@@ -115,8 +116,8 @@
115116
# create an LSTM network with a single LSTM
116117
input_ = Input(shape=(MAX_SEQUENCE_LENGTH,))
117118
x = embedding_layer(input_)
118-
# x = LSTM(15, return_sequences=True)(x)
119-
x = Bidirectional(LSTM(15, return_sequences=True))(x)
119+
x = LSTM(15, return_sequences=True)(x)
120+
# x = Bidirectional(LSTM(15, return_sequences=True))(x)
120121
x = GlobalMaxPool1D()(x)
121122
output = Dense(len(possible_labels), activation="sigmoid")(x)
122123

0 commit comments

Comments
 (0)