Chad's Portfolio

Welcome to my portfolio showcasing my data analytics and cloud engineering projects.

View My GitHub Profile

Player Performance Prediction Project

Welcome to the Player Performance Prediction project! This repository contains a complete workflow for predicting baseball player statistics such as Wins Above Replacement (WAR), Hits, Home Runs (HR), and Stolen Bases (SB) using historical data.

The project includes:

Table of Contents


Overview

The objective of this project is to forecast future baseball player performance metrics using machine learning models. A Flask web app provides an intuitive interface to select players and view predictions into the future.

Key features:


Project Files


Data Analysis

The dataset includes player statistics across seasons, such as:

Insights


Modeling

Four machine learning models were trained to predict:

  1. WAR
  2. Hits
  3. Home Runs (HR)
  4. Stolen Bases (SB)

Model Performance


Web Application

A Flask web application provides:

  1. Player Selection: Users can select a player from a dropdown.
  2. Future Forecasts: Predictions for up to 5 future seasons.
  3. Interactive Interface: Results displayed in a user-friendly table format.

Routes


Installation

Prerequisites

Ensure the following are installed:

Steps

  1. Clone the repository:
    git clone https://github.com/chadb12/player-performance-prediction.git
    cd player-performance-prediction
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Run the Flask application:
    python app.py
    
  4. Open the app in your browser:
    http://127.0.0.1:5000
    

Usage

  1. Launch the Flask app.
  2. Select a player from the dropdown menu.
  3. View forecasts for WAR, Hits, HR, and SB for the next few seasons.

Future Work


Acknowledgments