Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from sklearn.preprocessing import LabelEncoder
|
|
| 12 |
|
| 13 |
# --- Model & Scaler Configuration ---
|
| 14 |
H5_MODEL_FILE = "https://huggingface.co/spaces/hari6677/intrusion_detector_model/commit/db539a078811615764b2c84aacb85b1a3f804a3c"
|
| 15 |
-
SCALER_FILE_NAME = "
|
| 16 |
# Threshold optimized in Cell 11 for better Attack Recall
|
| 17 |
PREDICTION_THRESHOLD = 0.40
|
| 18 |
FEATURE_COUNT = 40 # Expected number of features after one-hot encoding
|
|
|
|
| 12 |
|
| 13 |
# --- Model & Scaler Configuration ---
|
| 14 |
H5_MODEL_FILE = "https://huggingface.co/spaces/hari6677/intrusion_detector_model/commit/db539a078811615764b2c84aacb85b1a3f804a3c"
|
| 15 |
+
SCALER_FILE_NAME = "https://huggingface.co/spaces/hari6677/intrusion_detector_model/commit/db539a078811615764b2c84aacb85b1a3f804a3c"
|
| 16 |
# Threshold optimized in Cell 11 for better Attack Recall
|
| 17 |
PREDICTION_THRESHOLD = 0.40
|
| 18 |
FEATURE_COUNT = 40 # Expected number of features after one-hot encoding
|