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

Function _load_lib

python-package/lightgbmmt/basic.py:23–30  ·  view source on GitHub ↗

Load LightGBM library.

()

Source from the content-addressed store, hash-verified

21
22
23def _load_lib():
24 """Load LightGBM library."""
25 lib_path = find_lib_path()
26 if len(lib_path) == 0:
27 return None
28 lib = ctypes.cdll.LoadLibrary(lib_path[0])
29 lib.LGBM_GetLastError.restype = ctypes.c_char_p
30 return lib
31
32
33_LIB = _load_lib()

Callers 1

basic.pyFile · 0.85

Calls 1

find_lib_pathFunction · 0.70

Tested by

no test coverage detected