Making a Simple Threat Detector Script
Real Output Example
test_data = [[15, 4, 1]] # 15 attempts, 4 retries, failed login
prediction = model.predict(test_data)
print("Threat Detected!" if prediction == 1 else "Safe Activity")
Possible Outputs:
-
Threat Detected!
-
Safe Activity
8
