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

> input variable with inconsistent number of samples

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/tmpmJeHLx/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]

same output file sometimes get accepted and sometimes get rejected

Posted by: Obito @ Aug. 20, 2023, 7:22 p.m.

I was facing the same problem. You can try renaming the csv file 'submission.csv' and zip file something else. It worked for me as one of the member suggested me!

Posted by: capacitor @ Aug. 20, 2023, 8:34 p.m.
Post in this thread