- Machine Learning ๐ค
- Counterfactual Learning ๐
- Information Retrieval ๐
rjagerman / pytorchltr Goto Github PK
View Code? Open in Web Editor NEWLearning to Rank in PyTorch
Home Page: https://pytorchltr.readthedocs.io
License: MIT License
Learning to Rank in PyTorch
Home Page: https://pytorchltr.readthedocs.io
License: MIT License
pytorchltr fails to install on Python 3.11 with an error message as below.
It seems this is due to an incompatibility of Python 3.11 with an old version of cython
. The same error also happens in other packages, for instance, aio-libs/aiohttp#6600
I tried to build the package manually from source with new dependencies and Python 3.11, and this worked.
Could you update the packages on pypi so that it is compatible with Python 3.11?
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/private/var/folders/_k/g4dqk3gd5svd86l4c4fw2ds00000gn/T/pip-build-env-lj0oeimo/overlay/lib/python3.11/site-packages/numpy/core/include -I/Users/akreuzer/virtualenvs/test4/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c pytorchltr/datasets/svmrank/parser/svmrank_parser.c -o build/temp.macosx-14-arm64-cpython-311/pytorchltr/datasets/svmrank/parser/svmrank_parser.o
pytorchltr/datasets/svmrank/parser/svmrank_parser.c:220:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
It would be great if you also provide the AppoxMRR loss.
The input to an LTR loss function comprises three tensors:
scores
: a tensor of size (batch_size, number of scores)
relevance
: a tensor of size (batch_size, number of relevance scores)
n
: a tensor of size (batch_size) ( the number of docs per learning instance)
Could you provide a better explanation of n
?
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.