Skip to content

basuru07/UFC-Fight-Predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

UFC Fight Predictor πŸ₯Š

A machine learning-powered web application to predict UFC fight outcomes using historical data and betting odds.

Live Website: UFC Fight Predictor

πŸ” Overview

UFC Fight Predictor uses machine learning algorithms to forecast match results based on comprehensive fighter statistics, historical performance, and betting market data. The application helps MMA enthusiasts and bettors make more informed decisions by analyzing patterns across thousands of professional fights.

  • Goal: Predict Red/Blue corner winner using fighter stats, rankings, and betting odds
  • Dataset: 6,000+ fights with 70+ features (strikes, takedowns, odds, etc.)
  • Challenges: Class imbalance (57% Red wins), sparse rankings data (95% missing)

πŸš€ Key Features

  • Predictive Models: 65% accuracy with top predictive features being betting odds and strike accuracy
  • Fighter Comparison: Side-by-side analysis of competing fighters
  • Betting Intelligence: Confidence scores and historical trend analysis
  • Real-Time Predictions: Up-to-date fight outcome probabilities

πŸ› οΈ Technology Stack

  • Machine Learning: scikit-learn (Logistic Regression, Random Forest)
  • Backend: Django (Python)
  • Frontend: HTML/CSS with Bootstrap
  • Data Processing: Pandas for preprocessing (imputation, undersampling)
  • Hosting: PythonAnywhere

πŸ“Š Model Performance

Our models currently achieve:

  • 65% prediction accuracy
  • Balanced precision and recall metrics
  • Strong performance on main event fights

πŸ—‚οΈ Repository Structure

ufc-fight-predictor/
β”œβ”€β”€ data/                # Processed datasets (CSV)
β”œβ”€β”€ ml_model/            # Trained models & notebooks
β”œβ”€β”€ ufc_app/             # Django app
β”‚   β”œβ”€β”€ templates/       # HTML pages
β”‚   β”œβ”€β”€ views.py         # Prediction logic
β”‚   └── models.py        # Database schema
β”œβ”€β”€ manage.py
└── requirements.txt     # Dependencies

πŸƒβ€β™‚οΈ Getting Started

Prerequisites

  • Python 3.8+
  • Django 4.0+
  • scikit-learn, pandas, numpy

Installation

  1. Clone the repository
git clone https://github.com/yourusername/ufc-fight-predictor.git
cd ufc-fight-predictor
  1. Create a virtual environment and install dependencies
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
  1. Run migrations
python manage.py migrate
  1. Start the development server
python manage.py runserver
  1. Navigate to http://127.0.0.1:8000/ in your browser

πŸ“š Dataset & Model Training

For details on the dataset and model training process, visit: Octagon Oracle

About

A machine learning-powered web application to predict UFC fight outcomes using historical data and betting odds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published