MCPcopy Create free account
hub / github.com/catboost/catboost / get_param

Method get_param

catboost/python-package/catboost/core.py:3765–3782  ·  view source on GitHub ↗

Get param value from CatBoost model. Parameters ---------- key : string The key to get param value from. Returns ------- value : The param value of the key, returns None if param do not exist.

(self, key)

Source from the content-addressed store, hash-verified

3763 return self
3764
3765 def get_param(self, key):
3766 """
3767 Get param value from CatBoost model.
3768
3769 Parameters
3770 ----------
3771 key : string
3772 The key to get param value from.
3773
3774 Returns
3775 -------
3776 value :
3777 The param value of the key, returns None if param do not exist.
3778 """
3779 value = self._init_params.get(key)
3780 if value is not None:
3781 return deepcopy(value)
3782 return None
3783
3784 def get_params(self, **_unused_kwargs):
3785 """

Callers 5

_prepare_train_paramsMethod · 0.95
_predictMethod · 0.95
_staged_predictMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected