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

Method __deepcopy__

catboost/python-package/catboost/core.py:1788–1792  ·  view source on GitHub ↗
(self, _)

Source from the content-addressed store, hash-verified

1786 return self.__deepcopy__(None)
1787
1788 def __deepcopy__(self, _):
1789 state = self.__getstate__()
1790 model = self.__class__()
1791 model.__setstate__(state)
1792 return model
1793
1794 def __eq__(self, other):
1795 return self._is_comparable_to(other) and self._object == other._object

Callers 1

__copy__Method · 0.95

Calls 2

__getstate__Method · 0.95
__setstate__Method · 0.80

Tested by

no test coverage detected