Commit ·
1ea40b2
1
Parent(s): bd79950
Update CIC-IDS2017.py
Browse files- CIC-IDS2017.py +4 -1
CIC-IDS2017.py
CHANGED
|
@@ -57,4 +57,7 @@ class CICIDS2017(datasets.GeneratorBasedBuilder):
|
|
| 57 |
def _generate_examples(self, filepath):
|
| 58 |
df = pd.read_csv(filepath)
|
| 59 |
for id_, row in df.iterrows():
|
| 60 |
-
yield id_,
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
def _generate_examples(self, filepath):
|
| 58 |
df = pd.read_csv(filepath)
|
| 59 |
for id_, row in df.iterrows():
|
| 60 |
+
yield id_, {
|
| 61 |
+
'flow_id': row['flow_id'],
|
| 62 |
+
'attack_label': row['attack_label']
|
| 63 |
+
}
|