Now let's try to solve really important questions.
Here is a table with some of the Game of Thrones battles. There are three columns: number of attackers (attacker_size), number of defenders (defender_size), and an outcome of a battle (attacker_outcome).
Table as a csv file
attacker_outcome,attacker_size,defender_size
win,15000,4000
win,15000,10000
loss,20000,10000
win,100,100
loss,21000,7250
win,3500,3500
loss,100000,1240
win,4500,200
A decision tree was built to predict an outcome of a battle. Here's the final part of the tree and the condition is set to the attacker_size feature:
You have to go through the table above and predict an outcome of a battle for each sample. Then you compare predictions with actual outcomes, calculate the accuracy of the tree, and enter the answer as a percentage.
Tip: Accuracy is the number of correct predictions divided by the number of all samples.