Predict whether a website visitor will make a purchase based on their
browsing behavior.
This project walks through a full machine-learning pipeline inside the
notebook:
shopping_intent.ipynb
It includes data cleaning, feature engineering, class-imbalance handling, model building, tuning, and evaluation.
- Analyze user behavior patterns\
- Predict the target variable MadePurchase (Yes/No)\
- Resolve missing values and outliers\
- Handle class imbalance using SMOTE\
- Compare multiple ML models\
- Choose and tune the best performer
- Python
- Pandas, NumPy
- Matplotlib / Seaborn
- Scikit‑learn
- Imbalanced‑learn (SMOTE)
shopping_intent.ipynb # Main notebook
README.md # Project documentation
- Data Understanding & EDA\
- Data Cleaning\
- Feature Engineering\
- Encoding & Scaling\
- Class Balancing (SMOTE)\
- Modeling\
- Hyperparameter Tuning\
- Final Model Selection
Install dependencies:
pip install pandas numpy scikit-learn imbalanced-learn matplotlib seaborn
Open the notebook:
jupyter notebook shopping_intent.ipynb
Gradient Boosting showed the strongest performance after handling imbalance and tuning.
- Add explainability tools (SHAP)
- Deploy as API / dashboard
- Try more advanced ensemble models
Feel free to modify or extend!