Skip to main content

A library to do recommendations based on matrix

Project description

Recommend_py

Description

this is a library to do recommendations based on matrix

Functions

  • Function 1: is_utility(df) input the matrix and return if it is a utility matrix
  • Function 2: to_utility(df, id_col_num) input the matrix and the column number of the id and return the utility matrix
  • Function 3: utility_normalize(df) input the utility matrix and return the normalized utility matrix
  • Function 4: utility_standardize(df) input the utility matrix and return the standardized utility matrix
  • Function 5: similarity_calculation(df, mean_same_item) input the utility matrix and the minimum number of same items and return the similarity matrix
  • Function 6: recommend_calculation(df, top_n, mean_score) input the utility matrix, the number of top items to recommend and the minimum score a similar user must give for an item to be recommended and return the recommendation matrix

Installation

To install this project, clone the repository and install the required packages:

pip install pandas
pip install numpy
pip install scikit-learn

Usage

To use this project, import the library and call the functions:

import recommend_py

recommend_py.is_utility(df)
recommend_py.to_utility(df, id_col_num)
recommend_py.utility_normalize(df)
recommend_py.utility_standardize(df)
recommend_py.similarity_calculation(df, mean_same_item)
recommend_py.recommend_calculation(df, top_n, mean_score)

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

recommend_py-0.1.5.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.

recommend_py-0.1.5-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file recommend_py-0.1.5.tar.gz.

File metadata

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

File hashes

Hashes for recommend_py-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ca6117a508657b40a815b7b973a6b1460b968530eb4fa09c6130da0f33a5791a
MD5 273902639fc1118540b2a323514eac17
BLAKE2b-256 1dea0d2a56a0477ca7a0c2cffc1f7d0292a0a7a5528fd1c23a917b9673e3e42c

See more details on using hashes here.

File details

Details for the file recommend_py-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: recommend_py-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.4

File hashes

Hashes for recommend_py-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a63c68782032fcc3a2db0edd68ce4bbaf09d8af47d0d981014432d77f3901301
MD5 c5a0bd2a3590940f5b64538bab1f0928
BLAKE2b-256 ebe9d2f13e3c3e12ee4470ddca7048c6b873836d8f95bb5d58c2a4b8cf7d0178

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