Skip to content

Commit

Permalink
Fixed testing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
topepo committed Jun 26, 2017
1 parent 37f226c commit 68fbe19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions RegressionTests/Code/ctree.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,9 @@ set.seed(849)
test_class_rec <- train(recipe = rec_cls,
data = training,
method = "ctree",
trControl = cctrl1,
metric = "ROC")
trControl = cctrl1)

test_class_pred_rec <- predict(test_class_rec, testing[, -ncol(testing)])
test_class_prob_rec <- predict(test_class_rec, testing[, -ncol(testing)],
type = "prob")

test_levels <- levels(test_class_cv_model)
if(!all(levels(trainY) %in% test_levels))
Expand Down
5 changes: 1 addition & 4 deletions RegressionTests/Code/ctree2.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,9 @@ set.seed(849)
test_class_rec <- train(recipe = rec_cls,
data = training,
method = "ctree2",
trControl = cctrl1,
metric = "ROC")
trControl = cctrl1)

test_class_pred_rec <- predict(test_class_rec, testing[, -ncol(testing)])
test_class_prob_rec <- predict(test_class_rec, testing[, -ncol(testing)],
type = "prob")

test_levels <- levels(test_class_cv_model)
if(!all(levels(trainY) %in% test_levels))
Expand Down

0 comments on commit 68fbe19

Please sign in to comment.