https://github.com/owj0421/recsys_basics
Implementation of Basic Recommendation System Models with PyTorch
https://github.com/owj0421/recsys_basics
collaborative-filtering ctr-prediction pytorch recommendation recommender-system session-based-recommendation-system
Last synced: about 1 year ago
JSON representation
Implementation of Basic Recommendation System Models with PyTorch
- Host: GitHub
- URL: https://github.com/owj0421/recsys_basics
- Owner: owj0421
- License: mit
- Created: 2023-09-10T15:14:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-18T17:44:01.000Z (over 2 years ago)
- Last Synced: 2025-04-27T03:35:05.733Z (about 1 year ago)
- Topics: collaborative-filtering, ctr-prediction, pytorch, recommendation, recommender-system, session-based-recommendation-system
- Language: Python
- Homepage:
- Size: 78.1 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
Torch Recsys Basics
Implementation of Basic Recommendation System Models with PyTorch
## ๐ค Introduction
์๋
ํ์ธ์! ์ด๊ณณ์ PyTorch๋ฅผ ํ์ฉํด ๊ธฐ์ด ์ถ์ฒ์์คํ
๋ชจ๋ธ์ AtoZ๋ก ๊ตฌํํ๋ ๊ณต๊ฐ์
๋๋ค. ๋ฅ๋ฌ๋ ์ฐ๊ตฌ ๋๋ถ๋ถ์ด Torch๋ก ์ด๋ฃจ์ด์ง์๋, ํด๋น ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฌ์ฉํ ์ ๋๋ก๋ ๊ตฌํ๊ฐ์ด๋๊ฐ ์์ด ์ ์ํ๊ฒ ๋์์ต๋๋ค. Feature Engineering๊ณผ ๊ฐ์ ์ ํ๋๋ฅผ ๋ํ๊ธฐ ์ํ ํ๋์ ๋ฐฐ์ ํ๊ณ ๋ชจ๋ธ์ ์ ํํ ๊ตฌํ์ ์ค์ ์ ๋๊ณ ๊ตฌํํ์์ต๋ ์ถ์ฒ์์คํ
์ ์ฐพ๊ฑฐ๋ ๊ณต๋ถํ๋ ํ์๋ค์๊ฒ ๋์์ด ๋๊ธธ ๋ฐ๋๋๋ค. ์์ ๋กญ๊ฒ ์ธ ์ ์์ผ๋, ๋ง์ฝ ์ฝ๋์ ์๋ชป๋ ๋ถ๋ถ์ด ์๋ค๋ฉด ๊ผญ ์๋ ค์ฃผ์ธ์.
### Datasets
๋ชจ๋ ๊ตฌํ์ Movielens ๋ฐ์ดํฐ์
์ ์ฌ์ฉํด ํ๊ฐํ์ต๋๋ค.
[movielens-latest-small](https://grouplens.org/datasets/movielens/)
## ๐ Implement Details
### Collaborative Filtering(Memory Based)
|Index|Model(Review)|RMSE|nDCG@10|HR@10|F1@10|
|:-:|:-|-:|-:|-:|-:|
|1 |[User-based CF]()|0|0|0|0|
|2 |[Item-based CF]()|0|0|0|0|
### Collaborative Filtering(Model Based)
|Index|Model(Review)|RMSE|nDCG@10|HR|F1@10|
|:-:|:-|-:|-:|-:|-:|
|1 |[SVD]()|0|0|0|0|
|2 |[Matrix Factorization]()|0|0|0|0|
|3 |[Neural Collaborative Filtering]()|0|0|0|0|
### Collaborative Filtering(AutoEncoder Based)
|Index|Model(Review)|RMSE|nDCG@10|HR|F1@10|
|:-:|:-|-:|-:|-:|-:|
|5 |[AutoRec]()|0|0|0|0|
|6 |[CDAE]()|0|0|0|0|
|7 |[EASE]()|0|0|0|0|
|8 |[RecVAE]()|0|0|0|0|
### Session Based(Sequential)
|Index|Model(Review)|HR|nDCG|MRR|
|:-:|:-|:-:|:-:|:-:|
|1 |[GRU4Rec]()|0|0|0|0|0|0|
|2 |[BERT4Rec]()|0|0|0|0|0|0|
|3 |[SASRec]()|0|0|0|0|0|0|
### Factorization Machine
๊ธฐ๋ณธ์ ์ธ ์ฝ๋์ ๊ตฌ์ฑ์ deepCTR์ ์ฐธ๊ณ ํ์ต๋๋ค.
CTR Prediction์ด ์๋, 4์ ์ด์์ 1, ๋ฏธ๋ง์ 0์ผ๋ก ํ Classification์ ๋ํด ํ์ตํ ๊ฒฐ๊ณผ ์
๋๋ค.
|Index|Model(Review)|RMSE|F1|AUC|LogLoss|
|:-:|:-|:-:|:-:|:-:|:-:|
|1 |[Factorization machines](https://superficial-freeze-172.notion.site/Factorization-machines-85debc8b650a40f39156be320ec46a47?pvs=4)|0.428|0.345|0.714||
|2 |[Field Aware Factorization Machine]()|0.|0.|0.||
|3 |[Wide & Deep]()|0.413|0.468|0.740||
|4 |[Deep FM](https://superficial-freeze-172.notion.site/DeepFM-a-factorization-machine-based-neural-network-for-CTR-prediction-5891d516dbad413fb0da3e834c10771c?pvs=4)|0.408|0.467|0.752||
|5 |[Adaptive Factorization Network]()|0.|0.|0.||
## ๐ Note
๊ฐ ๊ตฌํ์ ๋ํ ๋
ผ๋ฌธ ๋ฆฌ๋ทฐ๋ [์ฌ๊ธฐ์](https://superficial-freeze-172.notion.site/e20c78a9926b47e49d0921d229f64d4f?v=e3f1f712b2cf4abb94c14730710721cf&pvs=4) ๋ณด์ค ์ ์์ต๋๋ค.