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

Method get_test_evals

catboost/python-package/catboost/core.py:1842–1849  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

is_fittedMethod · 0.95
lenFunction · 0.85
CatBoostErrorClass · 0.50

Tested by

no test coverage detected