File size: 996 Bytes
4234fba
 
 
 
 
d3a0d33
 
 
 
 
03ee211
d3a0d33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
license: mit
task_categories:
- image-classification
- zero-shot-image-classification
---


# Extended label set of UC Merced for Hierarchical Multi-Label Classification

This dataset contains an extended version of the original label set of UC Merced for Hierarchical Multi-Label Classification.

## Dataset creation

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

## Loading the Dataset

To load the dataset into your project, you can use the following code snippet:

```python
import pandas as pd
from datasets import load_dataset

# Load the dataset from Hugging Face
dataset = load_dataset(
    "marjandl/UCM-HMLC", 
    split='train'
)

data = [line.split('\t')[1:] for line in dataset['text']]
df = pd.DataFrame(data)

# Set the first row as the header and drop it from the DataFrame
df.columns = df.iloc[0]
df = df.drop(0).reset_index(drop=True)