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

Function c_array

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

Convert a Python array to C array.

(ctype, values)

Source from the content-addressed store, hash-verified

127
128
129def c_array(ctype, values):
130 """Convert a Python array to C array."""
131 return (ctype * len(values))(*values)
132
133
134def param_dict_to_str(data):

Callers 1

set_feature_nameMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected