lacg030175/CICIDS2017-raw
CICIDS2017 (raw variant) Companion to lacg030175/CICIDS2017. This variant preserves rows with NaN or ±infinity values in any feature column (the original dataset drops them via pd.dropna). Intended for use with ThermometerEncoder(invalid_encoding="single_bit"), which treats missing / undefined values as a learnable is_invalid flag bit rather than silently encoding them as zero. Row counts Full dataset (all days): 2,830,743 rows Splits: random (80/20): 2,264,594… See the full description on the dataset page: https://huggingface.co/datasets/lacg030175/CICIDS2017-raw.
CICIDS2017 (raw variant)
Companion to lacg030175/CICIDS2017. This variant preserves rows with NaN or ±infinity values in any feature column (the original dataset drops them via pd.dropna). Intended for use with ThermometerEncoder(invalid_encoding="single_bit"), which treats missing / undefined values as a learnable is_invalid flag bit rather than silently encoding them as zero.
Row counts
Full dataset (all days): 2,830,743 rows
Splits:
random(80/20): 2,264,594 train / 566,149 testrandom_3way(80/10/10): 2,264,594 / 283,074 / 283,075temporal(Mon-Thu / Friday): 2,127,498 train / 703,245 testtemporal_3way(train + Friday split 50/50): 2,127,498 / 351,622 / 351,623
Top-20 RF Features
- Bwd Packet Length Std
- Destination Port
- Packet Length Std
- Bwd Packet Length Max
- Fwd IAT Std
- Avg Bwd Segment Size
- Bwd Packet Length Mean
- Average Packet Size
- Packet Length Mean
- Flow IAT Max
- Fwd IAT Max
- Packet Length Variance
- InitWinbytes_forward
- Idle Mean
- Idle Min
- Flow IAT Std
- Fwd Header Length
- Flow Packets/s
- Flow IAT Mean
- Bwd Header Length
Labels
- Binary (
label): 0 = BENIGN, 1 = Attack - Multi-class (
Label): 15 categories
Features
78 numeric flow-level features extracted by CICFlowMeter.
Preprocessing (raw variant)
- Rows with NaN / ±inf are PRESERVED (not dropped).
- Feature columns are still coerced to numeric via
pd.to_numeric(errors="coerce"); unparseable strings become NaN. - Label column preserved as multi-class string; binary
labelderived. - Whitespace and encoding artifacts in
Labelare normalized. - Use with
ThermometerEncoder(invalid_encoding="single_bit")to encode NaN/±inf as a learnable state.
Citation
@inproceedings{sharafaldin2018toward,
title={Toward Generating a New Intrusion Detection Dataset and Intrusion Traffic Characterization},
author={Sharafaldin, Iman and Lashkari, Arash Habibi and Ghorbani, Ali A},
booktitle={International Conference on Information Systems Security and Privacy},
year={2018}
}License
CC BY 4.0 — original dataset by the Canadian Institute for Cybersecurity, University of New Brunswick.
