Commit 08c82ee6 authored by Ilya Matiach's avatar Ilya Matiach Committed by Guolin Ke
Browse files

update LightGBM SWIG wrapper (#1610)

parent 08add07b
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment