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: Number of features of the model must match the input. Model n_features is 9 and input n_features is 13 #45

Closed
hengzhe-zhang opened this issue Mar 2, 2021 · 2 comments · Fixed by #56
Labels
bug Something isn't working

Comments

@hengzhe-zhang
Copy link

It seems that the latest version of deep forest has some bugs in terms of "sklearn" backend. I don't know the exact reason, but it seems that there may exist transformation errors in the deep forest package, which makes the data dimensions unmatched in fitting and prediction steps.

ValueError: Number of features of the model must match the input. Model n_features is 9 and input n_features is 13

@xuyxu
Copy link
Member

xuyxu commented Mar 2, 2021

Hi @zhenlingcn, thanks for reporting! Could you provide some codes on reproducing the problem? I will take a look.

@xuyxu xuyxu added the needtriage Further information is requested label Mar 2, 2021
@xuyxu
Copy link
Member

xuyxu commented Mar 5, 2021

Hi @zhenlingcn, I met the similar problem if the entire model only has one cascade layer. Could you check if this is also the case in your problem?

@xuyxu xuyxu added bug Something isn't working and removed needtriage Further information is requested labels Mar 5, 2021
@xuyxu xuyxu closed this as completed in #56 Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants