Skip to content

Commit 9323f5f

Browse files
Update phishing_email_detection_gpt2.py
Added back the GPT baseline model for comparison.
1 parent 380928d commit 9323f5f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

phishing_email_detection_gpt2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585

8686
"""### A custom GPT2 encoder layer for text embedding"""
8787

88-
"""
8988

9089
class GPT2Layer(tf.keras.layers.Layer):
9190

@@ -184,7 +183,6 @@ def from_config(cls, config):
184183
hy_df = pd.DataFrame(history.history)
185184
print(hy_df)
186185

187-
"""
188186

189187
### Cerebros model:
190188

@@ -343,7 +341,7 @@ def from_config(cls, config):
343341
cerebros_time_per_model = cerebros_time_all_models_min / models_tried
344342

345343
print(f"Cerebros trained {models_tried} models FROM A COLD START in ONLY {cerebros_time_all_models_min} min. Cerebros took only {cerebros_time_per_model} minutes on average per model.")
346-
# print(f"GPT2 took {gpt_time_on_one_model_min} just to FINE TUNE one PRE - TRAINED model. Although this is a small scale test, this shows the advantage of scaling in ON timing VS ON**2 timing.")
344+
print(f"GPT2 took {gpt_time_on_one_model_min} just to FINE TUNE one PRE - TRAINED model. Although this is a small scale test, this shows the advantage of scaling in ON timing VS ON**2 timing.")
347345

348346

349347
print(f'Cerebros best accuracy achieved is {result}')

0 commit comments

Comments
 (0)