Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
1cb3aa4e
"python-package/vscode:/vscode.git/clone" did not exist on "5cdaf1bd1ef99be6fdbad90a5e67adf50be0a982"
Commit
1cb3aa4e
authored
Dec 23, 2016
by
Guolin Ke
Browse files
fix test c_api
parent
d38ada73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/c_api_test/test.py
tests/c_api_test/test.py
+4
-4
No files found.
tests/c_api_test/test.py
View file @
1cb3aa4e
...
...
@@ -33,7 +33,7 @@ def c_str(string):
def
test_load_from_file
(
filename
,
reference
):
ref
=
None
if
reference
!=
None
:
ref
=
ctypes
.
byref
(
reference
)
ref
=
reference
handle
=
ctypes
.
c_void_p
()
LIB
.
LGBM_DatasetCreateFromFile
(
c_str
(
filename
),
c_str
(
'max_bin=15'
),
...
...
@@ -64,7 +64,7 @@ def test_load_from_csr(filename, reference):
handle
=
ctypes
.
c_void_p
()
ref
=
None
if
reference
!=
None
:
ref
=
ctypes
.
byref
(
reference
)
ref
=
reference
LIB
.
LGBM_DatasetCreateFromCSR
(
c_array
(
ctypes
.
c_int
,
csr
.
indptr
),
dtype_int32
,
...
...
@@ -99,7 +99,7 @@ def test_load_from_csc(filename, reference):
handle
=
ctypes
.
c_void_p
()
ref
=
None
if
reference
!=
None
:
ref
=
ctypes
.
byref
(
reference
)
ref
=
reference
LIB
.
LGBM_DatasetCreateFromCSC
(
c_array
(
ctypes
.
c_int
,
csr
.
indptr
),
dtype_int32
,
...
...
@@ -134,7 +134,7 @@ def test_load_from_mat(filename, reference):
handle
=
ctypes
.
c_void_p
()
ref
=
None
if
reference
!=
None
:
ref
=
ctypes
.
byref
(
reference
)
ref
=
reference
LIB
.
LGBM_DatasetCreateFromMat
(
data
.
ctypes
.
data_as
(
ctypes
.
POINTER
(
ctypes
.
c_void_p
)),
dtype_float64
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment