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

```python
from catboost import CatBoost
import numpy as np

train_data = np.random.randint(1, 100, size=(100, 10))
train_labels = np.random.randint(2, size=(100))

model = CatBoost()

print(model.get_scale_and_bias())

```

The output of this example:

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