Giter Site home page Giter Site logo

001021 / pitchpredictionrl Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 27.99 MB

PitchPredictionRL is a project that aims to predict the primary pitch types a pitcher tends to throw based on the current game situation and pitch tipping.

Python 2.86% Jupyter Notebook 4.88% CSS 69.44% JavaScript 16.51% HTML 5.77% Java 0.54%

pitchpredictionrl's Introduction

PitchPredictionRL

PitchPredictionRL is a project that focuses on predicting the primary pitch types a pitcher tends to throw in an ongoing baseball game. It takes into account the current game situation and pitch tipping cues to make accurate predictions. Using reinforcement learning techniques, it also provides recommendations on the optimal actions a batter should take to maximize rewards when facing a particular pitch type.

Wiki Page

Features

  • Pitch type prediction: Based on the available game data and pitch tipping cues, the project predicts the most likely pitch type that a pitcher will throw in the current situation.

  • Reinforcement learning: The project employs reinforcement learning algorithms to learn and recommend the best actions for a batter when a specific pitch type is thrown.

  • Reward optimization: By considering various factors such as pitch velocity, movement, and batter's performance, the project aims to guide the batter towards actions that yield the highest rewards.

Installation

  1. Clone the repository:
git clone https://github.com/001021/PitchPredictionRL.git
  1. Set up the virtual environment (optional but recommended):
cd PitchPredictionRL
python -m venv env
source env/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Prepare the necessary data: Ensure that you have the relevant game data and pitch tipping cues available for the prediction process.

  2. Train the model: Run the training script to train the reinforcement learning model and optimize the reward predictions.

python train.py
  1. Make predictions: Use the trained model to make pitch type predictions based on the current game situation and pitch tipping cues.
    (* You can get the models trained by us from this Google Drive link)
python predict.py
  1. Evaluate the performance: Assess the accuracy and effectiveness of the pitch type predictions and the recommended actions for batters.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

pitchpredictionrl's People

Contributors

jyp9i7y avatar 001021 avatar minjun0707 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.