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

ValueError: 'axis' entry is out of bounds #4

Open
m-guggenmos opened this issue Jan 16, 2016 · 1 comment
Open

ValueError: 'axis' entry is out of bounds #4

m-guggenmos opened this issue Jan 16, 2016 · 1 comment

Comments

@m-guggenmos
Copy link

In reference to:

https://github.com/andosa/treeinterpreter/blob/master/treeinterpreter/treeinterpreter.py#L60

Taking the sum along the first axis fails, if len(values.shape) == 1, a case which I just stumbled across.

@gitwhistle
Copy link

This can also cause an issue in classification (vs regression) on line 64:

https://github.com/andosa/treeinterpreter/blob/master/treeinterpreter/treeinterpreter.py#L64

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