set_weight

Set weights for all input objects.

Method call format

set_weight(weight)

Parameters

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

The weight of each object in the input data in the form of a one-dimensional array-like data.

By default, it is set to 1 for all objects.

Only non-negative values are supported.

Required parameter