fix: try using class label
Browse files
zillow.py
CHANGED
@@ -256,7 +256,10 @@ class Zillow(datasets.GeneratorBasedBuilder):
|
|
256 |
"Region ID": datasets.Value(dtype="string", id="Region ID"),
|
257 |
"Size Rank": datasets.Value(dtype="int32", id="Size Rank"),
|
258 |
"Region": datasets.Value(dtype="string", id="Region"),
|
259 |
-
"Region Type": datasets.Value(dtype="string", id="Region Type"),
|
|
|
|
|
|
|
260 |
"State": datasets.Value(dtype="string", id="State"),
|
261 |
"Home Type": datasets.Value(dtype="string", id="Home Type"),
|
262 |
"Date": datasets.Value(dtype="string", id="Date"),
|
|
|
256 |
"Region ID": datasets.Value(dtype="string", id="Region ID"),
|
257 |
"Size Rank": datasets.Value(dtype="int32", id="Size Rank"),
|
258 |
"Region": datasets.Value(dtype="string", id="Region"),
|
259 |
+
# "Region Type": datasets.Value(dtype="string", id="Region Type"),
|
260 |
+
"Region Type": datasets.ClassLabel(
|
261 |
+
num_classes=2, names=["country", "msa"]
|
262 |
+
),
|
263 |
"State": datasets.Value(dtype="string", id="State"),
|
264 |
"Home Type": datasets.Value(dtype="string", id="Home Type"),
|
265 |
"Date": datasets.Value(dtype="string", id="Date"),
|