Merge pull request #1025 from andyandy1992/master

Fixed typos.
This commit is contained in:
Tianqi Chen 2016-03-22 08:49:32 -07:00
commit 1625dab1cb

View File

@ -64,8 +64,8 @@ raw = xgb.save.raw(bst)
# load binary model to R
bst3 <- xgb.load(raw)
pred3 <- predict(bst3, test$data)
# pred2 should be identical to pred
print(paste("sum(abs(pred3-pred))=", sum(abs(pred2-pred))))
# pred3 should be identical to pred
print(paste("sum(abs(pred3-pred))=", sum(abs(pred3-pred))))
#----------------Advanced features --------------
# to use advanced features, we need to put data in xgb.DMatrix