X Tutup
The Wayback Machine - https://web.archive.org/web/20201024192840/https://github.com/apachecn/AiLearning/issues/534
Skip to content
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

关于随机森林有个问题 #534

Open
guohaoyuan opened this issue Jul 8, 2019 · 0 comments
Open

关于随机森林有个问题 #534

guohaoyuan opened this issue Jul 8, 2019 · 0 comments

Comments

@guohaoyuan
Copy link

@guohaoyuan guohaoyuan commented Jul 8, 2019

AiLearning/src/py2.x/ml/7.RandomForest/randomForest.py 第111行
gini += float(size)/D * (proportion * (1.0 - proportion)) # 个人理解:计算代价,分类越准确,则 gini 越小
是不是少了一个2,见下:
gini += float(size)/D * (2*proportion * (1.0 - proportion)) # 个人理解:计算代价,分类越准确,则 gini 越小

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.
X Tutup