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

IndexError: too many indices for array #5

Open
Mrxuefei opened this issue May 30, 2017 · 1 comment
Open

IndexError: too many indices for array #5

Mrxuefei opened this issue May 30, 2017 · 1 comment

Comments

@Mrxuefei
Copy link

Thanks for your implementation!
When I want to train my model,I have a x_train(32300,92160) y_train(32300,1),but I got an error:

- Scanning and fitting for X ((32300,)) and y ((32300,)) started
- Window shape: [1, 23040] Total windows: 69121
Traceback (most recent call last):
File "gcForest_fer.py", line 71, in
mgc_forest.fit(x_train, y_train)
File "/home/wangjian/wj/deep_forest.py", line 68, in fit
for mgs in self.mgs_instances
File "/home/wangjian/wj/deep_forest.py", line 191, in scan
sliced_X, sliced_y = self.slices(X, y)
File "/home/wangjian/wj/deep_forest.py", line 154, in slices
windows_slices_list = X[(slice(None),) + axis_slices]
IndexError: too many indices for array.
Can you tell me why I am wrong? Thank you!

@leopiney
Copy link
Owner

Hi @Mrxuefei

I've just merged a PR with some major improvements on the MGS algorithm. Can you try again with the latest version of the code?

Kind regards,

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