File size: 253 Bytes
9fdd516 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import joblib
import numpy as np
model = joblib.load("model.pkl")
# Example input (5 features)
sample = np.array([[0.5, 0.2, 0.1, 0.7, 0.3]])
pred = model.predict(sample)
if pred[0] == 1:
print("Malicious")
else:
print("Benign") |