---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://catboost.ai/docs/en/concepts/python-reference_catboostregressor_get_scale_and_bias.md
  - href: en/concepts/python-reference_catboostregressor_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 {#method-call-format}

```python
get_scale_and_bias()
```

## Type of return value {#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 {#examples}

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

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

eval_data = [[2, 4, 6, 8],
             [1, 4, 50, 60]]

train_labels = [10, 20, 30]

model = CatBoostRegressor()

print(model.get_scale_and_bias())

```

The output of this example:

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

