Skip to main content

An easy-to-use Python library for building EASE recommendation systems with CUDA

Project description

fast EASE for CUDA

Python version

EASY is a unique and decisive approach to recommendation for a limited number of users and items. One challenge is that the matrix inversion process becomes computationally intensive, requiring significant processing time on the central processing unit (CPU). This issue is addressed in the current project by leveraging CUDA, a powerful technology specifically designed for parallel processing. The key distinction is that this solution is intended not for research purposes but rather for deployment in production environments.

Framework

Framework

Structure

  • .github: GitHub Actions workflows.
  • src: Library's source code.
  • tests: Unit tests.
  • .editorconfig: Editor settings for consistent coding style.
  • .gitignore: Excludes files generated by Python and Poetry.
  • LICENSE: License file.
  • Makefile: Manage tasks like testing, linting, and formatting.
  • pyproject.toml: PyPi's configuration file.

Getting Started

bash:

pip install fastEASE
mkdir dataset
wget --no-check-certificate https://files.grouplens.org/datasets/movielens/ml-1m.zip -O dataset/ml-1m.zip
unzip dataset/ml-1m.zip -d dataset/

python:

k = 5
pipeline = PipelineEASE(
    user_item_it=DatasetML1M.load_interactions(
        "dataset/ml-1m"
    ),
    min_item_freq=1,
    min_user_interactions_len=5,
    max_user_interactions_len=32,
    calc_ndcg_at_k=True,
    k=k,
    predict_next_n=False,
)
print(f"nDCG@{k} = {pipeline.ndcg:.4}")

Prerequisites

  • Python >= 3.10
  • GNU Make

Tested on Ubuntu 24.04 LTS and Debian 12. But the template should work on other operating systems as well.

Setting Things Up

  1. Clone the repository:

    git clone https://github.com/fkrasnov2/fastEASE
    cd fastEASE
    
  2. Install dependencies:

    make install
    

Development Workflow Management

# Run the unit tests
make test
# Lint the code
make lint

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastease-0.3.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastEASE-0.3.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file fastease-0.3.2.tar.gz.

File metadata

  • Download URL: fastease-0.3.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for fastease-0.3.2.tar.gz
Algorithm Hash digest
SHA256 34561323707d98cd063860dc4882d295d17441a94143ead33ecbfd3148c059f8
MD5 b78ef9e450828caf4e0a30284a37c55d
BLAKE2b-256 c3f80271f83a29d55a4f8b8306e9bb4865ffa0484ebbebf51e2acc28c909a883

See more details on using hashes here.

File details

Details for the file fastEASE-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: fastEASE-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for fastEASE-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc982ada3752c30221c3d066430924ee2c3e86f3d0b03c0740fe3f36220c71a7
MD5 6c570e29bdd1a73892d662c3e3549b29
BLAKE2b-256 6a85683558c688a8671de9d82c282bde03378b8435a7bf0de6a5ad0213a19528

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page