├── .gitignore ├── CONDUCT.md ├── Dockerfile ├── Makefile ├── Makefile.png ├── README.md ├── data ├── game_teams_stats.csv ├── team_id.txt ├── test.csv └── train.csv ├── doc ├── results_report.Rmd ├── results_report.html └── results_report.md ├── imgs ├── Makefile.png ├── all-figs │ ├── fig-10_win-y.jpg │ ├── fig-11_shots-y.jpg │ ├── fig-12_goals-y.jpg │ ├── fig-13_save-y.jpg │ ├── fig-1_home-away.jpg │ ├── fig-2_win-diff.jpg │ ├── fig-3_shots-diff.jpg │ ├── fig-4_goals-diff.jpg │ ├── fig-5_save-diff.jpg │ ├── fig-6_win-x.jpg │ ├── fig-7_shots-x.jpg │ ├── fig-8_goals-x.jpg │ └── fig-9_save-x.jpg ├── data_snippet.png ├── fig-1_home-away.jpg └── fig-2_shots-diff.jpg ├── results ├── dtree ├── dtree.pdf ├── feature_importance.csv ├── final_result.csv ├── max_depth.png └── model_selection.csv └── source ├── building_model.py ├── cleaning_nhl_data.R ├── exploring_nhl_data.R ├── finding_best_model.py └── get_data.py /.gitignore: -------------------------------------------------------------------------------- 1 | .ipynb_checkpoints/ 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/CONDUCT.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/Dockerfile -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/Makefile -------------------------------------------------------------------------------- /Makefile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/Makefile.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/README.md -------------------------------------------------------------------------------- /data/game_teams_stats.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/data/game_teams_stats.csv -------------------------------------------------------------------------------- /data/team_id.txt: -------------------------------------------------------------------------------- 1 | team_id 2 | 23 3 | -------------------------------------------------------------------------------- /data/test.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/data/test.csv -------------------------------------------------------------------------------- /data/train.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/data/train.csv -------------------------------------------------------------------------------- /doc/results_report.Rmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/doc/results_report.Rmd -------------------------------------------------------------------------------- /doc/results_report.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/doc/results_report.html -------------------------------------------------------------------------------- /doc/results_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/doc/results_report.md -------------------------------------------------------------------------------- /imgs/Makefile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/Makefile.png -------------------------------------------------------------------------------- /imgs/all-figs/fig-10_win-y.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-10_win-y.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-11_shots-y.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-11_shots-y.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-12_goals-y.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-12_goals-y.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-13_save-y.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-13_save-y.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-1_home-away.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-1_home-away.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-2_win-diff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-2_win-diff.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-3_shots-diff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-3_shots-diff.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-4_goals-diff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-4_goals-diff.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-5_save-diff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-5_save-diff.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-6_win-x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-6_win-x.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-7_shots-x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-7_shots-x.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-8_goals-x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-8_goals-x.jpg -------------------------------------------------------------------------------- /imgs/all-figs/fig-9_save-x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/all-figs/fig-9_save-x.jpg -------------------------------------------------------------------------------- /imgs/data_snippet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/data_snippet.png -------------------------------------------------------------------------------- /imgs/fig-1_home-away.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/fig-1_home-away.jpg -------------------------------------------------------------------------------- /imgs/fig-2_shots-diff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/imgs/fig-2_shots-diff.jpg -------------------------------------------------------------------------------- /results/dtree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/results/dtree -------------------------------------------------------------------------------- /results/dtree.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/results/dtree.pdf -------------------------------------------------------------------------------- /results/feature_importance.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/results/feature_importance.csv -------------------------------------------------------------------------------- /results/final_result.csv: -------------------------------------------------------------------------------- 1 | ,depth,algorithm,accuracy 2 | 0,1,RandomForest,0.6056338028169014 3 | -------------------------------------------------------------------------------- /results/max_depth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/results/max_depth.png -------------------------------------------------------------------------------- /results/model_selection.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/results/model_selection.csv -------------------------------------------------------------------------------- /source/building_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/source/building_model.py -------------------------------------------------------------------------------- /source/cleaning_nhl_data.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/source/cleaning_nhl_data.R -------------------------------------------------------------------------------- /source/exploring_nhl_data.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/source/exploring_nhl_data.R -------------------------------------------------------------------------------- /source/finding_best_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/source/finding_best_model.py -------------------------------------------------------------------------------- /source/get_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UBC-MDS/nhl-game-predictor/HEAD/source/get_data.py --------------------------------------------------------------------------------