mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Fix lightgbm binding keyword argument issue (#251)
This commit is contained in:
parent
a3ad6a0e50
commit
6064080232
@ -118,11 +118,12 @@ class PatchLIGHTgbmModelIO(PatchBaseModelIO):
|
||||
except Exception:
|
||||
pass
|
||||
return callback
|
||||
params, train_set = args
|
||||
|
||||
kwargs.setdefault("callbacks", []).append(trains_lightgbm_callback())
|
||||
ret = original_fn(params, train_set, **kwargs)
|
||||
ret = original_fn(*args, **kwargs)
|
||||
if not PatchLIGHTgbmModelIO.__main_task:
|
||||
return ret
|
||||
params = args[0] if args else kwargs['params']
|
||||
for k, v in params.items():
|
||||
if isinstance(v, set):
|
||||
params[k] = list(v)
|
||||
|
Loading…
Reference in New Issue
Block a user