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

Method data_split_mode

python-package/xgboost/core.py:1194–1202  ·  view source on GitHub ↗

Get the data split mode of the DMatrix. .. versionadded:: 2.1.0

(self)

Source from the content-addressed store, hash-verified

1192 return ret.value
1193
1194 def data_split_mode(self) -> DataSplitMode:
1195 """Get the data split mode of the DMatrix.
1196
1197 .. versionadded:: 2.1.0
1198
1199 """
1200 ret = c_bst_ulong()
1201 _check_call(_LIB.XGDMatrixDataSplitMode(self.handle, ctypes.byref(ret)))
1202 return DataSplitMode(ret.value)
1203
1204 def slice(
1205 self, rindex: Union[List[int], np.ndarray], allow_groups: bool = False

Callers 2

feature_namesMethod · 0.95
feature_typesMethod · 0.95

Calls 2

_check_callFunction · 0.85
DataSplitModeClass · 0.70

Tested by

no test coverage detected