Interactive deep learning project to predict IPL innings scores from match context such as teams, venue, batsman, bowler, runs, wickets, and overs.
- Project Overview
- Live Notebook Actions
- Project Highlights
- Tech Stack
- How It Works
- Run Locally
- Interactive Prediction Widget
- Model Workflow
- Future Improvements
This project builds a deep learning regression model that predicts final IPL scores during an innings. It includes:
- Data loading and preprocessing
- Label encoding of categorical cricket features
- Feature scaling with MinMaxScaler
- Neural network training with Keras
- Interactive score prediction using ipywidgets
- Open notebook locally: IPL.ipynb
- Open in GitHub: View on GitHub
- Open in Colab: Run in Colab
Click to expand key features
- End-to-end notebook workflow from EDA to prediction
- Categorical encoding for venue, teams, batsman, and bowler
- Deep neural network with Huber loss for robust regression
- Interactive widget interface for real-time score predictions
| Area | Tools |
|---|---|
| Language | Python |
| Data | pandas, numpy |
| Visualization | matplotlib, seaborn |
| ML / DL | scikit-learn, keras |
| Notebook UI | ipywidgets |
- Load IPL historical ball-by-ball style data.
- Explore trends (venues, batsmen, bowlers, wickets).
- Encode categorical inputs using LabelEncoder.
- Select features and split into train/test sets.
- Scale features using MinMaxScaler.
- Train a Keras regression model.
- Predict innings total through interactive widgets.
git clone https://github.com/itsluckysharma01/IPL-Score-Prediction-using-Deep-Learning.git
cd IPL-Score-Prediction-using-Deep-Learningpip install pandas numpy matplotlib seaborn scikit-learn keras ipywidgets notebookjupyter notebook IPL.ipynbThe notebook includes dropdowns and numeric inputs for:
- Venue
- Batting team
- Bowling team
- Striker
- Bowler
- Runs, wickets, overs, and striker indicator
Then click Predict Score to get a predicted total runs value.
Expand training setup
- Input features: teams, venue, batsman, bowler, wickets, overs, striker, runs
- Target: innings total score
- Architecture: Dense(512, relu) -> Dense(216, relu) -> Dense(1, linear)
- Loss function: Huber loss
- Optimizer: Adam
- Add model comparison (XGBoost, Random Forest, LSTM)
- Add evaluation metrics dashboard (MAE, RMSE, R2)
- Deploy as a web app with Streamlit or FastAPI
- Add CI checks and reproducible environment files
Lucky Sharma