Skip to main content

A library to do recommendations based on matrix

Project description

Recopy

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 recopy

recopy.is_utility(df)
recopy.to_utility(df, id_col_num)
recopy.utility_normalize(df)
recopy.utility_standardize(df)
recopy.similarity_calculation(df, mean_same_item)
recopy.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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

recommend_py-0.1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: recommend_py-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa15d09a0f687147dcb088215697c327be6bdc6fe7e644a5b926391277b8f3bf
MD5 b9e16d24c7cd7f95ba7332986a1dda27
BLAKE2b-256 3bb2b76e63fd2e268992b46dba38878a84807d01ac853fd18807f312ca5b1812

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