hç commited on
Upload 2 files
Browse files- README.md +34 -3
- lightfm_book_model.pkl +3 -0
README.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 📚 Book Recommendation System using LightFM
|
| 2 |
+
|
| 3 |
+
This project builds a hybrid book recommendation system using the LightFM library.
|
| 4 |
+
It leverages collaborative and content-based filtering to suggest books to users based on ratings data.
|
| 5 |
+
|
| 6 |
+
## 📦 Dataset
|
| 7 |
+
- Source: [Goodbooks-10K Dataset](https://www.kaggle.com/datasets/zygmunt/goodbooks-10k)
|
| 8 |
+
- Files used: `books.csv`, `ratings.csv`
|
| 9 |
+
|
| 10 |
+
## 🔧 Libraries
|
| 11 |
+
- `pandas`, `numpy`, `matplotlib`
|
| 12 |
+
- `lightfm`
|
| 13 |
+
|
| 14 |
+
## 🔮 Recommendation Logic
|
| 15 |
+
- Trained a LightFM model using WARP loss function.
|
| 16 |
+
- Built a user-item interaction matrix.
|
| 17 |
+
- Predicted books that the user hasn't rated yet.
|
| 18 |
+
- Displayed top-N recommendations per user.
|
| 19 |
+
|
| 20 |
+
## 📊 Visualization
|
| 21 |
+
- Bar chart of top 10 most-rated books.
|
| 22 |
+
|
| 23 |
+
## 🚀 How to Run
|
| 24 |
+
```bash
|
| 25 |
+
pip install -r requirements.txt
|
| 26 |
+
jupyter notebook Book_Recommendation_LightFM.ipynb
|
| 27 |
+
|
| 28 |
+
✍️ Author
|
| 29 |
+
Hande Çarkcı
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
MİT licance
|
| 33 |
+
eğitim amaclı ve Streamlit uygulamanda bu modeli kullandım
|
| 34 |
+
|
lightfm_book_model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca09d5f15b084f964382d85057e3565a0835317216b6af284f20d895e62f4f9b
|
| 3 |
+
size 4025362
|