Skip to main content

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

Metadata

Release files for fastEASE 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastEASE 0.4.5
File Size Uploaded
fastease-0.4.5.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastEASE 0.4.5
File Interpreter ABI Platform
fastease-0.4.5-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / fastease-0.4.5.tar.gz

Download URL fastease-0.4.5.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cf41de82ceea3e1c1e95352e689fca01916867ea732cb8061e0be23cd077582e
BLAKE2b-256 checksum
How to use checksums
2401e91471342af539ca861bbad1065dc5c653d7dfcaccaec0c227eca3f637c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / fastease-0.4.5-py3-none-any.whl

Download URL fastease-0.4.5-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5de27376db4fa478b8bc3c8ba4b9d6e6a326667bc5574f816e924894793ee880
BLAKE2b-256 checksum
How to use checksums
2ddf79f46e5d1c2c18385db5bdf74dc65c5e5dd9b761bd0bb64c717d25451a34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.4.5 This release

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page