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
08c82ee6
Commit
08c82ee6
authored
Aug 25, 2018
by
Ilya Matiach
Committed by
Guolin Ke
Aug 25, 2018
Browse files
update LightGBM SWIG wrapper (#1610)
parent
08add07b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
swig/lightgbmlib.i
swig/lightgbmlib.i
+2
-1
No files found.
swig/lightgbmlib.i
View file @
08c82ee6
...
...
@@ -16,11 +16,12 @@
%
inline
%
{
char
*
LGBM_BoosterSaveModelToStringSWIG
(
BoosterHandle
handle
,
int
start_iteration
,
int
num_iteration
,
int64_t
buffer_len
,
int64_t
*
out_len
)
{
char
*
dst
=
new
char
[
buffer_len
]
;
int
result
=
LGBM_BoosterSaveModelToString
(
handle
,
num_iteration
,
buffer_len
,
out_len
,
dst
)
;
int
result
=
LGBM_BoosterSaveModelToString
(
handle
,
start_iteration
,
num_iteration
,
buffer_len
,
out_len
,
dst
)
;
if
(
result
!=
0
)
{
return
nullptr
;
}
...
...
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