DEV Community

Cover image for Lacrosse prediction update #1
Lyle Olsen
Lyle Olsen

Posted on

Lacrosse prediction update #1

It is apparent to me that I am very rusty with python. Yes I had a class in college for it and I’ve done a couple of small projects with it but I’ve really hit some things with this project that I’ve never done before.

Starting this project I’m going super simple just to get something out there and to do it before I get too bored with the it. I’m just comparing to stats for teams and whoever has the better stat gets the point. No machine learning with it just yet.

For each game I’m using 12 stats for each team. I then send each team stat over to a method and compare them. For most of the stats I just see which one is greater and then award the winning team the point. Whichever team has the most points and is predicted to win. If that teams win the same amount of categories then I do the high technical method of randomly picking a winner. But in my testing I haven’t needed this option.

I know it’s not a perfect method but it’s fine for me know. I’ve tested it on four games thus far and it’s 50% accurate. 🤷‍♂️
So there’s that.

For this part of the project I still have a couple things to do before moving on. I need to fix the csv reader so I can put all the game in at a time and list out the winners. Once I get that I’m going to run the 5 years it data I have. That way when I get the learning model figured out I can compare and see which one was more accurate.

This is one of those projects that really has no purpose other than for learning and as a way to bring two of my passions together.

Top comments (0)