Skip to main content

A simple content-based recommender system

Project description

simple-recommender-rg

Description

simple-recommender-rg is a Python package that implements a simple content-based recommender system. It recommends items based on feature similarity using machine learning techniques.

This project is mainly intended for academic learning and mini-projects.

Installation

Use the package manager pip to install simple-recommender-rg.

pip install simple-recommender-rg

Usage

Enter the CSV filename followed by the .csv extension.

recommend sample.csv

To view usage help, use:

recommend -h

Example

A CSV file containing numeric feature values for different items.

| Item | Feature1 | Feature2 | Feature3 |
|------|----------|----------|----------|
| A    | 10       | 7        | 9        |
| B    | 8        | 6        | 5        |
| C    | 9        | 9        | 8        |

Working

  1. The CSV file is read using the pandas library.
  2. The first column (item names) and first row (headers) are removed before processing.
  3. Feature values are normalized using Min-Max scaling.
  4. Cosine similarity is calculated between items.
  5. Items are ranked based on similarity scores.

Output Table

| Item | Similarity Score | Rank |
|------|------------------|------|
| A    | 1.000000         | 1    |
| C    | 0.976532         | 2    |
| B    | 0.845210         | 3    |

Other Notes

  • The CSV file should not contain categorical (string) values.
  • There should be no missing values in the dataset.
  • This package is designed for educational purposes.
  • The first column and first row are removed automatically before processing.

License

MIT

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

simple_recommender_rg-0.1.8.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

simple_recommender_rg-0.1.8-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file simple_recommender_rg-0.1.8.tar.gz.

File metadata

  • Download URL: simple_recommender_rg-0.1.8.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for simple_recommender_rg-0.1.8.tar.gz
Algorithm Hash digest
SHA256 cee8262953079a3560501339abd5b9539f568b6b6692584f717777d06906ba90
MD5 4ccabfcd7508723b58456a96af079a13
BLAKE2b-256 f0bd07bc310b3a4500f37f51117659f02095770adf13958f3506c99c19efa4f3

See more details on using hashes here.

File details

Details for the file simple_recommender_rg-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_recommender_rg-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 21ac24829e753c66288e8377ccfd9e096236cdcb1018e370ccdc3ec05b34b516
MD5 283ff11707b0d9e3939362ee8b4c53ac
BLAKE2b-256 8f6e48d41b430cabac5cbb00b2be9415100caa4b17fb456a9b50cb8a3557d842

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