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

4.3-4.4 treeCreater.py中计算grain_ratio的问题 #11

Open
byraid218 opened this issue Oct 8, 2024 · 1 comment
Open

4.3-4.4 treeCreater.py中计算grain_ratio的问题 #11

byraid218 opened this issue Oct 8, 2024 · 1 comment

Comments

@byraid218
Copy link

在计算grain_ratio时,若IV为0,会出现grain_ratio返回值为None的除0的报错,应该是需要特殊处理的,此时的grain_ratio应该是为0?

@byraid218
Copy link
Author

同样的问题在计算entroy时似乎也有,当p = 0时,ent也应该等于0

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

No branches or pull requests

1 participant