Skip to main content


Recommender is a recommendation application using either item-based or user-based approaches.

Recommender is at version v0.3.0, also see change log for more details on release history.

If you like this project, feel fee to leave a few words of appreciation here Say Thanks!

Build Build Status Coverage Status
Quality Maintainability Requirements Status
Support gitter
Platform pyversion implementation

Table of contents

  1. Usage
  2. Contribution
  3. License

Usage

Install with pip

$ pip install recommender-engine

API

make_recommendation(person_to_recommend, preference_space, recommender_approach='user_based', number_of_items_to_recommend=10, similarity_measure='euclidean_distance')

	Return list of recommendation items based on the chosen approach and similarity emasure

	Parameters
	--------------
	person_to_recommend (str): user id/name to recommend to

	preference_space (dict):  keys are user id/name and values are dictionary of items and ratings

	recommender_approach (str): support 'user_based' (default) or 'item_based'

	number_of_items_to_recommend (int): number of items to recommend (default=10)

	similarity_measure (str): similarity measurement method , support 'euclidean_distance' (default), 'cosine' or 'pearson_correlation'

Example


>>> from recommender_engine import make_recommendation
>>>	result = make_recommendation(person_to_recommend = "userA",
								 preference_space = preference_space,
								 recommender_approach = 'user_based',
								 number_of_items_to_recommend = 10,
								 similarity_measure = 'euclidean_distance')

The preference space is dictionary data structure where keys are users and values are dictionary of items and ratings

preference_space = {
					'userA : {
							 'item1' : 'ratingA1, 
							 'item2' : 'ratingA2',
							  ..., 
							  'itemn' : 'ratingAn
							  }, 
					..., 
					'userZ:{
							'item1' : 'ratingZ1,
							 'item2' : 'ratingZ2',
							  ...,
							 'itemn' : 'ratingZn
							}
				    }

Tested Datasets

The project has been tested on these Datasets

  1. Jester
  2. MovieLens

Contribution Open Source Helpers

Please follow our contribution convention at contribution instruction and code of conduct

Please check out the issue file for list of issues that required helps.

Appreciation

Feel free to add your name into the list of contributors. You will automatically be inducted into Hall of Fame as a way to show my appreciation for your contributions

Hall of Fame


License

See the LICENSE file for license rights and limitations (Apache License 2.0).

Metadata

Release files for recommender-engine 0.3.0

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

Source distribution (sdist)

Source distribution for recommender-engine 0.3.0
File Size Uploaded Provenance Actions
recommender-engine-0.3.0.tar.gz 15.5 kB Without provenance Details for recommender-engine-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for recommender-engine 0.3.0
File Interpreter ABI Platform Actions
recommender_engine-0.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for recommender_engine-0.3.0-py2.py3-none-any.whl

Total release size: 31.9 kB

Release files / recommender-engine-0.3.0.tar.gz

Download URL recommender-engine-0.3.0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e4271662d44b56f3aa23a2a443ecb727d18a403329dd61c77e582e2262959f66
BLAKE2b-256 checksum
How to use checksums
fad0373cacf3904a79599ce1126b794651c2f974221f59bcf97a5623716c8269
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release files / recommender_engine-0.3.0-py2.py3-none-any.whl

Download URL recommender_engine-0.3.0-py2.py3-none-any.whl
Size 16.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bf22156c73c01fc52d24f33ad6b6d49509a074c495d3fe90d56eef6f506f9080
BLAKE2b-256 checksum
How to use checksums
be6df4cab1427c9d6bfaac3e9798bede1a08b92307bc3c85ba1d4e9b55b2ab60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Security for recommender-engine 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

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