Last active
April 2, 2016 16:41
-
-
Save sriyoda/4006c9f14d97731c5b3da0074b39df6c to your computer and use it in GitHub Desktop.
This file contains 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
train.y <- train$TARGET | |
train$TARGET <- NULL | |
train$TARGET <- train.y | |
train_new <- sparse.model.matrix(TARGET ~ ., data = train) | |
dtrain <- xgb.DMatrix(data=train_new, label=train.y) | |
watchlist <- list(train=dtrain) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment