Problem #202
Author:Catalin Chiru
Difficulty
Your best score
N/A
Following a cosmic phenomenon called the Chaos Convergence, characters from multiple comic book universes have been reunited into a single reality. The Interdimensional Hero Monitoring Agency (IHMA) has centralized data about these heroes to quickly analyze their profiles and make automated decisions.
The recorded data describes both general character traits and associated abilities and numerical statistics. Analyzing this data is important for:
To solve the problem, you will have two files at your disposal:
train.csv – contains labeled examples used for analysis and model training;test.csv – contains the same variables but does not include the powerstats__combat and Super Strength columns, which must be predicted in Task 3 and Task 4.The dataset includes characters from several editorial universes, for example:
In this problem, the notion of "universe" corresponds to the value in the Publisher column.
Each row in the train.csv and test.csv files corresponds to a character.
The dataset contains:
id;powerstats__...;Example columns:
| Column | DType | Description |
|---|---|---|
| id | int | Unique identifier of the character |
| name | object | Character name |
| Publisher | object | Publisher / editorial universe |
| Gender | object | Character gender |
| Race | object | Species / race |
| Eye color | object | Eye color |
| Hair color | object | Hair color |
| Height | float | Character height |
| Weight | float | Character weight |
| Alignment | object | Alignment: good, bad, neutral or - |
| powerstats__intelligence | float | Intelligence level |
| powerstats__strength | float | Strength level |
| powerstats__speed | float | Speed level |
| powerstats__durability | float | Durability level |
| powerstats__power | float | General power level |
| powerstats__combat | float | Combat level (only in train.csv) |
| Super Strength | int | Binary ability: super-strength (only in train.csv) |
| Agility | int | Binary ability: agility |
| Flight | int | Binary ability: flight |
Using the data from the train.csv file, determine how many distinct values appear in the Publisher column.
Using the data from the train.csv file, consider only characters where Alignment = good.
Determine which publisher contains the most positive heroes.
In case of a tie, choose the publisher that comes first alphabetically.
powerstats__combat (40 points)Based on the data from the train.csv file, train a model capable of predicting the values of the powerstats__combat attribute for each character in test.csv.
Super Strength Ability (40 points)Based on the data from the train.csv file, train a model capable of predicting the values of the Super Strength attribute for each character in test.csv.
Allowed values are (predictions must be final binary labels, not probabilities):
0.01.0The submission file must be in csv format and contain the following columns:
| Column | Description |
|---|---|
| id | Identifier of the evaluated entity |
| subtaskID | Identifier of the task for which the answer is submitted |
| answer | Calculated or predicted value |
Possible values for subtaskID are:
| subtaskID | Task |
|---|---|
| task1 | Number of distinct universes |
| task2 | Publisher with the most positive heroes |
| task3 | Prediction of powerstats__combat |
| task4 | Prediction of the Super Strength ability |
For Task 1 and Task 2, the answer is global and is submitted using the special value GLOBAL in the id column.
submission.csv fileid,subtaskID,answerGLOBAL,task1,1GLOBAL,task2,Cartoon Network43,task3,2.5750,task3,5.171,task4,0.04,task4,1.0The total score is 100 points.
Evaluation is done by exact comparison between the submitted value and the correct answer.
Evaluation is done by exact comparison between the submitted value and the correct answer.
For Task 3, the MAE (Mean Absolute Error) metric is used.
Points are awarded as follows:
MAE ≤ 12.0, 40 points are awarded;MAE ≥ 30.0, 0 points are awarded;The formula used is:
score_task3 = 40 × (30 - MAE) / (30 - 12), for 12 < MAE < 30For Task 4, the Accuracy metric is used.
Points are awarded as follows:
Accuracy ≥ 0.90, 40 points are awarded;Accuracy ≤ 0.55, 0 points are awarded;The formula used is:
score_task4 = 40 × (Accuracy - 0.55) / (0.90 - 0.55), for 0.55 < Accuracy < 0.90