Datasets:
Upload titanic.py
Browse files- titanic.py +1 -14
titanic.py
CHANGED
@@ -8,19 +8,6 @@ import pandas
|
|
8 |
|
9 |
|
10 |
VERSION = datasets.Version("1.0.0")
|
11 |
-
_BASE_FEATURE_NAMES = [
|
12 |
-
"has_survived",
|
13 |
-
"passenger_class",
|
14 |
-
"name",
|
15 |
-
"sex",
|
16 |
-
"age",
|
17 |
-
"sibsp",
|
18 |
-
"parch",
|
19 |
-
"ticket",
|
20 |
-
"fare",
|
21 |
-
"cabin",
|
22 |
-
"embarked"
|
23 |
-
]
|
24 |
|
25 |
DESCRIPTION = "Titanic dataset from the UCI ML repository."
|
26 |
_HOMEPAGE = "https://www.kaggle.com/datasets/vinicius150987/titanic3"
|
@@ -74,7 +61,7 @@ class Titanic(datasets.GeneratorBasedBuilder):
|
|
74 |
downloads = dl_manager.download_and_extract(urls_per_split)
|
75 |
|
76 |
return [
|
77 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloads[
|
78 |
]
|
79 |
|
80 |
def _generate_examples(self, filepath: str):
|
|
|
8 |
|
9 |
|
10 |
VERSION = datasets.Version("1.0.0")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
DESCRIPTION = "Titanic dataset from the UCI ML repository."
|
13 |
_HOMEPAGE = "https://www.kaggle.com/datasets/vinicius150987/titanic3"
|
|
|
61 |
downloads = dl_manager.download_and_extract(urls_per_split)
|
62 |
|
63 |
return [
|
64 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloads["train"]})
|
65 |
]
|
66 |
|
67 |
def _generate_examples(self, filepath: str):
|