| 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) |