https://github.com/alexkychen/hmproduct
H&M product recommendation project
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.6%) to scientific vocabulary
Repository
H&M product recommendation project
Basic Info
- Host: GitHub
- Owner: alexkychen
- Language: Jupyter Notebook
- Default Branch: main
- Size: 2.57 MB
Statistics
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
HMproduct
H&M personalized fashion recommendations
Project goal: Provide product recommendations based on previous purchase
Kaggle project link: https://www.kaggle.com/c/h-and-m-personalized-fashion-recommendations
Recommender Systems
+-- Collaborative filtering
| +-- Memory-based
| | +-- User-user similarity (User-based)
| | +-- Item-item similarity (Item-based)
| | (use consine similarity or Euclidian distance)
| |
| +-- Model-based
| (use Matrix Factorization, SVD)
|
+-- Content-based
| (use item-property similarity, user past preferences)
|
+-- Hybrid
General questions
- Given that some customer_id don't have transaction history, how do we recommend products to these customers?
- Intuitively, purchasing a fashion product could be influenced by gender (women vs. men's cloths), age, season (e.g., winter vs. summer clothes), price, and possibly area (customer data include zip code). Can we tell whether these factors actually influence customer purchase from the datasets?
- The customer data include FN (customer gets Fashion News or not), Active (customer is active in communication or not), clubmemberstatus, and fashionnewsfrequency. How would this information influence customers' purchasing behavior?
- How should we split data into training and validation sets?
Outcome evaluation
- Top-selling model: Only recommend top selling products to every customer
- Random model: Randomly recommend 12 products to each customer
- Compare outcomes between our model and Fixed or Random model
Data input and output
- Input: 1371980 customerid (in samplesubmission.csv)
- Output: 12 articleid for each customerid
Models to use
- Collaborative filtering
- user-user collaborative filtering / user-based recommender
- Create binary vector of purchased items for each customer, |customer| article1 | article2 | article_3 | |--|--|--|--| | Ben | 1 | 1 | 1 | | John | 1 | 0 | 1 | | David| 1 | 0 | 0 |
- Pairwise calculate cosine similarity between customers
from sklearn.metrics import pairwise vector_Ben = [[1,1,1]] pairwise.cosine_similarity([[1,1,0]],[[1,0,1]]) #For Ben and John - For a target customer, identify other customers with highest cosine similarity
- Recommend products purchased by other customers but not yet purchased by target customer
- item-item collaborative filtering (e.g., Amazon)
- Transpose the above matrix and run similar procedure
- Content-based filtering (based on the features of items themselves)
- Hybrid recommendations
References
Concept overview
- How to Build a Product Recommendation System using Machine Learning
- What are Product Recommendation Engines?
- Machine Learning for Recommender systems — Part 1 (algorithms, evaluation and cold start)
- Recommender Systems in Python 101 -Introduction to Recommender Systems
Collaborative Filtering (CF)
- Various Implementations of Collaborative Filtering
- Building a movie recommender system with Python
- Building a Song Recommendation System using Cosine Similarity and Euclidian Distance
- Build a Recommendation Engine With Collaborative Filtering
CF user-based
CF item-based
CF model-based
Content-based Recommender
Evaluation metrics
Owner
- Name: Alex Chen
- Login: alexkychen
- Kind: user
- Repositories: 2
- Profile: https://github.com/alexkychen
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- Jinja2 ==3.0.3
- MarkupSafe ==2.0.1
- Pillow ==9.0.1
- Pygments ==2.11.2
- Send2Trash ==1.8.0
- appnope ==0.1.2
- argon2-cffi ==21.3.0
- argon2-cffi-bindings ==21.2.0
- asttokens ==2.0.5
- attrs ==21.4.0
- backcall ==0.2.0
- black ==22.1.0
- bleach ==4.1.0
- cffi ==1.15.0
- click ==8.0.3
- cycler ==0.11.0
- debugpy ==1.5.1
- decorator ==5.1.1
- defusedxml ==0.7.1
- entrypoints ==0.4
- executing ==0.8.2
- fonttools ==4.29.1
- iniconfig ==1.1.1
- ipykernel ==6.9.0
- ipython ==8.0.1
- ipython-genutils ==0.2.0
- jedi ==0.18.1
- joblib ==1.1.0
- jsonschema ==4.4.0
- jupyter-client ==7.1.2
- jupyter-core ==4.9.1
- jupyterlab-pygments ==0.1.2
- kiwisolver ==1.3.2
- matplotlib ==3.5.1
- matplotlib-inline ==0.1.3
- mistune ==0.8.4
- mypy-extensions ==0.4.3
- nbclient ==0.5.10
- nbconvert ==6.4.2
- nbformat ==5.1.3
- nest-asyncio ==1.5.4
- notebook ==6.4.8
- numpy ==1.22.2
- packaging ==21.3
- pandas ==1.4.1
- pandocfilters ==1.5.0
- parso ==0.8.3
- pathspec ==0.9.0
- patsy ==0.5.2
- pexpect ==4.8.0
- pickleshare ==0.7.5
- platformdirs ==2.5.0
- pluggy ==1.0.0
- prometheus-client ==0.13.1
- prompt-toolkit ==3.0.28
- ptyprocess ==0.7.0
- pure-eval ==0.2.2
- py ==1.11.0
- pycparser ==2.21
- pyparsing ==3.0.7
- pyrsistent ==0.18.1
- pytest ==7.0.1
- python-dateutil ==2.8.2
- pytz ==2021.3
- pyzmq ==22.3.0
- scikit-learn ==1.0.2
- scipy ==1.8.0
- seaborn ==0.11.2
- six ==1.16.0
- sklearn ==0.0
- stack-data ==0.1.4
- statsmodels ==0.13.2
- terminado ==0.13.1
- testpath ==0.5.0
- threadpoolctl ==3.1.0
- tomli ==2.0.1
- tornado ==6.1
- traitlets ==5.1.1
- typing_extensions ==4.0.1
- wcwidth ==0.2.5
- webencodings ==0.5.1
- xgboost ==1.5.2