해결된 질문
작성
·
257
0
시험환경에서는 제공되지 않겟지만, 궁금해서 돌려보면 아래 에러가 발생합니다. 아래 에러는 어떤 에러인지 궁금합니다.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-63-01bc5037f802> in <cell line: 2>()
1 from sklearn.metrics import roc_auc_score
----> 2 roc_auc_score(y_val, pred)
5 frames
/usr/local/lib/python3.10/dist-packages/sklearn/utils/validation.py in check_consistent_length(*arrays)
395 uniques = np.unique(lengths)
396 if len(uniques) > 1:
--> 397 raise ValueError(
398 "Found input variables with inconsistent numbers of samples: %r"
399 % [int(l) for l in lengths]
ValueError: Found input variables with inconsistent numbers of samples: [298, 497]