Home Page with information from each matchup of the day, including updated scores, game time, game status, and the prediction of the winner of the game. If the prediction was right, the prediction will be in green text. If the prediction was wrong, the prediction will be in red text.
History page with daily prediction records and overall prediction record. There is also a spot to see the overall prediction record by team, to be able to tell which teams the model is best and worst at predicting. I added buttons to sort by the teams the model is best at predicting, and the teams the model is worst at predicting.
This is the page the user is sent to after logging in with Google. They have the option to either be sent to the predictions page, or log out. I implemented Google OAuth for Google Sign In.
- Open a terminal and paste the below text:
-
git clone https://github.com/Michael-Goldfarb/MLBGamePredictor.git - Open up three terminals and cd into MLBGamePredictor by typing 'cd MLBGamePredictor' in each terminal
- In one terminal, run 'git checkout backend'
- In the same terminal, run 'cd tables', then 'cd currentTables'
- Follow the instructions on the Notes.md file
- In /currentTables, run the following files:
-
python todaysgames.py -
python gamesv3.py -
python gamesrefresh.py -
python hittingstats.py -
python pitchingstats.py -
python probablesstats.py -
python lineupstats.py -
python previousyearhittingstats.py -
python previousyearpitchingstats.py - Then, in another terminal, run 'cd tables'
- In that terminal, run the following files:
-
python prediction1.py -
python prediction2.py -
python prediction3.py -
python prediction4.py -
python prediction5.py - Then, to start the website, in the same terminal, run 'cd ..', then 'cd backend', then 'mvn spring-boot:run'
- Open up your third terminal, run 'git checkout web', then 'cd web', then 'cd web', then 'npm start'
- Now the website is started! For more up-to-date predictions and game scores, run the gamesRefresh file, the prediction5.py file, and run the lineupStats.py and previousyearhittingstats tables, because lineups are only put out a few hours before the start of the game and could change.