(self)
| 1840 | return test_eval[0] if len(test_eval) == 1 else test_eval |
| 1841 | |
| 1842 | def get_test_evals(self): |
| 1843 | test_evals = self._object._get_test_evals() |
| 1844 | if len(test_evals) == 0: |
| 1845 | if self.is_fitted(): |
| 1846 | raise CatBoostError('The model has been trained without an eval set.') |
| 1847 | else: |
| 1848 | raise CatBoostError('You should train the model first.') |
| 1849 | return test_evals |
| 1850 | |
| 1851 | def get_evals_result(self): |
| 1852 | return self._object._get_metrics_evals() |
nothing calls this directly
no test coverage detected