A library to do recommendations based on matrix
Project description
Recommend_py
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.6.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.6.tar.gz.
File metadata
- Download URL: recommend_py-0.1.6.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 |
0c1eeb2c65b0eb8054f53cc52bbb5347d67e2a95ce6408482f0bafe05979459f
|
|
| MD5 |
eb8708ce019e625ba5b962de5069fc9b
|
|
| BLAKE2b-256 |
a2fb87a3d43c03c74ad662081bbfb42abae6d11b48220b5ee2ce79f151c070ae
|
File details
Details for the file recommend_py-0.1.6-py3-none-any.whl.
File metadata
- Download URL: recommend_py-0.1.6-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 |
edf70bee120233aa51cfc549f1aafc6bc0fb276fce116b2a0e1d9d0511796784
|
|
| MD5 |
4f9039866d6693bce8e983f8fdbed32c
|
|
| BLAKE2b-256 |
d789dfae4f05718713c8c62b72bba4e363a3c738238493a53c1a5d5956129761
|