This repository is for a MLB Fantasy Sports Project that contains 3 roughly parts:
-
Scrape reference data using the Selenium and BeautifulSoup packages in Python
-
Train a xgboost model to predict player scores
-
Run a multiple constraints knapsack optimzation problem to find the best lineup for a given day
Here is an example output: