A simple machine learning model to predict IPL first innings score
This is a IPL score prediction model using Ridge regression which is an upgraded form of linear regression.
You must have Scikit Learn, Pandas (for Machine Leraning Model) and Flask (for API) installed.
I also tried Linear regression but that was overfitting to the next level, that’s why I went with Ridge Regression because it prevents our model from overfitting.
Lasso was also giving similar results
- In our specific use case features like mid, batsman, bowler, striker, and non-striker would not play a great role so it’s better to drop them.
- I know that batsmen can play a role in changing scores, but the problem is that there are tonnes of batsmen that have played in IPL so we can’t operate on these many categories, so it’s better to drop them.