koreyou / listnet_chainer

a Chainer implementation of "Learning to rank: from pairwise approach to listwise approach" by Cao et al..
Creative Commons Zero v1.0 Universal
25 stars 7 forks source link

Getting error in creat_dataset() function #3

Open rahashwini opened 6 years ago

rahashwini commented 6 years ago

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

koreyou commented 6 years ago

hi. thanks for the interest in my code. Could you tell me the version of your python that you're running?

koreyou commented 6 years ago

I confirmed that this error reproduces on python 3.6.4. Could you try it out on python 2.7.12?

rahashwini commented 6 years ago

Ok, I will try it on Python 2.7.12. For neural network, you have used chainer package. Have u tried it with theano?

On Sun, Apr 8, 2018 at 10:31 AM, Yuta Koreeda notifications@github.com wrote:

I confirmed that this error reproduces on python 3.6.4. Could you try it out on python 2.7.12?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/koreyou/listnet_chainer/issues/3#issuecomment-379520654, or mute the thread https://github.com/notifications/unsubscribe-auth/AjJ0k5d-acdXvFm6k1QgRvO-R5HTWAkoks5tmZmpgaJpZM4TLD-A .