Skip to content

Commit 87bda30

Browse files
committed
Adding final version of the presentation
1 parent c24955c commit 87bda30

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+30670
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.Rproj.user
2+
.Rhistory
3+
.RData
4+
.Ruserdata

clean_data.R

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
library(tidyverse)
2+
3+
fifa_data <- read_csv('data/data.csv')
4+
5+
fifa_data %>%
6+
select(
7+
Name, Age, Nationality, Overall,
8+
Position, Finishing, ShortPassing,
9+
LongPassing, Acceleration, SprintSpeed,
10+
Agility, Balance, ShotPower, Jumping,
11+
Stamina, Strength) %>%
12+
filter(Position != 'GK') %>%
13+
mutate(quality_level = if_else(Overall > quantile(Overall, 0.80), 'A',
14+
if_else(Overall > quantile(Overall, 0.60), 'B',
15+
if_else(Overall > quantile(Overall, 0.40), 'C',
16+
if_else(Overall > quantile(Overall, 0.20), 'D', 'F'))))) %>%
17+
select(-Overall) -> fifa_data
18+
19+
table(fifa_data$quality_level)
20+
21+
fifa_data %>%
22+
filter(quality_level != 'F') %>%
23+
group_by(quality_level) %>%
24+
sample_n(1000) %>%
25+
write_csv('data/fifa_players.csv')

data/data.csv

Lines changed: 18208 additions & 0 deletions
Large diffs are not rendered by default.

data/fifa_players.csv

Lines changed: 4001 additions & 0 deletions
Large diffs are not rendered by default.

imgs/caret.png

5.67 KB
Loading

imgs/decision_tree.jpg

27 KB
Loading

imgs/keras.png

6.87 KB
Loading

imgs/montreal.png

133 KB
Loading

imgs/parsnip.jpg

1.46 MB
Loading

imgs/random_forest.jpg

111 KB
Loading

0 commit comments

Comments
 (0)