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

<!-- source: en/_includes/work_src/reusage-python/get_scale_and_bias__desc.md -->
Return the scale and bias of the model.

These values affect the results of applying the model, since the model prediction results are calculated as follows:
$\sum leaf\_values \cdot scale + bias$
<!-- endsource: en/_includes/work_src/reusage-python/get_scale_and_bias__desc.md -->

## Method call format

```python
get_scale_and_bias()
```

## Type of return value

<!-- source: en/_includes/work_src/reusage-python/get_scale_and_bias__return_value_type.md -->
tuple
<!-- endsource: en/_includes/work_src/reusage-python/get_scale_and_bias__return_value_type.md -->


## Examples

```python
from catboost import CatBoostClassifier, Pool
import numpy as np

train_data = Pool(data=[[1, 4, 5, 6],
                        [4, 5, 6, 7],
                        [30, 40, 50, 60]],
                  label=[1, 1, -1],
                  weight=[0.1, 0.2, 0.3])

model = CatBoostClassifier()

print(model.get_scale_and_bias())

```

The output of this example:

```no-highlight
(1.0, 0.0)
```

