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

Method set_params

python-package/lightgbmmt/sklearn.py:353–371  ·  view source on GitHub ↗

Set the parameters of this estimator. Parameters ---------- **params Parameter names with their new values. Returns ------- self : object Returns self.

(self, **params)

Source from the content-addressed store, hash-verified

351 return params
352
353 def set_params(self, **params):
354 """Set the parameters of this estimator.
355
356 Parameters
357 ----------
358 **params
359 Parameter names with their new values.
360
361 Returns
362 -------
363 self : object
364 Returns self.
365 """
366 for key, value in params.items():
367 setattr(self, key, value)
368 if hasattr(self, '_' + key):
369 setattr(self, '_' + key, value)
370 self._other_params[key] = value
371 return self
372
373 def fit(self, X, y,
374 sample_weight=None, init_score=None, group=None,

Callers 2

__init__Method · 0.95

Calls

no outgoing calls

Tested by 1