(self, params)
| 1734 | |
| 1735 | class _CatBoostBase(object): |
| 1736 | def __init__(self, params): |
| 1737 | init_params = params.copy() if params is not None else {} |
| 1738 | stringify_builtin_metrics(init_params) |
| 1739 | self._init_params = init_params |
| 1740 | if 'thread_count' in self._init_params and self._init_params['thread_count'] == -1: |
| 1741 | self._init_params.pop('thread_count') |
| 1742 | if 'fixed_binary_splits' in self._init_params and self._init_params['fixed_binary_splits'] is None: |
| 1743 | self._init_params['fixed_binary_splits'] = [] |
| 1744 | # cache of processed _init_params with synonyms taken into account |
| 1745 | self._canonized_params: Optional[Dict[str, object]] = None |
| 1746 | self._object = _CatBoost() |
| 1747 | |
| 1748 | def __repr__(self) -> str: |
| 1749 | params_str = ", ".join(f"{key}={val!r}" for key, val in sorted(self._init_params.items())) |
nothing calls this directly
no test coverage detected