Check label is not empty.
(self, label)
| 967 | raise CatBoostError("Invalid label type={}: must be array like.".format(type(label))) |
| 968 | |
| 969 | def _check_label_empty(self, label): |
| 970 | """ |
| 971 | Check label is not empty. |
| 972 | """ |
| 973 | if len(label) == 0: |
| 974 | raise CatBoostError("Labels variable is empty.") |
| 975 | |
| 976 | def _check_label_shape(self, label, samples_count): |
| 977 | """ |
no test coverage detected