haowei01 / pytorch-examples Goto Github PK
View Code? Open in Web Editor NEWtrain models in pytorch, Learn to Rank, Collaborative Filter, Heterogeneous Treatment Effect, Uplift Modeling, etc
train models in pytorch, Learn to Rank, Collaborative Filter, Heterogeneous Treatment Effect, Uplift Modeling, etc
Hi! Thanks for this excellent repo, it's very informative.
I've noticed that in your implementation of LambdaRank (specifically, on line 178) you sort the rank data frame by relevance in ascending order (which is the default for pandas' sort_values function).
Every other implementation of LambdaRank I've looked at (allRank, tensorflow-LTR) seems to order relevance levels in a descending order - and I'd have to agree with them (since you want higher relevance items towards the front of the array).
Sorry if I've misunderstood. Thanks.
Thank you for publishing the great repo and I definitely am learning a lot from this repo!!!
One thing I just noticed when I was working on investigating the dataset(Personalize Expedia Hotel Searches - ICDM 2013) was that some columns contain the large amount of Null
so that removing those columns or imputing the missing values might improve the result!
Anyway, I will try myself as well!
pytorch-examples/ranking/data_loaders/load_expedia.py
Lines 17 to 38 in 6c217bb
Hi~Thank you for providing such an excellent work! But I have some questions about the calculation of the "decay_diff" term. ( LambdaRank.py, line 197)
I noticed that you are using "sort_order" as the discounted factor.
Sort_order is the the indices that would sort Y, which means sort_order[0] is the index of the document which is the most relevant to the query. But this is not cosistent with the gain_diff calculation!
Gain_diff (i, j) is the gain difference between douc i and douc j,but decay_diff is not the decay difference between douc i and douc j.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.