ThilinaRajapakse / simpletransformers

Transformers for Information Retrieval, Text Classification, NER, QA, Language Modelling, Language Generation, T5, Multi-Modal, and Conversational AI
https://simpletransformers.ai/
Apache License 2.0
4.07k stars 727 forks source link

ValueError: multiclass-multioutput format is not supported #1576

Open aneeshafedo opened 1 month ago

aneeshafedo commented 1 month ago

Describe the bug I am trying to train a Multi-Label Classification on regression mode following the example here. My dataset looks like below.

latitude            longitude         text
-29.23333   -177.9167   "Kermadec Islands Nature Reserve, Raoul Island, The Terraces, Matatirohia, Raoul Island Accommodation House Grounds"
-29.23333   -177.9167   "Kermadec Islands, Raoul I, Matatirohia, Raoul Accommodation House Grounds"
-29.233333  177.916667  "New Zealand; Kermadec Ecological Region and District, Raoul Island, Bells Gully north of DoC camp (site K)"
-29.242138  -177.9605   "Kermadec Islands, Raoul Island, near Western Spring"
-29.24223   -177.9448   "Kermadec Islands, Raoul I, Ravine 8, Track to Western Springs"
-29.246 -177.927    "Kermadec Islands: Raoul Meteorologiacal Station, Hostel garden"

However I am getting below error when trying to train data on this dataset.

ValueError: multiclass-multioutput format is not supported

However when "evaluate_during_training": False I am not getting the error. But without providing the evaluation dataset, the trained model is not performing well.

Is there any workaround for this. I am using the latest version of simpletransformers model. I also tried with multiple other previous versions.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

aneeshafedo commented 1 month ago

@ThilinaRajapakse will you be able to help me on this.