lightgbm.reset_parameter

lightgbm.reset_parameter(**kwargs)[source]

Create a callback that resets the parameter after the first iteration.

Note

The initial parameter will still take in-effect on first iteration.

Parameters:

**kwargs (value should be list or callable) – List of parameters for each boosting round or a callable that calculates the parameter in terms of current number of round (e.g. yields learning rate decay). If list lst, parameter = lst[current_round]. If callable func, parameter = func(current_round).

Returns:

callback – The callback that resets the parameter after the first iteration.

Return type:

_ResetParameterCallback