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

train_data = [[0, 3],
              [4, 1],
              [8, 1],
              [9, 1]]
train_labels = [0, 0, 1, 1]

model = CatBoostClassifier(loss_function='Logloss')
model.fit(train_data, train_labels, verbose=False)

print model.get_borders()

```

```python
{0: [2.0, 6.0, 8.5], 1: [2.0]}
```

