rdpahalavan
commited on
Commit
•
f10c759
1
Parent(s):
1204c23
Update CIC-IDS2017.py
Browse files- CIC-IDS2017.py +8 -8
CIC-IDS2017.py
CHANGED
@@ -46,14 +46,14 @@ class CICIDS2017(datasets.GeneratorBasedBuilder):
|
|
46 |
)
|
47 |
|
48 |
def _split_generators(self, dl_manager):
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
def _generate_examples(self, filepath):
|
59 |
df = pd.read_csv(filepath)
|
|
|
46 |
)
|
47 |
|
48 |
def _split_generators(self, dl_manager):
|
49 |
+
url = f"https://huggingface.co/datasets/rdpahalavan/CIC-IDS2017/blob/main/{_URLS[self.config.name]}"
|
50 |
+
downloaded_file = dl_manager.download(url)
|
51 |
+
return [
|
52 |
+
datasets.SplitGenerator(
|
53 |
+
name=datasets.Split.TRAIN,
|
54 |
+
gen_kwargs={"filepath": downloaded_file},
|
55 |
+
),
|
56 |
+
]
|
57 |
|
58 |
def _generate_examples(self, filepath):
|
59 |
df = pd.read_csv(filepath)
|