Skip to content

tonyz0x0/football-manager

Repository files navigation

football-manager

In soccer’ s transfer market, the club managers find it more and more difficult to get a good sign. Therefore, we propose a method to help club managers easily find more competitive players. Our scouting system will enable clubs to increase their scouting scope, decrease their risk of signing the wrong player and enlarge the change of finding the right talent.

Dataset

Player Dataset

Player dataset originally comes from sofifa, includes main features of each individual players, such as height, ball control, long passing, along with performance ratings on different positions and a sum up.

Table structure: $16123\ players * 74\ features$

Team Dataset

Team Dataset includes team features like passing, shooting score and transfer budget. Table structure: $653\ teams * 30\ features$

Parallel Weighted Matrix Recommendation

The goal is to calculate every player’s valuable score to every club, represented in a MxN matrix, where M is the number of the players, N is the number of the clubs.

image

Step 1

Group the player into three main groups: DEF, MID and ATK.

image

Step 2

Calculate the Pearson Correlation between each specific position and specific features, list the 12 most relevant features for each specific positions, group all positions together into only three, ATK, MID and DEF, thus we get the three 1 * 12 vector for three main groups.

image

Step 3

Get 3 features-teams matrices parallely(by creating three python processes using Process Pool), transfer the features' score into weights(use Reciprocal Function) and thus we have 3 weighted-teams matrices parallelly.

image

Step 4

Create three sections, each section has a mn and nk matrix, where m is the number of players, n is the number of features' weights, and k is the number of teams. For all these three pairs of matrices, do the matrix multiplication. Then we can get 3 MxK matrices for DEF, MID and ATK positions.

image

Step 5

Do the recommendations based on these matrices.

  • To recommend Most Valued People in DEF position for FC Barcelona(Or to advise who are the Least Valued People in DEF position for FC Barcelona)

    image

  • To find out the Least Valued Players in DEF position in FC Barcelona, thus in the future we can replace them with better players.

    image

Code Repository

You can find the code here: football-manager, the core method can be found in recommendation-system.py.

About

Data Analysis as a Football Manager

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published