shiba24 / learning2rank

Learning to rank with neuralnet - RankNet and ListNet
481 stars 141 forks source link

How to run/use this code? #7

Closed nickedes closed 6 years ago

nickedes commented 7 years ago

I did the following :

$ git clone  https://github.com/shiba24/learning2rank.git
$ python learning2rank/__init__.py
Traceback (most recent call last):
  File "learning2rank/__init__.py", line 1, in <module>
    import utils, rank, regression
  File "/mnt/E4481D43481D1640/Various/books/ML-Course/pw/learning2rank/rank/__init__.py", line 1, in <module>
    import ListNet, RankNet
ModuleNotFoundError: No module named 'ListNet'

Shows this error.

What should I do?

alejandromorrison commented 7 years ago

I have sure that if you want to initialize the repositor in excellence says in the README.md

that you'll only need to use from learning2rank.rank import RankNet Model = RankNet.RankNet()

shiba24 commented 6 years ago

Thank you @alejandromorrison ! :)