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

Function c_str

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

Convert a Python string to C string.

(string)

Source from the content-addressed store, hash-verified

122
123
124def c_str(string):
125 """Convert a Python string to C string."""
126 return ctypes.c_char_p(string.encode('utf-8'))
127
128
129def c_array(ctype, values):

Callers 15

__init__Method · 0.70
predictMethod · 0.70
inner_predictMethod · 0.70
__pred_for_cscMethod · 0.70
_lazy_initMethod · 0.70
__init_from_np2dMethod · 0.70
__init_from_list_np2dMethod · 0.70
__init_from_csrMethod · 0.70
__init_from_cscMethod · 0.70
constructMethod · 0.70
save_binaryMethod · 0.70
_update_paramsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected