koreyou / listnet_chainer Goto Github PK
View Code? Open in Web Editor NEWa Chainer implementation of "Learning to rank: from pairwise approach to listwise approach" by Cao et al..
License: Creative Commons Zero v1.0 Universal
a Chainer implementation of "Learning to rank: from pairwise approach to listwise approach" by Cao et al..
License: Creative Commons Zero v1.0 Universal
Traceback (most recent call last):
File "G:\Implementation of the Project\Learning to Rank Algorithms\Python\ListNet+Chainer\listnet_chainer-master\listnet_chainer-master\bin\train.py", line 52, in
run(args)
File "G:\Implementation of the Project\Learning to Rank Algorithms\Python\ListNet+Chainer\listnet_chainer-master\listnet_chainer-master\bin\train.py", line 16, in run
train = dataset.create_dataset(args.train)
File "G:\Implementation of the Project\Learning to Rank Algorithms\Python\ListNet+Chainer\listnet_chainer-master\listnet_chainer-master\listnet\dataset.py", line 43, in create_dataset
v = np.array(d[1], dtype=np.float32)
TypeError: float() argument must be a string or a number, not 'map'
Please try to figure out what is problem in your code
Hello,
I am trying to execute your uploaded code with all required pre-requisite.
INFO:root:Loading dataset
Traceback (most recent call last):
File "G:\Implementation of the Project\Learning to Rank Algorithms\Python\ListNet+Chainer\listnet_chainer-master\listnet_chainer-master\bin\train.py", line 51, in
run(args)
File "G:\Implementation of the Project\Learning to Rank Algorithms\Python\ListNet+Chainer\listnet_chainer-master\listnet_chainer-master\bin\train.py", line 15, in run
train = dataset.create_dataset(args.train)
File "G:\Implementation of the Project\Learning to Rank Algorithms\Python\ListNet+Chainer\listnet_chainer-master\listnet_chainer-master\listnet\dataset.py", line 28, in create_dataset
with open(path, mode='r') as fin:
FileNotFoundError: [Errno 2] No such file or directory: 'build/MQ2007/Fold1/train.txt'
Please help me to sort out this error
MAP calculation is regarding only 1 as the "correct" label.
MQ2007 actually has [0, 1, 2], larger label representing more "relevant" data.
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.