alibaba / alibaba/EasyTransfer
classification_report error
- Dominant language
- Python
- Stars
- 861
- Forks
- 162
- PR merge metrics
- No merged PRs in 30d
Description
File "multitask_finetune.py", line 160, in main
tnews_report = classification_report(all_tnews_gts, all_tnews_preds, digits=4)
File "/usr/local/lib64/python3.6/site-packages/sklearn/metrics/classification.py", line 1568, in classification_report
name_width = max(len(cn) for cn in target_names)
ValueError: max() arg is an empty sequence
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at multitask_finetune.py line 160 and inspect how all_tnews_gts, all_tnews_preds, and the inputs to sklearn's classification_report are produced. Reproduce the failure by running the relevant multitask fine-tuning entry point, then verify that the classification report completes without the empty-sequence error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, scikit-learn
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100