-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
check the shape for mat, csr and csc in prediction #2464
Conversation
Close-reopen for CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can something similar be done for predictions for data from a file?
Please add a simple test from the original issue:
|
There are more changes than I expected. So I think we should test all cases, including the the mat, libsvm file and CSR format. |
Sure! What do you think about changing the original type to avoid casting? #2464 (comment) Does this PR already include that check? |
Yeah, as the zero-based and one-based libsvm format have the different number of columns. |
3dc9c08
to
4b1f0c0
Compare
@guolinke I added tests in the latest commit. As we do not support a case when data for prediction is a list of arrays, I tried to check it for validation. And it seems that validation shape is not covered by this PR, right?
|
yeah, validation is not converted for now. |
due the need of pr #2485, I will merge this |
partially improve #812