Created
April 6, 2014 11:12
-
-
Save chiral/10004609 to your computer and use it in GitHub Desktop.
base line model for https://www.kaggle.com/c/allstate-purchase-prediction-challenge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
#train <- read.csv("train.csv") | |
test <- read.csv("test_v2.csv") | |
last_items <- test %.% | |
group_by(customer_ID) %.% | |
filter(shopping_pt==max(shopping_pt)) %.% | |
mutate(plan=paste(A,B,C,D,E,F,G,sep='')) %.% | |
select(customer_ID,plan) | |
write.csv(last_items,"submit.csv", | |
row.names=F,quote=F) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment