set_group_weight

Set weights for all objects within the defined group.

Method call format

set_group_weight(group_weight)

Parameters

ParameterPossible typesDescriptionDefault value
group_weight
  • list
  • numpy.ndarray
  • pandas.DataFrame
  • pandas.Series

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

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.

Required parameter