2023 IEEE SPS Video and Image Processing Cup (VIP Cup) Ophthalmic Biomarker Detection 2 Forum

Go back to competition Back to thread list Post in this thread

> "ValueError: Found input variables with inconsistent numbers of samples: [2709, 2]"

Can any one help me with this problem? Is there any problem with my csv file?
I am following the same format, but some the submission are generating same problem. Sometimes just resubmitting the same file solves the problem. But its not working now.
Thank You!!!

WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
Traceback (most recent call last):
File "/tmp/codalab/tmpJDdYIW/run/program/evaluate.py", line 73, in
f1_macro_public = f1_score(true_labels_public, predicted_labels_public, average='macro')
File "/opt/conda/lib/python3.9/site-packages/sklearn/metrics/_classification.py", line 1132, in f1_score
return fbeta_score(
File "/opt/conda/lib/python3.9/site-packages/sklearn/metrics/_classification.py", line 1270, in fbeta_score
_, _, f, _ = precision_recall_fscore_support(
File "/opt/conda/lib/python3.9/site-packages/sklearn/metrics/_classification.py", line 1556, in precision_recall_fscore_support
labels = _check_set_wise_labels(y_true, y_pred, average, labels, pos_label)
File "/opt/conda/lib/python3.9/site-packages/sklearn/metrics/_classification.py", line 1357, in _check_set_wise_labels
y_type, y_true, y_pred = _check_targets(y_true, y_pred)
File "/opt/conda/lib/python3.9/site-packages/sklearn/metrics/_classification.py", line 84, in _check_targets
check_consistent_length(y_true, y_pred)
File "/opt/conda/lib/python3.9/site-packages/sklearn/utils/validation.py", line 387, in check_consistent_length
raise ValueError(
ValueError: Found input variables with inconsistent numbers of samples: [2709, 2]

Posted by: capacitor @ Aug. 20, 2023, 2:06 p.m.

Perhaps naming the submission "submission.csv" helps with this.

Posted by: Lancelot53 @ Aug. 20, 2023, 3:41 p.m.

it doesn't help

Posted by: batohoy @ Aug. 26, 2023, 5:47 p.m.
Post in this thread