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

# Group weights


#### Contains
The weights of groups within the dataset.
#### Specification

- List the weight of each group on a new line.
- Use a tab as the delimiter to separate the columns on a line.

#### Row format

```
<group id><\t><weight>
```

- `group id` is the identifier of a group. Should match one of the values specified in the [Dataset in delimiter-separated values format](https://catboost.ai/docs/en/concepts/input-data_values-file.md).
- `weight` is the weight of the corresponding group.

#### Specifics

- <!-- source: en/_includes/work_src/reusage-input-data/group_weights__precedence-over-datasetdesc.md -->
  The weights from this file take precedence if they are also specified in the [Dataset in delimiter-separated values format](https://catboost.ai/docs/en/concepts/input-data_values-file.md) file.
  <!-- endsource: en/_includes/work_src/reusage-input-data/group_weights__precedence-over-datasetdesc.md -->

- <!-- source: en/_includes/work_src/reusage-input-data/group_weights__input-dataset-requirement.md -->
  The [dataset](https://catboost.ai/docs/en/concepts/input-data_values-file.md) must contain the GroupId column in order to apply the file with the group weights.
  <!-- endsource: en/_includes/work_src/reusage-input-data/group_weights__input-dataset-requirement.md -->


#### Example

```
10<\t>0.01
1007<\t>0.02
1009<\t>0.03
1017<\t>0.04
1018<\t>0.05
```



