# Multi-class classification with Multi-hot encoded vector

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmulti-class-classification-with-multi-hot-encoded-vector%2F31913%3E%5C
**Category:** Beginners\
**Created:** [February 17, 2023, 1:35pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmulti-class-classification-with-multi-hot-encoded-vector%2F31913 "2023-02-17T13:35:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rebecka](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Rebecka](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRebecka)%5C
**Post date:** [February 17, 2023, 1:35pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmulti-class-classification-with-multi-hot-encoded-vector%2F31913%2F1 "2023-02-17T13:35:42Z")

</div>

Hi, I am very new to the huggingface community and a newbie. 😃

In my Sentiment Analysis training set I have a multi-hot encoded vector for the labels, where each 1 represents the existance of the label: [1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0].

I am trying to proceed with some tutorials based provided by Huggingface but to my knowledge there seems to be nothing regarding my problem.

```auto
# train_ds:
Dataset({
    features: ['work_id', 'labels', 'text'],
    num_rows: 307102
})

# train_ds.features: 
{'work_id': Value(dtype='string', id=None), 

'labels': Sequence(feature=ClassLabel(names=['pornographic-content', 'violence', 'death', 'sexual-assault', 'abuse', 'blood', 'suicide', 'pregnancy', 'child-abuse', 'incest', 'underage', 'homophobia', 'self-harm', 'dying', 'kidnapping', 'mental-illness', 'dissection', 'eating-disorders', 'abduction', 'body-hatred', 'childbirth', 'racism', 'sexism', 'miscarriages', 'transphobia', 'abortion', 'fat-phobia', 'animal-death', 'ableism', 'classism', 'misogyny', 'animal-cruelty'], id=None), length=-1, id=None), 

'text': Value(dtype='string', id=None)}

```

Could someone help me, could I am not really sure how to proceed

Best thanks,  
Rebecka

---

<div class="post-metadata">

**Author:** ![ChanceChallacombe](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@ChanceChallacombe](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FChanceChallacombe)%5C
**Post date:** [February 26, 2023, 6:50am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmulti-class-classification-with-multi-hot-encoded-vector%2F31913%2F2 "2023-02-26T06:50:11Z")

</div>

Have a similar issue, did you figure it out?

---

<div class="post-metadata">

**Author:** ![ChanceChallacombe](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@ChanceChallacombe](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FChanceChallacombe)%5C
**Post date:** [February 26, 2023, 6:51am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmulti-class-classification-with-multi-hot-encoded-vector%2F31913%2F3 "2023-02-26T06:51:13Z")

</div>

There are options for binary multi label problems but not for multi class tasks with multiple hot encoded labels
