Skip to content

About

Beer Recommendation System

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Beer Recommender System

What is this?

This beer recommender system combines collaborative filtering and content-based filtering techniques to provide personalized beer recommendations for beer lovers, helping them discover new beers based on their preferences.

How it works?

The beer recommender system utilizes two techniques:

  • Collaborative Filtering: Using the SVD (Singular Value Decomposition) algorithm from the Surprise library, the system predicts the ratings a user would give to different beers based on their past ratings and the ratings of similar users.

  • Content-Based Filtering: Using the TF-IDF (Term Frequency-Inverse Document Frequency) vectorizer from scikit-learn, the system finds similar beers based on their styles and recommends beers with similar styles to the ones the user has rated highly.

The final recommendations are a combination of both collaborative filtering and content-based filtering results, providing a more comprehensive and personalized list of beer suggestions.

How Was it Made?

The beer recommendation system was made using Python programming language and several libraries which are included in the requirments(Pandas, NumPy, scikit-learn, random, surprise, etc)

Requirements:

-Python 3

-pandas

-numpy

-scikit-learn

-Surprise

How to run

  1. Download or clone the repository.

https://github.com/Ncnchiche/beerProject

git clone [link]
  1. Add Data Set To your repository:
  1. Create a virtual environment (optional, but recommended):

    1. cd into directory

    2. Create venv:

       python -m venv venv
      
    3. Activate virtual environment

      -To Activate on Windows:

       .\venv\Scripts\activate
      

      -To Activate on Mac:

       source venv/bin/activate
      
  2. Once virtual environment activated, install required libraries using requirments.txt

    pip install -r requirements.txt
    
  3. Run the main.py file and have fun :)

    python3 main.py
    
  4. Once its started running you will be provided with the metrics and then prompted for Profile name(you can find profile name on beer_reviews.csv) and then itll provide you with the top 10 recommendations

Metrics Information

  • The Program calculates the Metrics and displays it.
  • It provide an assessment of the model's performance.

This information is useful to understand the reliability of the recommendations provided by the system and for fine-tuning the model to improve its accuracy.

Keywords:

Precision: The proportion of recommended items that are relevant. It refers to the percentage of recommended beers that a user would rate highly (above a certain threshold).

Recall: The proportion of relevant items that are recommended. In this context, it is the percentage of beers rated highly by the user that are included in the recommendations.

F1 Score: A higher F1 score means the model does a better job of finding the right items without recommending too many irrelevant ones. In simpler terms, the F1 score tells us how well our model is doing in making accurate recommendations.

RMSE(Root Mean Square Error): is a way to measure how good a model is at making predictions. It tells us how far off our predictions are from the actual results. Lower the better

Demo

My Image

About

Beer Recommendation System

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages