Instructions to use sobanahmed6061/ddos-mitigation-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use sobanahmed6061/ddos-mitigation-models with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://sobanahmed6061/ddos-mitigation-models") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
DDoS Mitigation Tool β ML Models
Pre-trained models for DDoS attack detection and classification.
Models Included
| File | Model | Purpose | Performance |
|---|---|---|---|
| isolation_forest.joblib | Isolation Forest | Anomaly detection | F1: 0.9485 |
| lstm_model.keras | LSTM Neural Network | Temporal analysis | F1: 0.9804 |
| classifier_rf.joblib | Random Forest | Attack classification | Acc: 100% |
| scaler.joblib | StandardScaler | IF feature scaling | β |
| lstm_scaler.joblib | MinMaxScaler | LSTM feature scaling | β |
| classifier_scaler.joblib | StandardScaler | RF feature scaling | β |
| classifier_encoder.joblib | LabelEncoder | Class encoding | β |
| model_meta.json | Metadata | IF model info | β |
| lstm_meta.json | Metadata | LSTM model info | β |
| classifier_meta.json | Metadata | RF model info | β |
Attack Types Detected
- SYN Flood
- UDP Flood
- ICMP Flood
- HTTP Flood
- Slowloris
- Volumetric
Training Data
- Normal traffic: 169 windows
- Attack traffic: 133 windows (5 attack types)
- Window size: 5 seconds
- Features: 20 per window
Usage
import joblib
import numpy as np
# Load models
iso_model = joblib.load('isolation_forest.joblib')
iso_scaler = joblib.load('scaler.joblib')
# Predict (1=normal, -1=anomaly)
features = np.array([[...]]) # 20 features
x_scaled = iso_scaler.transform(features)
prediction = iso_model.predict(x_scaled)
Full Project
GitHub: https://github.com/sobanahmed6061/ddos-mitigation-tool
- Downloads last month
- 1
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support