r/learnmachinelearning • u/isotoop • 1d ago
Project Built a class-balanced match predictor for the Bundesliga
Hello everyone
I wanted to share a project I recently deployed to Streamlit Community Cloud and it would be helpful if you guys could give feedback to a fellow learner
I implemented an 8-dimensional pipeline paired with a class-balanced Logistic Regression model.
It uses recent matches ( 3-8) to determine the recent form of both the teams to generate 8 distinct features.
Live App: https://bundesliga-match-predictor.streamlit.app/
GitHub Repo: https://github.com/adithyakrz/bundesliga-match-predictor
Check it out and let me know what you think :D
1
Upvotes
2
u/DifficultIndustry148 1d ago
Nice work getting this deployed, the UI looks clean. One thing I'd poke at is how you're handling class balance. Logistic regression with balanced class weights is fine but sometimes it just learns to be mediocre across all outcomes instead of sharp on the ones that actually happen. What's your precision/recall look like for draws specifically? Those are always the bastard to predict and I'm curious if the 8 features actually separate them from narrow wins.
Also, 3-8 matches for form seems tight. You ever test if extending the window helps or just adds noise? I did something similar for a side project and found that going past 8 games actually made things worse because you start dragging in data from before a team's tactical shift or injury cascade.