---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_test_eval.md
  - href: en/concepts/python-reference_catboostranker_get_test_eval.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

<!-- source: en/concepts/python-reference_catboost_get_test_eval.md -->
# get_test_eval

<!-- source: en/_includes/work_src/reusage/get_test_eval__dd__div.md -->
Return the formula values that were calculated for the objects from the validation dataset provided for training.

Only models trained with a validation dataset are supported. This method throws an exception if the input model is not trained or is trained without a validation dataset.
<!-- endsource: en/_includes/work_src/reusage/get_test_eval__dd__div.md -->

## Method call format {#call-format}

```python
get_test_eval()
```

## Type of return value {#output-format}

<!-- source: en/_includes/work_src/reusage/get_test_val--returned-value.md -->
Depends on the machine learning problem being solved:
- Regression and binary classification: a one-dimensional array
- Multiclassification: a two-dimensional array
<!-- endsource: en/_includes/work_src/reusage/get_test_val--returned-value.md -->
<!-- endsource: en/concepts/python-reference_catboost_get_test_eval.md -->