Standardised Library for the Benchmarking of News Recommenders Systems
Project description
nrslib
This library is a modular, end-to-end pipeline for news recommender systems.
Quick Start
Main Technologies
Familarity with the follow tools are recommended to use this library.
PyTorch Lightning - a lightweight PyTorch wrapper for high-performance AI research. Think of it as a framework for organizing your PyTorch code.
Hydra - a framework for elegantly configuring complex applications. The key feature is the ability to dynamically create a hierarchical configuration by composition and override it through config files and the command line.
TorchMetrics - a collection of 80+ PyTorch metrics implementations and an easy-to-use API to create custom metrics.
Lightning-Hydra-Template - A clean and scalable template to kickstart your deep learning project.
Running a model
Import the library
import nrslib
Export default configs
nrslib.export_default_config(“~/configs”)
Choose and edit configs in the open console dialog and start training afterwards
nrslib.start_train(“~/configs”, [“experiment=naml.yaml”])
To test a model, run
nrslib.start_test(“~/configs”, [“experiment=naml.yaml”])
To extend a model or datamodule inherit it
from nrslib.src.models.naml import NAML
class ImprovedNAML(NAML):
Then adjust the configurations to use the new class
_target_: path.to.class.ImprovedNAML
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nrslib-0.0.1.tar.gz.
File metadata
- Download URL: nrslib-0.0.1.tar.gz
- Upload date:
- Size: 57.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17c0c2caea73fb6dc7d84cd534960648c0f014c293dd4ce5f8b50f4816265cec
|
|
| MD5 |
61cfa41ad4775ba51a00c3f8c0f9f263
|
|
| BLAKE2b-256 |
0a5b5b733591d05c15215a377c14657fb0045365215c2cfca1d480582475f0e5
|
File details
Details for the file nrslib-0.0.1-py3-none-any.whl.
File metadata
- Download URL: nrslib-0.0.1-py3-none-any.whl
- Upload date:
- Size: 98.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaf1dfe7c9f0f51ed2cfd76dc4f369cfc123587efc41028b9aa8fe142defcf3b
|
|
| MD5 |
82d8de3d55926aae95855c111413adbd
|
|
| BLAKE2b-256 |
e70306f07af710e2b55c687c6eab42f5485e37213ec97e35f395510823d39786
|