# Multi-class classification with Multi-hot encoded vector

**URL:** <https://discuss.huggingface.co/t/multi-class-classification-with-multi-hot-encoded-vector/31913>\
**Category:** Beginners\
**Created:** [February 17, 2023, 1:35pm UTC](https://discuss.huggingface.co/t/multi-class-classification-with-multi-hot-encoded-vector/31913 "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](https://discuss.huggingface.co/u/Rebecka)\
**Post date:** [February 17, 2023, 1:35pm UTC](https://discuss.huggingface.co/t/multi-class-classification-with-multi-hot-encoded-vector/31913/1 "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](https://discuss.huggingface.co/u/ChanceChallacombe)\
**Post date:** [February 26, 2023, 6:50am UTC](https://discuss.huggingface.co/t/multi-class-classification-with-multi-hot-encoded-vector/31913/2 "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](https://discuss.huggingface.co/u/ChanceChallacombe)\
**Post date:** [February 26, 2023, 6:51am UTC](https://discuss.huggingface.co/t/multi-class-classification-with-multi-hot-encoded-vector/31913/3 "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
