Code Monkey home page Code Monkey logo

torch-recsys-basics's Introduction

Torch Recsys Basics

Implementation of Basic Recommendation System Models with PyTorch

๐Ÿค— Introduction

์•ˆ๋…•ํ•˜์„ธ์š”! ์ด๊ณณ์€ PyTorch๋ฅผ ํ™œ์šฉํ•ด ๊ธฐ์ดˆ ์ถ”์ฒœ์‹œ์Šคํ…œ ๋ชจ๋ธ์„ AtoZ๋กœ ๊ตฌํ˜„ํ•˜๋Š” ๊ณต๊ฐ„์ž…๋‹ˆ๋‹ค. ๋”ฅ๋Ÿฌ๋‹ ์—ฐ๊ตฌ ๋Œ€๋ถ€๋ถ„์ด Torch๋กœ ์ด๋ฃจ์–ด์ง์—๋„, ํ•ด๋‹น ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•œ ์ œ๋Œ€๋กœ๋œ ๊ตฌํ˜„๊ฐ€์ด๋“œ๊ฐ€ ์—†์–ด ์ œ์ž‘ํ•˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. Feature Engineering๊ณผ ๊ฐ™์€ ์ •ํ™•๋„๋ฅผ ๋†’ํžˆ๊ธฐ ์œ„ํ•œ ํŠœ๋‹์€ ๋ฐฐ์ œํ•˜๊ณ  ๋ชจ๋ธ์˜ ์ •ํ™•ํ•œ ๊ตฌํ˜„์— ์ค‘์ ์„ ๋‘๊ณ  ๊ตฌํ˜„ํ•˜์˜€์Šต๋‹ˆ ์ถ”์ฒœ์‹œ์Šคํ…œ์„ ์ฐพ๊ฑฐ๋‚˜ ๊ณต๋ถ€ํ•˜๋Š” ํ•™์ƒ๋“ค์—๊ฒŒ ๋„์›€์ด ๋˜๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค. ์ž์œ ๋กญ๊ฒŒ ์“ธ ์ˆ˜ ์žˆ์œผ๋‚˜, ๋งŒ์•ฝ ์ฝ”๋“œ์— ์ž˜๋ชป๋œ ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด ๊ผญ ์•Œ๋ ค์ฃผ์„ธ์š”.

Datasets

๋ชจ๋“  ๊ตฌํ˜„์€ Movielens ๋ฐ์ดํ„ฐ์…‹์„ ์‚ฌ์šฉํ•ด ํ‰๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค. movielens-latest-small

๐Ÿ“š 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
2 BERT4Rec 0 0 0
3 SASRec 0 0 0

Factorization Machine

๊ธฐ๋ณธ์ ์ธ ์ฝ”๋“œ์˜ ๊ตฌ์„ฑ์€ deepCTR์„ ์ฐธ๊ณ ํ–ˆ์Šต๋‹ˆ๋‹ค.
CTR Prediction์ด ์•„๋‹Œ, 4์ ์ด์ƒ์„ 1, ๋ฏธ๋งŒ์„ 0์œผ๋กœ ํ•œ Classification์— ๋Œ€ํ•ด ํ•™์Šตํ•œ ๊ฒฐ๊ณผ ์ž…๋‹ˆ๋‹ค.

Index Model(Review) RMSE F1 AUC LogLoss
1 Factorization machines 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 0.408 0.467 0.752
5 Adaptive Factorization Network 0. 0. 0.

๐Ÿ”” Note

๊ฐ ๊ตฌํ˜„์— ๋Œ€ํ•œ ๋…ผ๋ฌธ ๋ฆฌ๋ทฐ๋Š” ์—ฌ๊ธฐ์„œ ๋ณด์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

torch-recsys-basics's People

Contributors

owj0421 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.