August 2019
Intermediate to advanced
342 pages
9h 35m
English
The classification report for the GradientBoostingClassifier metrics is shown in the following code:
print('classification report')print(metrics.classification_report(ytest, y_pred))print("Accuracy is :")print(metrics.accuracy_score(ytest, y_pred))print('Area under the curve : %f' % (metrics.roc_auc_score(ytest, y_pred)))classification report precision recall f1-score support 0 1.00 1.00 1.00 17030 1 0.74 0.70 0.72 33avg / total 1.00 1.00 1.00 17063Accuracy is : 0.998945085858Area under the curve : 0.848250
Read now
Unlock full access