File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
115116# create an LSTM network with a single LSTM
116117input_ = Input (shape = (MAX_SEQUENCE_LENGTH ,))
117118x = 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)
120121x = GlobalMaxPool1D ()(x )
121122output = Dense (len (possible_labels ), activation = "sigmoid" )(x )
122123
You can’t perform that action at this time.
0 commit comments