---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://catboost.ai/docs/en/concepts/r-reference.md
  - href: en/concepts/r-reference.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

# Attributes
**Attribute:** `tree_count`

#### Description



<!-- source: en/_includes/work_src/reusage-attributes/tree_count__desc.md -->
Return the number of trees in the model.

This number can differ from the value specified in the `--iterations` training parameter in the following cases:
- The training is stopped by the [overfitting detector](https://catboost.ai/docs/en/concepts/overfitting-detector.md).
- The `--use-best-model` training parameter is set to <q>True</q>.
<!-- endsource: en/_includes/work_src/reusage-attributes/tree_count__desc.md -->


**Attribute:** `feature_importances`

#### Description



<!-- source: en/_includes/work_src/reusage-attributes/feature_importances__desc.md -->
Return the calculated [feature importances](https://catboost.ai/docs/en/concepts/fstr.md). The output data depends on the type of the model's loss function:
- Non-ranking loss functions — [PredictionValuesChange](https://catboost.ai/docs/en/concepts/fstr.md#regular-feature-importance)
- Ranking loss functions — [LossFunctionChange](https://catboost.ai/docs/en/concepts/fstr.md#regular-feature-importances__lossfunctionchange)
<!-- endsource: en/_includes/work_src/reusage-attributes/feature_importances__desc.md -->
