본문 바로가기

IT/Python

Error : "Number of classes in y_true not equal to the number of columns in 'y_score'"

strarified_kfold를 진행하던중 만난 에러코드

roc_auc_score를 실행할때 위와같은 에러메시지가 나타난다.

 

불균형항 데이터셋을 가지고 있을경우

평가데이터에 목표 라벨 데이터가 존재 하지 않을경우 발생

n_split을 조정하여 해결가능