Difficulty
Your best score
N/A
In a parallel universe, FairPlay is the department responsible for monitoring teams and players during matches.
Over the years, FairPlay has observed that certain matches tend to become chaotic more often when the following occur:
To avoid scandals as much as possible, FairPlay asks you to build a model that classifies matches according to their chaos potential.
You have historical data about matches available and need to build a classification model that can predict whether a match will become chaotic.
Two files have been made available to you:
train.csv - past matches, with chaos_labeltest.csv - new matches, without labelEach row represents a match and contains the following columns:
MatchID - unique match identifierSeason - competitive seasonMatchWeek - roundHomeTeam - home teamAwayTeam - away teamGoals - total number of goalsShots - total number of shotsCorners - total number of cornersYellowCards - number of yellow cardsRedCards - number of red cardsTeamStyles - list of playing styles associated with the match (e.g., ["AggressiveTackler", "HighPressure"])chaos_label - only in train.csv,
Predict whether a match from test.csv is chaotic (binary values - 0 or 1).
The first two subtasks verify understanding and data preprocessing.
The last subtask evaluates the performance of the classification model.
Calculate the number of matches played by the "Chelsea" team, both away and at home.
Display a single integer number.
Starting from the TeamStyles column, calculate a numeric score called StyleAggressionScore, defined as:
StyleAggressionScore = (number of aggressive styles) / (total number of styles)The styles considered aggressive are:
AggressiveTacklerRiskTakerHighPressureChaosInducerThe result must be a real number between 0 and 1.
Build a classification model that predicts whether a match is chaotic (chaos_label = 1) or controlled (chaos_label = 0).
For each row in test.csv, the model must return a binary prediction:
The model can use any feature available in the dataset, including artificial features built during previous subtasks.
For Subtask 3, evaluation is done using the macro F1 score.
The macro F1 score is calculated as follows:
This metric treats both classes equally and penalizes models that correctly predict only the majority class.
Evaluation thresholds:
Intermediate values receive proportional scoring.
The submission.csv file must contain one line for the first subtask, and 2 lines for each row in test, corresponding to the other 2 subtasks.
Structure:
subtaskID,datapointID,answerwhere:
subtaskID - 1, 2 or 3datapointID - the id value (or 1 for the first subtask)answer - depends on task:
| subtaskID | datapointID | answer |
|---|---|---|
| 1 | 1 | 2000 |
| 2 | 25758 | 0 |
| 3 | 25758 | 0 |
Dataset source: https://www.kaggle.com/datasets/ajaxianazarenka/premier-league?select=PremierLeague.csv