Skip to content

Commit

Permalink
Update phishing_email_detection_gpt2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
david-thrower authored Feb 22, 2024
1 parent 14c99a6 commit ec0ee7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phishing_email_detection_gpt2.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

# GPT2 configurables

max_seq_length = 900
max_seq_length = 2000

# inp = tf.keras.layers.Input(shape=(), dtype=tf.string)
# gp2 = GPT2Layer(max_seq_length=max_seq_length)
Expand Down Expand Up @@ -179,7 +179,7 @@ def call(self, text):
output_dim=18,
input_length=max_seq_length)(tokens_1)
flat = tf.keras.layers.Flatten()(embedded)
dropout_flat = tf.keras.layers.Dropout(0.6)(flat)
dropout_flat = tf.keras.layers.Dropout(0.75)(flat)

tokenized_embedded_model =\
tf.keras.Model(
Expand Down

0 comments on commit ec0ee7d

Please sign in to comment.