No Kaggle datasets. No YouTube tutorials. No shortcuts.
Just raw Python, real business logic, and 12 layers of pure Data Science.
That's CHANAKYA β a 100% original end-to-end AI Commerce Intelligence Platform built on a synthetically generated Indian e-commerce dataset with real brands, real cities, real business patterns.
π‘ "Most people download a dataset. I built one."
| π Orders | π₯ Customers | π° Revenue | π¦ Products | ποΈ Cities |
|---|---|---|---|---|
| 5,010 | 1,000 | βΉ2.67 Crore | 50 Indian Brands | 28 Cities |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CHANAKYA ECOSYSTEM β
ββββββββ¬βββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββ€
β L1 β Data Source + Simulation β 5,010 live orders β
β L2 β ETL Pipeline β Production-grade logging β
β L3 β SQL Data Warehouse β Star Schema + 7 queries β
β L4 β EDA β 16 professional charts β
β L5 β RFM Segmentation β 9 segments + animation π¬ β
β L6 β Anomaly Detection β 34 frauds caught β
β L7 β ML Demand Forecasting β Gradient Boosting wins β
β L8 β Deep Learning LSTM β Time series forecasting β
β L9 β Churn Prediction β 477 at-risk customers β
β L10 β Power BI Dashboard β Dark theme + DAX measures β
β L11 β ARTHA Agentic AI β LLaMA 3.3 70B via Groq β
β L12 β Streamlit Deployment β Live on the internet β
ββββββββ΄βββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββ
Named after Kautilya's Arthashastra β the ancient treatise on wealth and governance
ARTHA doesn't just answer questions. It thinks, analyzes, and visualizes β all in real time.
Dark theme | 6 KPIs | 5 Visuals | 7 DAX Measures | 3 Interactive Slicers
16 professional charts revealing real business insights
9 customer segments | Animated visualization
34 fraud accounts caught using Z-Score + Isolation Forest
4 models compared | Gradient Boosting wins with R2: 0.2891
Linear Regression β R2: 0.2652
Decision Tree β R2: 0.0780
Random Forest β R2: 0.2522
Gradient Boosting β R2: 0.2891 β
WINNER
π R2 scores are moderate due to limited monthly data (37 points). In production with daily transaction data, accuracy will significantly improve. This demonstrates honest ML evaluation β not overfitting to small datasets.
Time series revenue forecasting with TensorFlow
477 at-risk customers identified | Data leakage detected & fixed
v1 with days_since_last β 100% accuracy β (LEAKAGE!)
v2 without leakage β 67% accuracy β
(HONEST)
π Electronics drives 75% revenue β but has the LOWEST profit margin
π 129 Champion customers generate βΉ83.4L β top 13% = 31% revenue
β οΈ 34 fraud accounts detected using Z-Score + Isolation Forest
π 477 customers predicted to churn β before they actually left
π― November is peak month β festive season spike clearly visible
π³ UPI dominates at 34.9% β Digital India is real
WITH customer_ltv AS (
SELECT customer_id, SUM(revenue) as lifetime_value,
RANK() OVER (ORDER BY SUM(revenue) DESC) as ltv_rank
FROM fact_order_items GROUP BY customer_id
)
SELECT * FROM customer_ltv ORDER BY lifetime_value DESC;| Data Engineering | Machine Learning | Business Analytics |
|---|---|---|
| β ETL Pipeline | β 4 ML Models Compared | β RFM Segmentation |
| β Star Schema Design | β Deep Learning LSTM | β Anomaly Detection |
| β Feature Engineering | β Churn Prediction | β Power BI DAX |
| β Data Validation | β Data Leakage Detection | β Agentic AI |
Language : Python 3.11
Database : MySQL (Star Schema)
ML Libraries : Scikit-learn, TensorFlow, Keras
Data : Pandas, NumPy, Faker (Indian locale)
Visualization : Matplotlib, Seaborn, Plotly, Power BI
AI Model : LLaMA 3.3 70B via Groq API
Frontend : Streamlit
Deployment : Streamlit Cloud
Security : python-dotenv
Version Ctrl : Git + GitHub
git clone https://github.com/DeveshShukla23/CHANAKYA.git
cd CHANAKYA
pip install -r layer12_streamlit_api/requirements.txt
echo "GROQ_API_KEY=your_groq_key_here" > layer12_streamlit_api/.env
cd layer12_streamlit_api
streamlit run app.py













