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

<!-- source: en/concepts/python-reference_catboost_save_borders.md -->
# save_borders

Save the model borders to a file.

## Method call format

```python
save_borders(fname)
```

## Parameters

### fname

#### Description

The name of the output file with borders.

**Possible types**

string

**Default value**

Required parameter

## Type of return value

A file with model borders.
<!-- endsource: en/concepts/python-reference_catboost_save_borders.md -->
