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.

```bash
recommend sample.csv

To view usage help, use:

```bash
recommend -h



## Example

A CSV file containing numeric feature values for different items.

```bash
| 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

```bash
| 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 License

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.3.tar.gz (2.8 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.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_recommender_rg-0.1.3.tar.gz
  • Upload date:
  • Size: 2.8 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.3.tar.gz
Algorithm Hash digest
SHA256 f140ba4f1ca60ceedb71eff246a6aef4148198f4789680c0c6d529f31bf2618e
MD5 8259a46cf70bc078fd2304f232864df8
BLAKE2b-256 b32110387314538e059f9fd05273589bf7fc1427ab48ab89fa7efc9ad308b425

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_recommender_rg-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bdb2a5c7390473edb9568604e829b71d9bf359ccd50dbeea9ee644efc01df462
MD5 cb4a18d5b467b0c216c828524603e8a3
BLAKE2b-256 3589e2ec0374acf1ef616a7e3273b42d1614f5814dcb2994905028d4b058aa5e

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