gpboost.reset_parameter
- gpboost.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 function) – List of parameters for each boosting round or a customized function 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 function func, parameter = func(current_round).
- Returns:
callback – The callback that resets the parameter after the first iteration.
- Return type:
function