Check label length and dimension.
(self, label, samples_count)
| 974 | raise CatBoostError("Labels variable is empty.") |
| 975 | |
| 976 | def _check_label_shape(self, label, samples_count): |
| 977 | """ |
| 978 | Check label length and dimension. |
| 979 | """ |
| 980 | if len(label) != samples_count: |
| 981 | raise CatBoostError("Length of label={} and length of data={} is different.".format(len(label), samples_count)) |
| 982 | |
| 983 | def _check_baseline_type(self, baseline): |
| 984 | """ |
no test coverage detected