MCPcopy Create free account
hub / github.com/catboost/catboost / slice

Method slice

catboost/python-package/catboost/core.py:1135–1140  ·  view source on GitHub ↗
(self, rindex)

Source from the content-addressed store, hash-verified

1133 raise CatBoostError("Invalid thread_count type={} : must be an integer".format(type(thread_count)))
1134
1135 def slice(self, rindex):
1136 if not isinstance(rindex, ARRAY_TYPES):
1137 raise CatBoostError("Invalid rindex type={} : must be array like".format(type(rindex)))
1138 slicedPool = Pool(None, data_can_be_none=True)
1139 slicedPool._take_slice(self, rindex)
1140 return slicedPool
1141
1142 def train_eval_split(self, has_time, is_classification, eval_fraction, save_eval_pool):
1143 train_pool = Pool(None, data_can_be_none=True)

Callers 12

test_slice_poolFunction · 0.95
shap_interaction_valuesFunction · 0.45
build_native.tsFile · 0.45
installFunction · 0.45
ciFunction · 0.45
build_model.tsFile · 0.45
make_reference_dataFunction · 0.45
preprocess_dataFunction · 0.45
CatboostIpython.jsFile · 0.45

Calls 5

isinstanceFunction · 0.85
PoolClass · 0.70
CatBoostErrorClass · 0.50
typeClass · 0.50
formatMethod · 0.45

Tested by 6

test_slice_poolFunction · 0.76
shap_interaction_valuesFunction · 0.36
make_reference_dataFunction · 0.36
preprocess_dataFunction · 0.36