Views
No views yet
Note: Current version uses simulated data to validate architecture. Integration with real-world datasets (e.g., EMBER) is planned.
1import joblib
2import numpy as np
3
4bundle = joblib.load("model.pkl")
5
6model = bundle["model"]
7scaler = bundle["scaler"]
8
9sample = np.random.rand(1, 50)
10sample_scaled = scaler.transform(sample)
11
12prediction = model.predict(sample_scaled)
13
14print("Malicious" if prediction[0] == 1 else "Benign")