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

Multinomial classification does not work #36

Open
chainsawriot opened this issue Mar 26, 2024 · 2 comments
Open

Multinomial classification does not work #36

chainsawriot opened this issue Mar 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@chainsawriot
Copy link
Collaborator

simpletransformers 0.7

require(grafzahl)
require(quanteda)
download.file("https://huggingface.co/datasets/israel/Amharic-News-Text-classification-Dataset/resolve/main/train.csv", destfile = "am_train.csv")
input <- read.csv("am_train.csv")

input_corpus <- corpus(input, text_field = "article") %>% corpus_subset(category != "")
model <- model <- grafzahl(x = input_corpus, y = "category", model_name = "castorini/afriberta_base")

Error

Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted'].Traceback:

1. grafzahl(x = input_corpus, y = "category", model_name = "castorini/afriberta_base")

2. grafzahl.corpus(x = input_corpus, y = "category", model_name = "castorini/afriberta_base")

3. py_train(data = input_data, num_labels = num_labels, output_dir = output_dir, 
 .     best_model_dir = best_model_dir, cache_dir = cache_dir, model_type = model_type, 
 .     model_name = model_name, num_train_epochs = num_train_epochs, 
 .     train_size = train_size, manual_seed = manual_seed, regression = regression, 
 .     verbose = verbose)

4. py_call_impl(callable, call_args$unnamed, call_args$named)
@chainsawriot chainsawriot added the bug Something isn't working label Mar 26, 2024
@chainsawriot
Copy link
Collaborator Author

It worked previously.

@chainsawriot
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant