listnet_chainer icon indicating copy to clipboard operation
listnet_chainer copied to clipboard

I am getting problem while running this code

Open rahashwini opened this issue 7 years ago • 2 comments

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

rahashwini avatar Apr 07 '18 12:04 rahashwini

Did you download files from http://research.microsoft.com/en-us/um/beijing/projects/letor/LETOR4.0/Data/MQ2007.rar ?

Your project directories should be structured like the following:

.
├── bin
│   └── train.py
├── build
│   └── MQ2007
│       ├── Fold1
│       │   ├── test.txt
│       │   ├── train.txt
│       │   └── vali.txt
│       ├── readme.txt
│       ├── S1.txt
│       └── ...
├── LICENSE
├── listnet
│   └── ...
├── README.md
└── requirements.txt

koreyou avatar Apr 08 '18 04:04 koreyou

Yes, I directory hierarchy is same. I have also extracted the rar file that containing MQ2007 dataset

On Sun, Apr 8, 2018 at 9:53 AM, Yuta Koreeda [email protected] wrote:

Did you download files from http://research.microsoft.com/ en-us/um/beijing/projects/letor/LETOR4.0/Data/MQ2007.rar .

Your project directories should be structured like the following:

. ├── bin │ └── train.py ├── build │ └── MQ2007 │ ├── Fold1 │ │ ├── test.txt │ │ ├── train.txt │ │ └── vali.txt │ ├── readme.txt │ ├── S1.txt │ └── ... ├── LICENSE ├── listnet │ └── ... ├── README.md └── requirements.txt

— 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/2#issuecomment-379519170, or mute the thread https://github.com/notifications/unsubscribe-auth/AjJ0k-wAriN4SKUaBYXXgTVrWda-UDGmks5tmZC3gaJpZM4TLDx4 .

rahashwini avatar Apr 08 '18 15:04 rahashwini