This project analyzes Amazon sales data using data preprocessing, visualization, and machine learning models. It includes both regression and classification tasks using Random Forest models to predict profits and sales channel types.
👉 Download AmazonSalesData.csv
- Clean & preprocess raw sales data
- Feature engineering (e.g., delivery time)
- Label encoding and feature scaling
- Exploratory Data Analysis (EDA) with seaborn/matplotlib
- Random Forest Regressor to predict
Total Profit - Random Forest Classifier to predict
Sales Channel(Online/Offline) - Model evaluation with metrics: MAE, RMSE, Accuracy, Classification Report
Windows:
- Download from python.org
- Check "Add Python to PATH" during installation
- Verify installation:
python --versionmacOS/Linux:
brew install python@3.11
# or
sudo apt update && sudo apt install python3.11git clone https://github.com/YourUsername/Amazon-Sales-ML.git
cd Amazon-Sales-ML# Windows
python -m venv venv
venv\Scripts\activate
# macOS/Linux
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txtOr manually:
pip install pandas numpy matplotlib seaborn scikit-learnpython MachineLearning.py- Distribution of Total Profit
- Sales Channel Split (Online vs Offline)
- Profit by Item Type
- Revenue vs Cost Scatterplot
- Feature Correlation Heatmap
- MAE, MSE, RMSE
- Accuracy, Classification Report
├── MachineLearning.py
├── AmazonSalesData.csv
├── README.md
├── requirements.txt
For queries or collaboration, feel free to reach out!