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 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.4.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.4.tar.gz.
File metadata
- Download URL: recommend_py-0.1.4.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 |
dc1c75a378eee39c66766df0a40284995678b724ea9b67a4891b744d7e16e7c7
|
|
| MD5 |
1b8088572529887294895a0d25804fbb
|
|
| BLAKE2b-256 |
f5d1c6bae1304739a54e4d10ce2185c8ce42c92bfad68203c7cbabc94d704e38
|
File details
Details for the file recommend_py-0.1.4-py3-none-any.whl.
File metadata
- Download URL: recommend_py-0.1.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05d9035877c60d10d623dec32048108a50a4fa81e74b0dac2e5b7f048c58e8f7
|
|
| MD5 |
df0c19a38074ced0232abfa9e5c12bd6
|
|
| BLAKE2b-256 |
372fe0dc4aa1b653a37da473e315961a8f26931ef9996f7d4ede88f03796ca01
|