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

bug report in interpretability_module.py #2

Open
ForeverYoung666 opened this issue Mar 2, 2023 · 2 comments
Open

bug report in interpretability_module.py #2

ForeverYoung666 opened this issue Mar 2, 2023 · 2 comments

Comments

@ForeverYoung666
Copy link

in interpretability_module.py line 98:
max_depth = int(np.ceil(np.log2(iforest.max_samples)))
there is a bug here: if you train iforest model with parameters: max_samples = 1.0,iforest.max_samples will be 1.0 and the "max_depth" here will be 0. actually you want iforest.max_samples to be the number of training samples

@rcrupi
Copy link

rcrupi commented Apr 3, 2023

Could the solution be substitute "iforest.max_samples" with "iforest.max_samples_"?

@ForeverYoung666
Copy link
Author

ForeverYoung666 commented Apr 3, 2023 via email

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

2 participants