Praful932 / Kitabe

Book Recommendation System built for Book Lovers๐Ÿ“–. Simply Rate โญ some books and get immediate recommendations๐Ÿคฉ
https://kitabe.up.railway.app/
MIT License
167 stars 153 forks source link
ajax book-recomendation book-recommender css deep-learning django embeddings funksvd goodbooks-10k goodreads heroku html javascript machine-learning python recommendation-engine recommendation-system surprise svd web-application

1

Kitabe (Book in Hindi) is a Book Recommendation System built for all you Book Lovers๐Ÿ“–. Simply Rate โญ some books and get immediate recommendations tailored for you ๐Ÿคฉ.
See Demo ๐ŸŽฅ

Website shields.io Build Status contributions welcome GitHub license
Hits Maintenance GitHub stars GitHub forks GitHub watchers

For Contributing ๐Ÿ’œ and setting Up head here.

Contents

Demo ๐ŸŽฅ

kitabe
Live Application ๐ŸŒ

Objective โœ

Our objective is to build an application for all Book Lovers โ™ฅ like us out there where all you have to do is rate some of your favorite books and the application will do it's voodoo magic ๐Ÿง™โ€โ™‚๏ธ and give you some more books that you may love๐Ÿ˜ to read.

Dataset ๐Ÿงพ

The Dataset that we used for this task is the goodbooks-10k dataset. It consists of 10k books with a total of 6 million ratings. That's huge right! ๐Ÿ˜ฎ. There are some more huge datasets such as Book-Crossings but they are kinda old ๐Ÿ˜ฌ.

Dataset Structure

GoodBooks10k
    โ”œโ”€โ”€ books.csv         # Contains book info with book-id
    โ”œโ”€โ”€ ratings.csv       # Maps user-id to book-id and rating
    โ”œโ”€โ”€ book_tags.csv     # Contains tag-id associated with book-ids
    โ”œโ”€โ”€ tags.csv          # Contains tag-name associated with tag-id
    โ”œโ”€โ”€ to_read.csv       # Contains book-ids marked as to-read by user

PreProcessing ๐Ÿ› 

Since this is a recommendation problem, we have to make sure that the books.csv is as clean as possible and only consider those ratings whose book-id is present, same goes for vice versa.

More Cleaning for books.csv

Model Exploration ๐Ÿคฏ

For Recommendation Problems there are multiple approaches that are possible:

We experimented with several methods and chose Embedding Matrix & Term Frequency.

๐Ÿ›  Code for every step can be found in the Notebooks and Files Section.

Final Result ๐Ÿ˜

The Image says it All.

coggle

Project Structure ๐Ÿ’โ€โ™€๏ธ

Kitabe
โ”‚
โ”œโ”€โ”€โ”€BookRecSystem               # Main Project Directory
โ”‚
โ”œโ”€โ”€โ”€mainapp                     # Project Main App Directory
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€โ”€migrations              # Migrations
โ”‚
โ”œโ”€โ”€โ”€static
|   |                           # Static Directory
โ”‚   โ””โ”€โ”€โ”€mainapp
โ”‚       โ”œโ”€โ”€โ”€css                 # CSS Files
|       |
โ”‚       โ”œโ”€โ”€โ”€dataset             # Dataset Files
โ”‚       โ”‚
โ”‚       โ”œโ”€โ”€โ”€gif                 # GIF Media
โ”‚       โ”‚
โ”‚       โ”œโ”€โ”€โ”€model_files         # Model Files
|       |   |
โ”‚       โ”‚   โ”œโ”€โ”€โ”€surprise        # FunkSVD Files
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ””โ”€โ”€โ”€cv              # CV Files
โ”‚       โ”‚
โ”‚       โ””โ”€โ”€โ”€png                 # PNG Media FIles
|
โ””โ”€โ”€โ”€templates                   # Root Template DIrectory
    |
    โ”œโ”€โ”€โ”€account                 # Account App Templates
    โ”‚
    โ””โ”€โ”€โ”€mainapp                 # Project Main App Templates

To Do ๐ŸŽฏ

Notebooks and Files ๐Ÿ““

References ๐Ÿ˜‡

Contributors ๐Ÿค—

2

License โœ

MIT License

Copyright (c) 2020 Praful Mohanan & Prajakta Mane

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.