MCPcopy Create free account
hub / github.com/dmlc/xgboost / to_integers

Function to_integers

demo/guide-python/model_parser.py:26–28  ·  view source on GitHub ↗

Convert a sequence of bytes to a list of Python integer

(data: Union[bytes, List[int]])

Source from the content-addressed store, hash-verified

24
25
26def to_integers(data: Union[bytes, List[int]]) -> List[int]:
27 """Convert a sequence of bytes to a list of Python integer"""
28 return [v for v in data]
29
30
31@unique

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected