Skip to content

Ml smart cart - Implement data preprocessing, feature engineering, and behavioral feature creation#204

Open
mmahww1994 wants to merge 4 commits intoDataBytes-Organisation:mainfrom
mmahww1994:ML_SmartCart_Maha
Open

Ml smart cart - Implement data preprocessing, feature engineering, and behavioral feature creation#204
mmahww1994 wants to merge 4 commits intoDataBytes-Organisation:mainfrom
mmahww1994:ML_SmartCart_Maha

Conversation

@mmahww1994
Copy link

  1. Data Preprocessing: Consolidated raw data sources, standardized dtypes, and handled missing values to deliver a clean, analysis-ready dataset.
  2. Seasonality & Promotions: Engineered a dynamic adjusted_spend feature by applying seasonal multipliers and synthetic promotional discounts.
  3. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant