Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecSys not working #1255

Open
NikhielRahulSingh opened this issue Aug 18, 2024 · 0 comments
Open

RecSys not working #1255

NikhielRahulSingh opened this issue Aug 18, 2024 · 0 comments

Comments

@NikhielRahulSingh
Copy link

NikhielRahulSingh commented Aug 18, 2024

data = {
'target': [[1, 1],[1,1],[1,1]],
'prediction': [[0,0],[0,0],[0,0]],
'user_id':[1,2,3],
'item_id':[1,2,3]
}

df = pd.DataFrame(data)

data_drift_report = Report(metrics=[RecallTopKMetric(k=1)])

column_mapping = ColumnMapping(recommendations_type='rank', item_id='item_id', user_id='user_id')

report.run(current_data=df, reference_data=df,column_mapping=column_mapping)

report.show() #error

is there a way for me to achieve the above, I have tried and have not found a way to make it work.

@NikhielRahulSingh NikhielRahulSingh changed the title RecSys not wokring RecSys not working Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant