changed names with resolutions to just numbers instead of res_number
Browse files- airbnb_multicity.py +4 -4
airbnb_multicity.py
CHANGED
|
@@ -7,7 +7,7 @@ DESCRIPTION = "The dataset contains Airbnb data from 80 capitals and major citie
|
|
| 7 |
# DATA_URL="https://huggingface.co/datasets/kraina/airbnb_multicity/resolve/main/data/all_airbnb.parquet"
|
| 8 |
|
| 9 |
DATA_DIRS = ["benchmark", "all"]
|
| 10 |
-
RESOLUTIONS=["
|
| 11 |
|
| 12 |
class AirbnbDatasetConfig(datasets.BuilderConfig):
|
| 13 |
"""BuilderConfig """
|
|
@@ -23,15 +23,15 @@ class AirbnbDatasetConfig(datasets.BuilderConfig):
|
|
| 23 |
|
| 24 |
class AirbnbDataset(datasets.ArrowBasedBuilder):
|
| 25 |
BUILDER_CONFIG_CLASS = AirbnbDatasetConfig
|
| 26 |
-
DEFAULT_CONFIG_NAME = "
|
| 27 |
|
| 28 |
BUILDER_CONFIGS = [
|
| 29 |
AirbnbDatasetConfig(
|
| 30 |
name = res,
|
| 31 |
description = f"This is the official train test split for Airbnb Datatset in h3 resolution = {res}. Benchmark cities are: Paris, London, Rome, Melbourne, New York City, Amsterdam.",
|
| 32 |
data_url={
|
| 33 |
-
"train": f"https://huggingface.co/datasets/kraina/airbnb_multicity/resolve/main/data/{res}/airbnb_train.parquet",
|
| 34 |
-
"test": f"https://huggingface.co/datasets/kraina/airbnb_multicity/resolve/main/data/{res}/airbnb_test.parquet"
|
| 35 |
}
|
| 36 |
)
|
| 37 |
for res in RESOLUTIONS
|
|
|
|
| 7 |
# DATA_URL="https://huggingface.co/datasets/kraina/airbnb_multicity/resolve/main/data/all_airbnb.parquet"
|
| 8 |
|
| 9 |
DATA_DIRS = ["benchmark", "all"]
|
| 10 |
+
RESOLUTIONS=["8","9","10"]
|
| 11 |
|
| 12 |
class AirbnbDatasetConfig(datasets.BuilderConfig):
|
| 13 |
"""BuilderConfig """
|
|
|
|
| 23 |
|
| 24 |
class AirbnbDataset(datasets.ArrowBasedBuilder):
|
| 25 |
BUILDER_CONFIG_CLASS = AirbnbDatasetConfig
|
| 26 |
+
DEFAULT_CONFIG_NAME = "8"
|
| 27 |
|
| 28 |
BUILDER_CONFIGS = [
|
| 29 |
AirbnbDatasetConfig(
|
| 30 |
name = res,
|
| 31 |
description = f"This is the official train test split for Airbnb Datatset in h3 resolution = {res}. Benchmark cities are: Paris, London, Rome, Melbourne, New York City, Amsterdam.",
|
| 32 |
data_url={
|
| 33 |
+
"train": f"https://huggingface.co/datasets/kraina/airbnb_multicity/resolve/main/data/res_{res}/airbnb_train.parquet",
|
| 34 |
+
"test": f"https://huggingface.co/datasets/kraina/airbnb_multicity/resolve/main/data/res_{res}/airbnb_test.parquet"
|
| 35 |
}
|
| 36 |
)
|
| 37 |
for res in RESOLUTIONS
|