Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dmlc/xgboost
/ _has_array_protocol
Function
_has_array_protocol
python-package/xgboost/data.py:1310–1311 ·
view source on GitHub ↗
(data: DataType)
Source
from the content-addressed store, hash-verified
1308
1309
1310
def
_has_array_protocol(data: DataType) -> bool:
1311
return
hasattr(data,
"__array__"
)
1312
1313
1314
def
_convert_unknown_data(data: DataType) -> DataType:
Callers
2
dispatch_data_backend
Function · 0.85
dispatch_meta_backend
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected