(self, state)
| 1803 | return this |
| 1804 | |
| 1805 | def __setstate__(self, state): |
| 1806 | model_str = state.get('handle', None) |
| 1807 | if model_str is not None: |
| 1808 | handle = ctypes.c_void_p() |
| 1809 | out_num_iterations = ctypes.c_int(0) |
| 1810 | _safe_call(_LIB.LGBM_BoosterLoadModelFromString( |
| 1811 | c_str(model_str), |
| 1812 | ctypes.byref(out_num_iterations), |
| 1813 | ctypes.byref(handle))) |
| 1814 | state['handle'] = handle |
| 1815 | self.__dict__.update(state) |
| 1816 | |
| 1817 | def free_dataset(self): |
| 1818 | """Free Booster's Datasets. |
nothing calls this directly
no test coverage detected