Skip to content

Commit

Permalink
Create threat_detection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 28, 2024
1 parent 6188eea commit 584e7df
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import numpy as np

def detect_threats(model, data):
# Use the trained model to predict threats in real-time
predictions = model.predict(data)
threats = np.where(predictions > 0.5)[0]
return threats

0 comments on commit 584e7df

Please sign in to comment.