Skip to content

Commit

Permalink
Updated test resources
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Jul 30, 2024
1 parent 79139d3 commit f366a0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pmml-rexp-xgboost/src/test/R/xgboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ auto.matrix = model.matrix(auto.formula, data = auto.frame, contrasts.arg = auto

auto.DMatrix = xgb.DMatrix(auto.matrix, label = auto_y)

generateXGBoostAutoNA = function(){
generateXGBoostAuto = function(){
auto.xgboost = xgboost(data = auto.DMatrix, objective = "reg:linear", nrounds = 71)
auto.xgboost = decorate(auto.xgboost, fmap = auto.frame.fmap, response_name = "mpg", ntreelimit = 17, compact = TRUE)
auto.xgboost = verify(auto.xgboost, newdata = auto.matrix[sample(nrow(auto.matrix), 10), ], response_name = "mpg", ntreelimit = 17)
Expand All @@ -33,7 +33,7 @@ generateXGBoostAutoNA = function(){

set.seed(42)

generateXGBoostAutoNA()
generateXGBoostAuto()

audit = loadAuditCsv("AuditNA")
audit$Deductions = NULL
Expand Down

0 comments on commit f366a0a

Please sign in to comment.