Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in case of multi-label classfication there is no way to change label column name in val.csv, and label_col parameter will be a list of label columns from labels.csv? #284

Open
aleh4d opened this issue Mar 17, 2021 · 1 comment

Comments

@aleh4d
Copy link

aleh4d commented Mar 17, 2021

Am I right to say that:
in case of multi-label classfication there is no way to change label field name in val.csv,
and label_col parameter will be a list of label columns from labels.csv?

@lingdoc
Copy link
Contributor

lingdoc commented Oct 20, 2022

your val.csv must contain a single one-hot-coded label column for each label you want to classify. with 3 labels the column heads would be (for example): toxic  aggressive  neutral

your labels.csv must contain a row for each label:

toxic
aggressive
neutral

your label_col parameter will then be a list of the labels: ["toxic", "aggressive", "neutral"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants