semvec/pypi-packages huggingface dataset:
net-intrusion-detection 0.1.0
A Python package for CNN-LSTM model pre-trained on CICIDS2017 and finetuned on UNSW-NB15 for network intrusion detection.

# Intrusion Detection Package

This package provides a CNN-LSTM-based intrusion detection model that can be used to classify network traffic as benign or malicious.

## Installation

You can install the package using pip:

pip install net_intrusion_detection


## Usage

To use the model, follow these steps:

1. Load your pre-trained model (.h5 file).
2. Preprocess your network traffic data (CSV format).
3. Make predictions on the data.

Example:

```python
import net_intrusion_detection
from net_intrusion_detection.model import load_model, preprocess_data, predict_traffic

# Load the pre-trained model
model = load_model('path/to/model.h5')

# Preprocess the data
data = preprocess_data('path/to/network_data.csv')

# Make predictions
predictions = predict_traffic(model, data)

# Output predictions
print(predictions)