Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Семенов Андрей Максимович committed Jun 18, 2024
1 parent e62bf15 commit 0ebb65f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rectools/metrics/debias.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def make_debias(self, interactions: pd.DataFrame) -> pd.DataFrame:
Algorithm:
1. Calculate item "popularity" (here: number of unique users that had interaction with the item) distribution from interactions;
1. Calculate item "popularity"
(here: number of unique users that had interaction with the item) distribution from interactions;
2. Find first (Q1) and third (Q3) quartiles in items "popularity" distribution;
3. Calculate IQR = Q3 - Q1;
4. Calculate maximum value inside by formula: Q3 + iqr_coef * IQR;
Expand Down

0 comments on commit 0ebb65f

Please sign in to comment.