jonathan-roberts1
commited on
Commit
·
8bc3407
1
Parent(s):
e589e85
Added class_labels examples for all dataset types
Browse files
README.md
CHANGED
@@ -100,7 +100,9 @@ from datasets import load_dataset
|
|
100 |
|
101 |
hf_dataset = load_dataset('jonathan-roberts1/SATIN', DATASET_NAME, split='train') # for DATASET_NAME use one of the configs listed above (e.g., EuroSAT)
|
102 |
features = hf_dataset.features
|
103 |
-
class_labels = features['label'].names
|
|
|
|
|
104 |
|
105 |
random_index = 5
|
106 |
example = hf_dataset[random_index]
|
|
|
100 |
|
101 |
hf_dataset = load_dataset('jonathan-roberts1/SATIN', DATASET_NAME, split='train') # for DATASET_NAME use one of the configs listed above (e.g., EuroSAT)
|
102 |
features = hf_dataset.features
|
103 |
+
class_labels = features['label'].names
|
104 |
+
#class_labels = features['label'].feature.names # for the Complex Scenes datasets
|
105 |
+
#class_labels_1 = features['label_1'].names # for the Hierarchical Land Use datasets, the label field is replaced with label_1, label_2, ...
|
106 |
|
107 |
random_index = 5
|
108 |
example = hf_dataset[random_index]
|