Skip to main content

A simple recommendation system using implicit library

Project description

Easy Recommender

A simple and efficient recommendation system library using implicit collaborative filtering and LightFM.

Features

  • Simple API for building recommendation systems
  • Support for both implicit and explicit feedback
  • Built on top of proven libraries (implicit, LightFM)
  • Easy data preprocessing utilities

Installation

pip install easy-recommender

Quick Start

from easy_recommender import recommend, process_df, build_feature_data
import pandas as pd

# Load your data
df = pd.read_csv('your_ratings.csv')

# Process the data
processed_df = process_df(df)

# Build features
user_features, item_features = build_feature_data(df)

# Get recommendations
recommendations = recommend(
    processed_df, 
    user_features, 
    item_features, 
    user_id=123, 
    num_recommendations=10
)

print(recommendations)

Requirements

  • Python >=3.12
  • pandas >=2.0.0
  • scikit-learn >=1.3.0
  • numpy >=1.24.0
  • implicit >=0.7.0
  • lightfm >=1.17

License

MIT License

References

This implementation is based on the approach described in: https://zenn.dev/genda_jp/articles/2c2a1b5d185741

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

easy_recommender-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

easy_recommender-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file easy_recommender-0.1.0.tar.gz.

File metadata

  • Download URL: easy_recommender-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for easy_recommender-0.1.0.tar.gz
Algorithm Hash digest
SHA256 77747bb90188c5ffdf4dd03cddcfd5c7ef0593e7fd455d63b1971ae34d597c28
MD5 0acff1d3890305332a5a7c15270d085b
BLAKE2b-256 971325cf919d0143c0ed54a8f0d29c007a8528e848c35c6d4242eabf0491dafa

See more details on using hashes here.

File details

Details for the file easy_recommender-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easy_recommender-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b92f9f50fc7d5948f28f07680a0d51eeb38a8d6e05235c128676b9fd1eeb6a29
MD5 250bab645a91a584c66a48e40a307cc8
BLAKE2b-256 d6f5c3c9da76cfbaa36f4012f5fa611996a5f4b19936d9b6d4e2a3c2ce28db8c

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