Ml smart cart - Implement data preprocessing, feature engineering, and behavioral feature creation#204
Open
mmahww1994 wants to merge 4 commits intoDataBytes-Organisation:mainfrom
Open
Conversation
mmahww1994
commented
Sep 21, 2025
- Data Preprocessing: Consolidated raw data sources, standardized dtypes, and handled missing values to deliver a clean, analysis-ready dataset.
- Seasonality & Promotions: Engineered a dynamic adjusted_spend feature by applying seasonal multipliers and synthetic promotional discounts.
- Preference Features: Created core ML features recency_days, freq_30d, and budget_alignment to model user purchase behavior.
Consolidate multiple product CSV files into a unified dataset. Drop irrelevant columns (like Unnamed: 0). Standardize column types: Handle missing values (NaN for prices, product categories).
2. Seasonality & Promotions Add seasonal_factor column based on months (e.g., 1.5x in Nov/Dec, 0.8x in Jan/Feb). Add promotion_discount column for selected products or categories. Compute adjusted_spend = transaction_price * seasonal_factor * (1 - promotion_discount). This functionlity required the simultaed transaction csv file.
Compute Recency: days since last purchase per user-product pair. Compute Frequency: number of purchases in last 30 days. Compute Budget Alignment: deviation of user spend vs. average spend.
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.