Skip to content

Pandas warning in fairness metrics #25

@mmosc

Description

@mmosc

Hi!
When computing the KL divergence, I get the following warnings from pandas:

/home/marta/miniconda3/envs/deap/lib/python3.8/site-packages/recsyslearn/fairness/utils.py:92: FutureWarning: In a future version, the Index constructor will not infer numeric dtypes when passed object-dtype sequences (matching Series behavior)
  top_n = top_n.merge(rel_matrix, on=["user", "item", "group"], how="outer")

I think we should try to conform to pandas' suggestion (or maybe silence the warning... 😅 )

Ciao!
Marta

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions