# Chapter 5 questions

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fchapter-5-questions%2F11744%3E%5C
**Category:** Course\
**Created:** [November 15, 2021, 2:12pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fchapter-5-questions%2F11744 "2021-11-15T14:12:53Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![mdroth](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mdroth/32/29308_2.png) [@mdroth](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmdroth)%5C
**Post date:** [May 18, 2022, 11:53pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fchapter-5-questions%2F11744%2F24 "2022-05-18T23:53:05Z")

</div>

Hi there,

the last “Try it out!” task [here](https://huggingface.co/course/chapter5/5?fw=pt) asks us

1. to “create an own dataset of GitHub issues” and
2. to “fine-tune a multilabel classifier” (for bonus points 😉).

I have created [this dataset](https://huggingface.co/datasets/mdroth/transformers_issues_labels). It has 57 different labels and an instance may be labelled with any combination of those. I would like to add the class label names `["bug", "benchmark", "performance", ...]` to the dataset. Inspired by [this forum post](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-create-custom-classlabels%2F13650)%2C I have tried the following, yet without success:

```auto
features = transformers_issues_labels.features.copy()
features["arr_labels"] = ClassLabel(names=unique_labels)
transformers_issues_labels = transformers_issues_labels.map(
    lambda batch: batch, batched=False, features=features
)

TypeError: Couldn't cast array of type list<item: int64> to int64

```

=\> Two questions:

1. How to build a classifier for this task (e.g. “MultiLabelFromPretrainedClassifier” or something like this…)?
2. How can I add the class label names to my dataset (specifically to the “arr\_labels” features, assuming this makes sense)?

P.s. In any case: Thanks a ton to all contributors of this course. I am learning a lot and looking forward to part 3.

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fchapter-5-questions%2F11744)._
