DebiasConfig

class rectools.metrics.debias.DebiasConfig(iqr_coef: float = 1.5, random_state: Optional[int] = None)[source]

Bases: object

Config for debiasing method parameters.

Parameters
  • iqr_coef (float, default 1.5) – The interquartile range (IQR) coefficient required to calculate the maximum accepted popularity border (Q3 + iqr_coef * IQR), which is necessary to down-sample every item to a value that does not exceed it.

  • random_state (int, optional, default None) – Pseudorandom number generator state to control the down-sampling.

Inherited-members

Attributes

iqr_coef

random_state