Machine Learning with Python on Sensitivity | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Machine Learning with Python on Sensitivity

I have an error from writing the code below: from sklearn.metrics import recall_score sensitivity_score = recall_score print(sensitivity_score(y_test, y_pred)) ValueError: Found input variables with inconsistent numbers of samples: [222, 887] Can anyone advise?

15th Jun 2022, 6:02 PM
Nervin Siew
Nervin Siew - avatar
1 ответ
0
y_test and y_pred have different shape. check shape of both y_test and y_pred with shape attribute
19th Jun 2022, 4:59 AM
sid
sid - avatar