Skip to content

Commit

Permalink
fixing hpdRF_parallelTree unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vishrutg committed Oct 14, 2015
1 parent 6ff7c7c commit 4ae7651
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ expect_no_error({old_rf_model <- deploy.hpdRF_parallelTree(model)})
data = generateData(100,2,TRUE,TRUE)
predictions = predict(old_rf_model, getpartition(data))
responses = getpartition(data)$X1
responses = factor(responses,levels = attr(predictions,"levels"))
responses <- factor(responses,levels = attr(predictions,"levels"))
names(responses) <- 1:length(responses)
expect_equal(predictions,responses)
})

0 comments on commit 4ae7651

Please sign in to comment.