marjandl commited on
Commit
d3a0d33
1 Parent(s): 7efeaa8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -1
README.md CHANGED
@@ -3,4 +3,34 @@ license: mit
3
  task_categories:
4
  - image-classification
5
  - zero-shot-image-classification
6
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  task_categories:
4
  - image-classification
5
  - zero-shot-image-classification
6
+ ---
7
+
8
+
9
+ # Extended label set of UC Merced for Hierarchical Multi-Label Classification
10
+
11
+ This dataset contains an extended version of the original label set of BigEarthNet-43 for Hierarchical Multi-Label Classification.
12
+
13
+ ## Dataset creation
14
+
15
+ It was created based on the CORINE Land Cover database of the year 2018 (CLC 2018), which provides detailed information about the land cover classes at multiple levels of the hierarchy
16
+
17
+ ## Loading the Dataset
18
+
19
+ To load the dataset into your project, you can use the following code snippet:
20
+
21
+ ```python
22
+ import pandas as pd
23
+ from datasets import load_dataset
24
+
25
+ # Load the dataset from Hugging Face
26
+ dataset = load_dataset(
27
+ "marjandl/UCM-HMLC",
28
+ split='train'
29
+ )
30
+
31
+ data = [line.split('\t')[1:] for line in dataset['text']]
32
+ df = pd.DataFrame(data)
33
+
34
+ # Set the first row as the header and drop it from the DataFrame
35
+ df.columns = df.iloc[0]
36
+ df = df.drop(0).reset_index(drop=True)