-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第3章_决策树算法 - ApacheCN #426
Comments
缺少了 majorityCnt 方法的实现 |
在底下的源码链接有。 |
决策树源码 DecisionTree中计算香农熵的第二种实现方法中的计算概率应该是: |
小哥哥,能不能提交一下PR? 这个代码完全是按照作者写得来优化的。 |
小哥哥 这两区别大吗?变小数? |
为什么网页打不开 |
firstStr=inputTree.keys()[0] 这句话报错,TypeError: 'dict_keys' object is not subscriptable |
firstStr=inputTree.keys()[0] 这句话报错,TypeError: 'dict_keys' object is not subscriptable |
这个主要是 3.x 升级了API,试试: firstStr=list(inputTree.keys())[0] 如果方便的话,你们测试完,也可以提交一下最新代码! |
github还不太会用,不知道怎么提交,经过测试,以下两处需要修改,其他类似地方也据此修改即可。 |
你改复杂呢,差不多的意思
|
https://ailearning.apachecn.org/#/docs/ml/3.决策树
kmeans聚类选择最优K值python实现:
https://blog.csdn.net/xyisv/article/details/82430107
The text was updated successfully, but these errors were encountered: