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

Method __del__

python-package/lightgbmmt/basic.py:1776–1786  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1774 self.params = params
1775
1776 def __del__(self):
1777 try:
1778 if self.network:
1779 self.free_network()
1780 except AttributeError:
1781 pass
1782 try:
1783 if self.handle is not None:
1784 _safe_call(_LIB.LGBM_BoosterFree(self.handle))
1785 except AttributeError:
1786 pass
1787
1788 def __copy__(self):
1789 return self.__deepcopy__(None)

Callers

nothing calls this directly

Calls 2

free_networkMethod · 0.95
_safe_callFunction · 0.85

Tested by

no test coverage detected