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

Function is_numpy_1d_array

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

Check whether data is a numpy 1-D array.

(data)

Source from the content-addressed store, hash-verified

57
58
59def is_numpy_1d_array(data):
60 """Check whether data is a numpy 1-D array."""
61 return isinstance(data, np.ndarray) and len(data.shape) == 1
62
63
64def is_1d_list(data):

Callers 4

list_to_1d_numpyFunction · 0.85
param_dict_to_strFunction · 0.85
c_float_arrayFunction · 0.85
c_int_arrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected