Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
hmnshudhmn24
/
explainable-recs-lm
like
1
Other
English
python
recommendation-system
explainable-ai
xai
recommender
transparency
License:
apache-2.0
Model card
Files
Files and versions
xet
Community
main
explainable-recs-lm
/
src
/
ranking_engine.py
hmnshudhmn24
Upload 28 files
6afc4d8
verified
about 1 month ago
raw
Copy download link
history
blame
contribute
delete
97 Bytes
class
RankingEngine
:
def
rank
(
self,s
):
return
sorted
(s,key=
lambda
x:x[
'score'
],reverse=
True
)