Skip to content

Predicts NHL game outcomes using advanced custom ML and neural network models. Features data preprocessing, label encoding, feature scaling, model evaluation, and a custom deep learning architecture. Built for real-world sports analytics and performance.

License

Notifications You must be signed in to change notification settings

Anipaleja/NHL-Outcome-Predictor-ML

Repository files navigation

NHL Outcome Predictor

Python License: AGPL v3 Stars PyTorch Scikit-learn

A machine learning system that predicts NHL game outcomes using advanced AI architectures. Built with transformer neural networks, quantum-inspired ensembles, and comprehensive feature engineering for professional-grade accuracy.

Features

  • Transformer Neural Networks: Multi-head attention mechanisms for complex pattern recognition
  • Quantum-Inspired Ensembles: Advanced ensemble methods with LightGBM, XGBoost, and CatBoost
  • 261 Advanced Features: Comprehensive feature engineering from team statistics to venue analysis
  • Interactive Web Interface: Beautiful, responsive UI for team vs team predictions
  • Real-time Analytics: Live NHL API integration with intelligent caching
  • Venue Intelligence: Home/away advantages and playoff mode considerations

Technical Architecture

This system employs a sophisticated multi-layer approach:

  • Core ML Framework: PyTorch transformers with 512-dimensional embeddings and 16 attention heads
  • Ensemble Pipeline: LightGBM, XGBoost, CatBoost with intelligent weight optimization
  • Feature Engineering: 43 → 261 features including rolling averages, momentum indicators, and venue analytics
  • Data Pipeline: Robust NHL API integration with CSV fallback (62,890+ historical games)
  • Web Framework: Flask-based interactive interface with real-time predictions

Quick Start

1. Install Dependencies

pip install -r requirements.txt

2. Run Quick Demo

python quick_demo.py

3. Launch Web Interface

python web_interface.py

Then open: http://localhost:5000

4. Advanced Usage

python advanced_nhl_predictor.py

Output should look like this:

NHL Rec-3

After installing the required prerequisites, the model initiates its self-training process, monitoring the Epoch and loss metrics as displayed below:

Training Screenshot

Status

Actively in development! Currently resolving input encoding issues and refining preprocessing steps. Neural net architecture and training loop are functional but unvalidated. Please feel free to contribute as needed! Submit an issue or pull request.

License

GNU AFFERO GENERAL PUBLIC LICENSE

See the license for more details

About

Predicts NHL game outcomes using advanced custom ML and neural network models. Features data preprocessing, label encoding, feature scaling, model evaluation, and a custom deep learning architecture. Built for real-world sports analytics and performance.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published