Skip to content

Commit fb96791

Browse files
committed
Code update 12/04/67
1 parent 05fca42 commit fb96791

File tree

5 files changed

+3
-2
lines changed

5 files changed

+3
-2
lines changed

.DS_Store

0 Bytes
Binary file not shown.

MInsight.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ def save_predict(prediction_df): # สร้างฟังก์ชัน save_
153153
filepath = 'Prediction.csv'
154154
if os.path.exists(filepath):
155155
prediction_df.to_csv(filepath, mode='a', index=False, header=False)
156-
print(f"\nการคาดการณ์การโจมตีครั้งล่าสุดถูกเพิ่มลงในไฟล์ {filepath} แล้ว")
156+
print(f"การคาดการณ์การโจมตีครั้งล่าสุดถูกเพิ่มลงในไฟล์ {filepath} แล้ว")
157157
else:
158158
prediction_df.to_csv(filepath, index=False)
159-
print(f"\nการคาดการณ์การโจมตีครั้งล่าสุดถูกบันทึกลงในไฟล์ {filepath} แล้ว")
159+
print(f"การคาดการณ์การโจมตีครั้งล่าสุดถูกบันทึกลงในไฟล์ {filepath} แล้ว")
160160
break # ออกจากลูป
161161
elif save_pre == 'n':
162162
break # ออกจากลูป

NIST.SP.800-53r5.pdf

5.79 MB
Binary file not shown.

Prediction.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Severity,Frequency,Duration,Targets,Predicted_Attack_Type,Accuracy
1010
0.7742830640003,1.3805979831548092,-0.6622949471032027,-0.7241479433806597,Ransomware,19.399999976158142
1111
0.7742830640003,1.3805979831548092,-0.6622949471032027,-0.7241479433806597,SQL Injection,20.90000033378601
1212
0.7742830640003,1.3805979831548092,-0.6622949471032027,-0.7241479433806597,SQL Injection,19.300000369548798
13+
0.7742830640003,1.3805979831548092,-0.6622949471032027,-0.7241479433806597,Ransomware,20.50000011920929
4.67 MB
Binary file not shown.

0 commit comments

Comments
 (0)