A Streamlit-based web application that predicts the winning probability of IPL (Indian Premier League) cricket matches in real-time based on current match situations.
- Real-time win probability prediction for IPL matches
- Interactive user interface built with Streamlit
- Support for all IPL teams and major cricket venues
- Instant probability calculations based on multiple match parameters
- Python 3.x
- pip (Python package installer)
streamlit
pandas
pickle- Clone the repository:
git clone https://github.com/rohitbansal2005/IPL-Win-Predictor
cd ipl-win-predictor- Install the required packages:
pip install -r requirements.txt- Ensure the trained model file (
pipe.pkl) is present in the root directory.
- Run the Streamlit application:
streamlit run app.py-
Input the following match parameters:
- Batting team
- Bowling team
- Host city
- Target score
- Current score
- Overs completed
- Wickets fallen
-
Click on "Predict Probability" to see the winning chances for both teams
The application includes several validation checks:
- Overs cannot be zero
- Overs completed cannot exceed 20
- Current score cannot exceed the target
- Sunrisers Hyderabad
- Mumbai Indians
- Royal Challengers Bangalore
- Kolkata Knight Riders
- Kings XI Punjab
- Chennai Super Kings
- Rajasthan Royals
- Delhi Capitals
The application supports multiple cricket venues across:
- India (e.g., Mumbai, Delhi, Chennai, etc.)
- South Africa (e.g., Cape Town, Durban, etc.)
- UAE (Abu Dhabi, Sharjah)
The prediction is based on a machine learning model (stored in pipe.pkl) that takes into account various match parameters including:
- Current run rate (CRR)
- Required run rate (RRR)
- Wickets remaining
- Balls remaining
- Runs left to win
Feel free to fork the repository and submit pull requests for any improvements.
