Update tidytuesday_for_python.py
Browse files- tidytuesday_for_python.py +10 -3
tidytuesday_for_python.py
CHANGED
@@ -37,15 +37,16 @@ This dataset compiles TidyTuesday datasets from 2023-2024, aiming to make resour
|
|
37 |
"""
|
38 |
|
39 |
|
40 |
-
_HOMEPAGE = ""
|
41 |
|
42 |
|
43 |
_LICENSE = ""
|
44 |
|
45 |
|
46 |
_URLS = {
|
|
|
47 |
"train": "https://raw.githubusercontent.com/hollyyfc/tidytuesday-for-python/main/tidytuesday_json_train.json",
|
48 |
-
"validation": "https://raw.githubusercontent.com/hollyyfc/tidytuesday-for-python/main/tidytuesday_json_val.json"
|
49 |
}
|
50 |
|
51 |
|
@@ -102,11 +103,17 @@ class TidyTuesdayPython(datasets.GeneratorBasedBuilder):
|
|
102 |
datasets.SplitGenerator(
|
103 |
name=datasets.Split.TRAIN,
|
104 |
gen_kwargs={
|
105 |
-
"filepath": downloaded_files["
|
106 |
}
|
107 |
),
|
108 |
datasets.SplitGenerator(
|
109 |
name=datasets.Split.VALIDATION,
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
gen_kwargs={
|
111 |
"filepath": downloaded_files["validation"]
|
112 |
}
|
|
|
37 |
"""
|
38 |
|
39 |
|
40 |
+
_HOMEPAGE = "https://huggingface.co/datasets/hollyyfc/tidytuesday_for_python"
|
41 |
|
42 |
|
43 |
_LICENSE = ""
|
44 |
|
45 |
|
46 |
_URLS = {
|
47 |
+
"full": "https://raw.githubusercontent.com/hollyyfc/tidytuesday-for-python/main/tidytuesday_json.json",
|
48 |
"train": "https://raw.githubusercontent.com/hollyyfc/tidytuesday-for-python/main/tidytuesday_json_train.json",
|
49 |
+
"validation": "https://raw.githubusercontent.com/hollyyfc/tidytuesday-for-python/main/tidytuesday_json_val.json"
|
50 |
}
|
51 |
|
52 |
|
|
|
103 |
datasets.SplitGenerator(
|
104 |
name=datasets.Split.TRAIN,
|
105 |
gen_kwargs={
|
106 |
+
"filepath": downloaded_files["full"]
|
107 |
}
|
108 |
),
|
109 |
datasets.SplitGenerator(
|
110 |
name=datasets.Split.VALIDATION,
|
111 |
+
gen_kwargs={
|
112 |
+
"filepath": downloaded_files["train"]
|
113 |
+
}
|
114 |
+
),
|
115 |
+
datasets.SplitGenerator(
|
116 |
+
name=datasets.Split.TEST,
|
117 |
gen_kwargs={
|
118 |
"filepath": downloaded_files["validation"]
|
119 |
}
|