allRank
allRank is a framework for training learning-to-rank neural models based on PyTorch.
File Explorer
Download Latest Version (.zip)- __init__.py
- base.py
- cascade_models.py
- click_utils.py
- duplicate_aware.py
- __init__.py
- dataset_loading.py
- dataset_saving.py
- generate_dummy_data.py
- __init__.py
- inference_utils.py
- __init__.py
- approxNDCG.py
- bce.py
- binary_listNet.py
- lambdaLoss.py
- listMLE.py
- listNet.py
- loss_utils.py
- neuralNDCG.py
- ordinal.py
- pointwise.py
- rankNet.py
- __init__.py
- metrics.py
- model.py
- model_utils.py
- positional.py
- transformer.py
- __init__.py
- early_stop.py
- train_utils.py
- __init__.py
- args_utils.py
- command_executor.py
- config_utils.py
- experiments.py
- file_utils.py
- ltr_logging.py
- python_utils.py
- tensorboard_utils.py
- __init__.py
- config.py
- config_template.json
- main.py
- rank_and_click.py
- ndcgloss2pp.json
- ndcgloss2pp_mlp.json
- ordinal.json
- ordinal_mlp.json
- approxndcg.json
- lambdarank_atmax.json
- neuralndcg_atmax.json
- HOWTO.md
- normalize_features.py
- ci.sh
- local_config.json
- local_config_click_model.json
- run_example.sh
- run_in_docker.sh
- run_in_docker_click.sh
- run_tests.sh
- __init__.py
- test_alternative_click_models.py
- test_apply_click_model.py
- test_base_cascade_model.py
- test_diverse_clicks_model.py
- test_duplicate_click_model.py
- test_feature_click_model.py
- test_fixed_click_model.py
- test_masked_click_model.py
- test_random_click_model.py
- __init__.py
- test_approxndcg.py
- test_binary_listnet.py
- test_lambdaloss.py
- test_listmle.py
- test_listnet.py
- test_loss_ordinal.py
- test_loss_pointwise.py
- test_mrr.py
- test_ndcg.py
- test_neuralndcg.py
- test_ranknet.py
- utils.py
- __init__.py
- test_rank_slates.py
- .gitignore
- Dockerfile
- LICENSE
- Makefile
- README.md
- requirements.txt
- setup.cfg
- setup.py
# Installation Guide
1. Get the code
git clone https://github.com/allegro/allRank
Downloads the entire project code from GitHub to your computer.
cd allRank
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t allrank .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 allrank
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. Python
EasyPrerequisites
pip install -r requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
4. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation
Was this content helpful?
(0 ratings)
