Sprint 2: Initial rule-based recommendation demo (personas + summary)#193
Open
srinikethreddy29 wants to merge 2 commits intoDataBytes-Organisation:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have created a new YAML file reco_personas.yaml with shopper profiles such as student, parent, senior, health-conscious, and budget shoppers. I also updated trend_test_8.py so it can read these personas and generate recommendations using a small synthetic product list. There is also a summary option that shows how many items from each category each persona gets. This work is part of Sprint 2, where we needed to build multiple personas and show how they can drive a recommendation system. It is a simple demo using dummy data, just to prove the logic works. To run it, go into the Data Analysis folder and use the commands:
python trend_test_8.py --reco-demo # shows per-persona recommendations
python trend_test_8.py --reco-demo --reco-summary # adds category counts for each persona
This demo is synthetic only and does not touch real datasets in the Data/ folder. It does not change or break any other analysis scripts or backend/frontend code. If run without the --reco-demo flag, the script continues to work as usual (volatility, PED, etc.) and simply ignores this demo.
To run normal data analysis:
python trend_test_8.py #runs existing analytics (volatility, PED, outliers) and ignores demo.