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 Distribution
recommend_py-0.1.3.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file recommend_py-0.1.3.tar.gz.
File metadata
- Download URL: recommend_py-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
518969fe4559e798754ea21b028d03c5da55f4ecd633cb077a0e19b0ba95f842
|
|
| MD5 |
84b84f8fb633fc82834ade27f7da8d5a
|
|
| BLAKE2b-256 |
06e605e9148452ab006a59fe0aa003c8b3a08b6303fcd4d823fd52570ad0b2de
|
File details
Details for the file recommend_py-0.1.3-py3-none-any.whl.
File metadata
- Download URL: recommend_py-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec7abf055fd3dd0f822fa6c070317d396d4da86118f495c34e8f9f438adb62b0
|
|
| MD5 |
e8b68e702293d10e736430d3fc250950
|
|
| BLAKE2b-256 |
22f0a787d5aaabdbb4eb5b9fddd67186e389dd8438611dfb2b2412b00c4071ec
|