Giter Site home page Giter Site logo

linktree_recs_apps's Introduction

LINKTREE RECS APPS

In this project we will investigate and code the recommendation system to recommend top 6 apps to an Linker. I am only covering the vertical entertainment and USER_ID inside that vertical.

Repo Structure:

NOTE: Before running any of the code please download the dataset from here: https://drive.google.com/file/d/1RrlURzSB4Tb3pu8O18QI2uJZ4qt-mc0s/view?usp=share_link Then put the folder dataset in the root of the project(linktree_recs_apps/).

Research:

In this folder we will see python notebooks with the exploratory analysis. To run this code you should follow the next steps:

  • execute in terminal 'curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.1.15 python3 -'
  • Go to research folder path and execute poetry install
  • Use the new environment to run the code

Models:

In this folder we will see the training model for our recs model and then the inference module.

train_recommender_model: In this folder we can see python files with code cell. I am not using notebooks because it is more complicated to transform this code to staging or prod if I use notebook. Still this code needs better cleaning and testing.

To run the code inside this folder you should follow the next steps:

- execute in terminal 'curl -sSL https://install.python-poetry.org |  POETRY_VERSION=1.1.15 python3 -'
- Go to train_recommender_model folder path and execute poetry install
- Use the new environment to run the code

Then run the python files in the following order:
1. src/training_data.py
2. src/model_creation.py
3. src/model_evaluation.py

recommender_inference: In this folder I made the inference to use the model. This is mainly a class which will give us the recommendations. It has basic unit testing and needs more work. But it works accordingly to the requested using the function called: generate_user_recs()

To run the code inside this folder you should follow the next steps:

- execute in terminal 'curl -sSL https://install.python-poetry.org |  POETRY_VERSION=1.1.15 python3 -'
- Go to recommender_inference folder path and execute poetry install
- Use the new environment to run the code

Then test the model inference you can use the unit testing:
1. recommender_inference/tests/unit/test_model_inference.py

This module can be build and publish in poetry and then use the library everywhere. I avoid this step because
lack of time, usually we use AWS artifact in my work. 

linktree_recs_apps's People

Contributors

gilbertofp16 avatar

Watchers

 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.