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

# get_borders

<!-- source: en/_includes/work_src/reusage-python/get_borders__desc__div.md -->
Return the list of borders for numerical features.
<!-- endsource: en/_includes/work_src/reusage-python/get_borders__desc__div.md -->


## Method call format {#method-call-format}

```python
get_borders()
```

## Example {#usage-example}

```python
from catboost import CatBoost

train_data = [[1, 4, 5, 6],
              [4, 5, 6, 7],
              [30, 40, 50, 60]]

train_labels = [10, 20, 30]

model = CatBoost()

model.fit(train_data,
          train_labels,
          verbose=False)

print(model.get_borders())

```

Output:
```
{0: [2.5, 17.0], 1: [4.5, 22.5], 2: [5.5, 28.0], 3: [6.5, 33.5]}
```

