Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run "run_example.sh" #44

Open
supercar1 opened this issue Jun 2, 2022 · 3 comments
Open

How to run "run_example.sh" #44

supercar1 opened this issue Jun 2, 2022 · 3 comments

Comments

@supercar1
Copy link

I've been trying several says to run "run_example.sh" but I'm not having any success, can someone help?
I have already installed docker, tried to create an image and container with the provided dockerfile, and when I run "./run_example.sh" on terminal, it opens the code in Visual Studio Code... But doesn't do anything.

Any help is appreciated, thanks in advance!

@kretes
Copy link
Contributor

kretes commented Jun 22, 2022

Hello.

This is strange that vs code opens. If you investigate the script yourself - https://github.com/allegro/allRank/blob/master/scripts/run_example.sh - you can see there is just docker called.

Is there any output in the terminal?

What is the output of docker image ls | grep allrank ?

@supercar1
Copy link
Author

Hi, and thanks for your answer!
I later managed to run the code in spyder, by running first the "generate_dummy_data.py", and then the "main.py".

To run the main.py, I typed in spyder's console:
runfile('C:/allrank/allrank/rank_and_click.py', args='--job-dir /allrank/test_run1 --run-id test_run1 --config-file-name /allrank/scripts/local_config.json --input-model-path /allrank/test_run1/results/test_run/model.pkl --roles vali', wdir='C:/allrank/allrank')
(If anyone needs to do the same, remember to adjust for your file path)

On another note, is there any estimate for when the prediction of a set will be available? Right now it seems only a model is trained, without any predictions made.

Thanks in advance! :)

@kretes
Copy link
Contributor

kretes commented Jul 8, 2022

Hi, what do you mean by prediction of a set? Once you have an LTRModel you can use its score method to get the scores. See

def score(self, x, mask, indices):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants