-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmean_sub4.R
More file actions
20 lines (17 loc) · 769 Bytes
/
Copy pathmean_sub4.R
File metadata and controls
20 lines (17 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if (!require("pacman")) install.packages("pacman")
pacman::p_load(knitr, tidyverse, highcharter, data.table, lubridate, pROC, tictoc, DescTools, lightgbm)
set.seed(84)
options(scipen = 9999, warn = -1, digits= 4)
test2 <- fread("submission_final.csv", showProgress = FALSE)
test3 <- fread("sub_it6.csv", showProgress = FALSE)
test4 <- fread("sub_it23.csv", showProgress = FALSE)
test5 <- fread("submission_hm2.csv", showProgress = FALSE)
test6 <- fread("wordbatch_fm_ftrl.csv", showProgress = FALSE)
df <- (test2$is_attributed +
test3$is_attributed +
test4$is_attributed +
test5$is_attributed +
test6$is_attributed )/5
sub <- data.frame(test2$click_id, df)
colnames(sub) <- c("click_id","is_attributed")
fwrite(sub, "Mean6_180506_1.csv")