Documentation: no need to save model in txt...

This commit is contained in:
El Potaeto
2015-01-25 20:16:56 +01:00
parent d188c997f0
commit 52a2b652d3
2 changed files with 2 additions and 4 deletions

View File

@@ -51,9 +51,8 @@ train <- agaricus.train
bst <- xgboost(data = train$data, label = train$label, max.depth = 2,
eta = 1, nround = 2,objective = "binary:logistic")
xgb.dump(bst, 'xgb.model.dump', with.stats = TRUE)
#agaricus.test$data@Dimnames[[2]] represents the column names of the sparse matrix.
xgb.model.dt.tree(agaricus.train$data@Dimnames[[2]], filename_dump = 'xgb.model.dump')
xgb.model.dt.tree(agaricus.train$data@Dimnames[[2]], model = bst)
}