Skip to content

Commit 407f90c

Browse files
Update phishing_email_detection_gpt2.py
Correct history indexing error.
1 parent 830a2dc commit 407f90c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

phishing_email_detection_gpt2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ def from_config(cls, config):
173173
gpt_t1 = time.time()
174174
gpt_time_on_one_model_min = (gpt_t1 - gpt_t1) / 60
175175

176-
hy = history["history"]
177-
hy_df = pd.DataFrame(hy)
176+
hy_df = pd.DataFrame(history.history)
178177
print(hy_df)
179178

180179
### Cerebros model:

0 commit comments

Comments
 (0)