# set_group_weight

Set weights for all objects within the defined group.

## Method call format

set_group_weight(group_weight)


## Parameters

### group_weight

#### Description

The weights of all objects within the defined groups from the input data in the form of one-dimensional array-like data.

Used for calculating the final values of trees. By default, it is set to 1 for all objects in all groups.

The length of this array must be equal to the number of objects in the dataset.

All weights within one group must be equal.

Only non-negative values are supported.

Possible types

• list
• numpy.ndarray
• pandas.DataFrame
• pandas.Series

Default value

Required parameter