Giter VIP home page Giter VIP logo

football's Introduction

Football Viz and Modelling (UNDER WORK)

Welcome to Football Viz and Modelling! This repository contains functions for visualizing football data and in the future also for clustering and predictions!

Currently working on a clustering function that test which methods that cluster your data the best. And a function which print spider(radar) plots for a chosen player and it's n closest neighbours.

Function Overview

scatter_viz_players

I've developed a versatile function that generates scatter plots using football data. Simply select the league, variables for the axes, and the season to get started!

How to Use

  1. Get Your Football Data: Obtain your football data with the required variables(player_id,player_name,team_name,league_id, season).
  2. Choose the League: Select the league of interest.
  3. Select Axes Variables: Choose the variables for the X and Y axes.
  4. Specify the Season: Define the season you want to analyze.
  5. (Optional) Customize Outliers: Adjust the multiplier value for standard deviation to identify outliers.

Example: Ligue 1 22/23

Here's an example from Ligue 1's 2022/2023 season, featuring the variables xG (Expected Goals) and xAG (Expected Assists Goals).

  • The red dots indicate outliers in the data
  • There is hover-over information on all points in the created HTML

Visualization

Test Image

Note: README files on GitHub can't display interactive HTML content, so the Plotly image has been saved as a PNG. If you'd like to interact with the plot and explore its functionalities, you can watch the HTML file from the link below:

Link to Ligue 1 2022/2023 xG-xAG Scatter Plot HTML(Created with Raw.githack.com)

Or download it from here:

Download Ligue 1 2022/2023 xG-xAG Scatter Plot HTML

football's People

Contributors

johhed15 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.