更新 AdaBoost 部分的注视

This commit is contained in:
jiangzhonglian
2017-08-14 15:30:44 +08:00
parent 82fc610895
commit 48ce677e3d
4 changed files with 32 additions and 28 deletions

View File

@@ -257,9 +257,9 @@ def plotROC(predStrengths, classLabels):
plt.show()
'''
参考说明http://blog.csdn.net/wenyusuran/article/details/39056013
为了计算AUC我们需要对多个小矩形的面积进行累加。这些小矩形的宽度是xStep因此
可以先对所有矩形的高度进行累加最后再乘以xStep得到其总面积。所有高度的和(ySum)随
着x轴的每次移动而渐次增加。
为了计算 AUC ,我们需要对多个小矩形的面积进行累加。
这些小矩形的宽度是xStep因此可以先对所有矩形的高度进行累加最后再乘以xStep得到其总面积。
所有高度的和(ySum)随着x轴的每次移动而渐次增加。
'''
print "the Area Under the Curve is: ", ySum*xStep