Skip to content

Commit

Permalink
change in the cforest oob measure for issue #351
Browse files Browse the repository at this point in the history
  • Loading branch information
topepo committed Jan 13, 2016
1 parent 9445758 commit 0734afc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion models/files/cforest.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ modelInfo <- list(label = "Conditional Inference Random Forest",
sort = function(x) x[order(x[,1]),],
oob = function(x) {
obs <- x@data@get("response")[,1]
pred <- predict(x, x@data@get("input"), OOB = TRUE)
pred <- predict(x, OOB = TRUE)
postResample(pred, obs)
})
1 change: 1 addition & 0 deletions pkg/caret/inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
\itemize{
\item An adjustment the innards of adaptive resampling was changed so that the test for linear dependencies is more stringent.
\item A bug in the bootstrap 632 estimate (found by Alexis Sarda) was fixed \issue{#349}.
\item The \code{cforest} module's \code{oob} element was modifed based on another bug found by Alexis Sarda \issue{#351}.
}
}
Expand Down
Binary file modified pkg/caret/inst/models/models.RData
Binary file not shown.

0 comments on commit 0734afc

Please sign in to comment.