Spaces:
Runtime error
Runtime error
Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
|
|
|
| 5 |
# π‘οΈ Network Intrusion Detection System (NIDS)
|
| 6 |
|
| 7 |
Real-time network intrusion detection using ML & Deep Learning models trained on the NSL-KDD dataset.
|
|
@@ -17,7 +24,7 @@ Real-time network intrusion detection using ML & Deep Learning models trained on
|
|
| 17 |
## Dataset
|
| 18 |
[NSL-KDD](https://huggingface.co/datasets/Mireu-Lab/NSL-KDD) β 185K records, 41 features, binary classification (normal/anomaly)
|
| 19 |
|
| 20 |
-
##
|
| 21 |
|
| 22 |
### REST API (FastAPI)
|
| 23 |
```bash
|
|
@@ -51,13 +58,15 @@ curl -X POST http://localhost:8000/predict \
|
|
| 51 |
| RandomForest | 73.10% | 73.05% | 95.34% | Supervised |
|
| 52 |
| MLP | 73.28% | 73.21% | 89.33% | Supervised |
|
| 53 |
| Autoencoder | 71.84% | 71.34% | 73.60% | Unsupervised |
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
## Project Structure
|
| 56 |
```
|
| 57 |
nids_project/
|
| 58 |
βββ api.py # FastAPI REST API
|
| 59 |
-
βββ app.py # Gradio web UI
|
| 60 |
-
βββ space_app.py # HF Spaces app
|
| 61 |
βββ data_loader.py # Dataset loading
|
| 62 |
βββ ml_models.py # ML implementations
|
| 63 |
βββ dl_models.py # DL implementations
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Network Intrusion Detection System
|
| 3 |
+
colorFrom: blue
|
| 4 |
+
colorTo: red
|
| 5 |
+
sdk: gradio
|
| 6 |
+
sdk_version: 4.0.0
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: false
|
| 9 |
+
license: mit
|
| 10 |
---
|
| 11 |
+
|
| 12 |
# π‘οΈ Network Intrusion Detection System (NIDS)
|
| 13 |
|
| 14 |
Real-time network intrusion detection using ML & Deep Learning models trained on the NSL-KDD dataset.
|
|
|
|
| 24 |
## Dataset
|
| 25 |
[NSL-KDD](https://huggingface.co/datasets/Mireu-Lab/NSL-KDD) β 185K records, 41 features, binary classification (normal/anomaly)
|
| 26 |
|
| 27 |
+
## Usage
|
| 28 |
|
| 29 |
### REST API (FastAPI)
|
| 30 |
```bash
|
|
|
|
| 58 |
| RandomForest | 73.10% | 73.05% | 95.34% | Supervised |
|
| 59 |
| MLP | 73.28% | 73.21% | 89.33% | Supervised |
|
| 60 |
| Autoencoder | 71.84% | 71.34% | 73.60% | Unsupervised |
|
| 61 |
+
| LSTM | 70.65% | 70.58% | 87.80% | Unsupervised |
|
| 62 |
+
| Transformer | 57.94% | 57.26% | 80.29% | Supervised |
|
| 63 |
+
| IsolationForest | 56.55% | 55.96% | 65.24% | Unsupervised |
|
| 64 |
|
| 65 |
## Project Structure
|
| 66 |
```
|
| 67 |
nids_project/
|
| 68 |
βββ api.py # FastAPI REST API
|
| 69 |
+
βββ app.py # Gradio web UI (this Space)
|
|
|
|
| 70 |
βββ data_loader.py # Dataset loading
|
| 71 |
βββ ml_models.py # ML implementations
|
| 72 |
βββ dl_models.py # DL implementations
|