Learning to rank library
Project description
Vespa for Data Scientists
Motivation
This library contains application specific code related to data manipulation and analysis of different Vespa use cases. The Vespa python API is used to interact with Vespa applications from python for faster exploration.
The main goal of this space is to facilitate prototyping and experimentation for data scientists. Please visit Vespa sample apps for producuction-ready use cases and Vespa docs for in-depth Vespa documentation.
Install
Code to support and reproduce the usecases documented here can be found
in the learntorank
library.
Install via PyPI:
pip install learntorank
Development
All the code and content of this repo is created using nbdev by editting notebooks. We will give a summary below about the main points required to contribute, but we suggest going through nbdev tutorials to learn more.
Setting up environment
-
Create and activate a virtual environment of your choice. We recommend pipenv.
pipenv shell
-
Install Jupyter Lab (or Jupyter Notebook if you prefer).
pip3 install jupyterlab
-
Create a new kernel for Jupyter that uses the virtual environment created at step 1.
- Check where the current list of kernels is located with
jupyter kernelspec list
. - Copy one of the existing folder and rename it to
learntorank
. - Modify the
kernel.json
file that is inside the new folder to reflect thepython3
executable associated with your virtual env.
- Check where the current list of kernels is located with
-
Install
nbdev
library:pip3 install nbdev
-
Install
learntorank
in development mode:pip3 install -e .[dev]
Most used nbdev commands
From your terminal:
-
nbdev_help
: List all nbdev commands available. -
nbdev_readme
: UpdateREADME.md
based onindex.ipynb
-
Preview documentation while editing the notebooks:
nbdev_preview --port 3000
-
Workflow before pushing code:
nbdev_test --n_workers 2
: Execute all the tests inside notebooks.- Tests can run in parallel but since we create Docker containers we suggest a low number of workers to preserve memory.
nbdev_export
: Export code from notebooks to the python library.nbdev_clean
: Clean notebooks to avoid merge conflicts.
-
Publish library
nbdev_bump_version
: Bump library version.nbdev_pypi
: Publish library to PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file learntorank-0.0.15.tar.gz
.
File metadata
- Download URL: learntorank-0.0.15.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c7c69ee273273b612d0a8b46a8413ce33261cc1534e8ad79a411153d11f2fc |
|
MD5 | dc55f50881b74648d31df53121d60b5b |
|
BLAKE2b-256 | 48e0d56ad04fd87070e6e5b91dc4978fbe26540ebbe1202b1f463d36b5ab33dd |
File details
Details for the file learntorank-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: learntorank-0.0.15-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d50f3dfb4dc9c6c26a554e0cf813dcea21cefb7d502a87c8974189d37c7ff64 |
|
MD5 | 715dffc2f4fe5e598b7af51951ce3787 |
|
BLAKE2b-256 | e90a1891f4bbf340bfb83d7e1fbcd6edbbaf14fd462043927a6e740dc3b02c52 |