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?
1 Réponse
0
y_test and y_pred have different shape. check shape of both y_test and y_pred with shape attribute