https://github.com/chakib-belgaid/smood-test

https://github.com/chakib-belgaid/smood-test

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 1 committers (100.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.8%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: chakib-belgaid
  • Language: Python
  • Default Branch: master
  • Size: 22.5 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed over 4 years ago

https://github.com/chakib-belgaid/smood-test/blob/master/

[![Unit tests](https://github.com/chakib-belgaid/smood-test/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/chakib-belgaid/smood-test/actions/workflows/unit_tests.yml)
# Recommendations

The goal of this toy project is to introduce user-specific consumption-based recommendations.
The instructions are purposely vague and open so that there are multiple possible solutions.
However please do not modify the existing code base (outside the bounds) and make sure you use everything that is provided (you can add anything you need except new libraries).

Even if you are not acquainted with Javascript and/or HTML, the completion of those parts should be quickly feasible with the help of internet (and not representative of our daily challenges).
However copy-pasting entire function or algorithm is not an acceptable solution.

## Guidelines

1. Read carefully these instructions until the end
2. Complete both the frontend (`index.html`) and the backend (`server.py`) according to the specs below
3. Answer the questions at the end (max 1-2 sentences per question)
4. Keep it simple, a basic working solution is better than a cumbersome solution that is hard to maintain and understand

## Specs

- a user visits the website multiple times: he should get a unique identifier, persisted across browser/computer restarts
- each user should see a list of products ordered in a tailored way: he is more likely to pick products in the first rows than latter ones (think about thousands of products, the list could not fit into a single page)
- each time a user buys a product: his user policy (probability of buying for each product) should be updated accordingly and improve the likelihood of this product to be in the first rows (**only this user should be affected by this change**)
- good recommendations do not mean "always the same product first": the user should also be tempted to explore news products (which might be the ones he likes the most)
- use logs to keep track of the correctness on the server side ?? 
  - like the averagre latency ? 
  - number of clients ? 
  - errors ? 
  - still vague but i ll get to it later 
  - 

## Questions


- how would you implement batching of tracked events on the client side (mouse movements or clicks)?
    - answer
- why is there a worker processing the events from a waiting queue rather than processing elements directly?
    - answer
- how did you incorporate fairness among the products in your strategy?
    - answer
- how does the learning parameter affect the sorting?
    - answer

## Getting statred

You should use the latest Chrome available with python >3.8 (with numpy and flask).
```shell
export FLASK_APP=server.py
export FLASK_ENV=development
flask run
```

And browse [localhost:5000](http://localhost:5000).

Good luck!

Owner

  • Name: belgaid mohammed chakib
  • Login: chakib-belgaid
  • Kind: user
  • Location: lille france
  • Company: inria-lille

Green Coder, Gamer, and technology enthousiaste, I am a PhD in computer carbonfoot prints, energy measurement and Software optimization

GitHub Events

Total
Last Year

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 20
  • Total Committers: 1
  • Avg Commits per committer: 20.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
mbelgaid m****d@i****r 20
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

.github/workflows/unit_tests.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
requirements.txt pypi
  • flask *
  • numpy *