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

check the shape for mat, csr and csc in prediction #2464

Merged
merged 12 commits into from
Oct 3, 2019
Prev Previous commit
Next Next commit
Update test_.py
guolinke authored Sep 29, 2019

Verified

This commit was signed with the committer’s verified signature. The key has expired.
addaleax Anna Henningsen
commit ac981fb196b874b133dafd9254062ee5062c5df7
6 changes: 3 additions & 3 deletions tests/c_api_test/test_.py
Original file line number Diff line number Diff line change
@@ -105,9 +105,9 @@ def load_from_csr(filename, reference):
c_array(ctypes.c_int, csr.indices),
csr.data.ctypes.data_as(ctypes.POINTER(ctypes.c_void_p)),
dtype_float64,
len(csr.indptr),
len(csr.data),
csr.shape[1],
ctypes.c_int64(len(csr.indptr)),
ctypes.c_int64(len(csr.data)),
ctypes.c_int64(csr.shape[1]),
c_str('max_bin=15'),
ref,
ctypes.byref(handle))