Created
December 13, 2017 20:36
-
-
Save WalkerHarrison/9d35474d4b9a24d8a0f925d87f16c0cb to your computer and use it in GitHub Desktop.
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
train = paint_train %>% select(-logprice) | |
train.y = paint_train %>% select(logprice) %>% pull() | |
data.new <- paint_test %>% select(-logprice) %>% data.matrix() | |
xgb.fit <- xgboost(data = data.matrix(train), | |
label = train.y, | |
objective = "reg:linear", | |
eval_metric = "rmse", | |
max.depth = 10, | |
eta = 0.05, | |
nround = 75, | |
verbose =0) | |
xgb.pred <- exp(predict(xgb.fit, newdata = data.new)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment