Я пытался получить отчет о классификации в виде словаря.Таким образом, в соответствии с документацией scikit-learn 0.20, я делаю:
from sklearn import metrics
rep = metrics.classification_report(y_true, y_pred, output_dict=True)
Но получаю сообщение об ошибке
TypeError: classification_report() got an unexpected keyword argument 'output_dict'
The scikit-learn module in my machine was initially 0.19.1 but even after updating it to 0.20, the same error message shows.