MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / _update_params

Method _update_params

python-package/lightgbmmt/basic.py:1173–1181  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

1171 return self
1172
1173 def _update_params(self, params):
1174 if self.handle is not None and params is not None:
1175 _safe_call(_LIB.LGBM_DatasetUpdateParam(self.handle, c_str(param_dict_to_str(params))))
1176 if not self.params:
1177 self.params = copy.deepcopy(params)
1178 else:
1179 self.params_back_up = copy.deepcopy(self.params)
1180 self.params.update(params)
1181 return self
1182
1183 def _reverse_update_params(self):
1184 self.params = copy.deepcopy(self.params_back_up)

Callers 2

trainFunction · 0.80
cvFunction · 0.80

Calls 4

_safe_callFunction · 0.85
param_dict_to_strFunction · 0.85
updateMethod · 0.80
c_strFunction · 0.70

Tested by

no test coverage detected