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
a3862f15
Unverified
Commit
a3862f15
authored
Sep 30, 2020
by
Nikita Titov
Committed by
GitHub
Sep 30, 2020
Browse files
[python] Use ctypes for parameters of DLL functions for Dataset (#3423)
parent
f60c14f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+2
-2
No files found.
python-package/lightgbm/basic.py
View file @
a3862f15
...
@@ -1731,9 +1731,9 @@ class Dataset(object):
...
@@ -1731,9 +1731,9 @@ class Dataset(object):
ptr_string_buffers
=
(
ctypes
.
c_char_p
*
num_feature
)(
*
map
(
ctypes
.
addressof
,
string_buffers
))
ptr_string_buffers
=
(
ctypes
.
c_char_p
*
num_feature
)(
*
map
(
ctypes
.
addressof
,
string_buffers
))
_safe_call
(
_LIB
.
LGBM_DatasetGetFeatureNames
(
_safe_call
(
_LIB
.
LGBM_DatasetGetFeatureNames
(
self
.
handle
,
self
.
handle
,
num_feature
,
ctypes
.
c_int
(
num_feature
)
,
ctypes
.
byref
(
tmp_out_len
),
ctypes
.
byref
(
tmp_out_len
),
reserved_string_buffer_size
,
ctypes
.
c_size_t
(
reserved_string_buffer_size
)
,
ctypes
.
byref
(
required_string_buffer_size
),
ctypes
.
byref
(
required_string_buffer_size
),
ptr_string_buffers
))
ptr_string_buffers
))
if
num_feature
!=
tmp_out_len
.
value
:
if
num_feature
!=
tmp_out_len
.
value
:
...
...
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