Skip to content

Commit 5c1ef56

Browse files
Update phishing_email_detection_gpt2.py
Perplexity no longer supported (removed for now), no gradient accumulation steps, and batch size 17
1 parent c8aa254 commit 5c1ef56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phishing_email_detection_gpt2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
num_lateral_connection_tries_per_unit = 25
6565
learning_rate = 3 * 10 ** -4 # 3 * 10 ** -3
6666
epochs = 15 #
67-
batch_size = 7 # 17
67+
batch_size = 17
6868
gradient_accumulation_steps = 1
6969
minimum_levels = 2
7070
maximum_levels = 2 # [3,7]
@@ -568,7 +568,7 @@ def from_config(cls, config):
568568
learning_rate=learning_rate,
569569
loss=tf.keras.losses.CategoricalCrossentropy(),
570570
metrics=[tf.keras.metrics.CategoricalAccuracy(),
571-
tf.keras.metrics.Perplexity(name='perplexity'),
571+
# tf.keras.metrics.Perplexity(name='perplexity'),
572572
# tf.keras.metrics.Accuracy()
573573
],
574574
epochs=epochs,

0 commit comments

Comments
 (0)