Skip to content

Commit

Permalink
Fixed the ROC AUC calculation for issue #565
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Kuhn authored and Max Kuhn committed Jan 13, 2017
1 parent 41d63c3 commit c393552
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/caret/R/filterVarImp.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

#' @importFrom ModelMetrics auc
rocPerCol <- function(dat, cls){
auc(cls, dat)
roc_auc <- auc(cls, dat)
max(roc_auc, 1 - roc_auc)
}

#' @importFrom utils modifyList
Expand Down
6 changes: 5 additions & 1 deletion pkg/caret/inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
\newcommand{\issue}{\href{https://github.com/topepo/caret/issues/#1}{(issue #1)}}


\section{Changes in version 6.0-xx}{
\section{Changes in version 6.0-74}{
\itemize{
\item Monotone multi-layer perceptron neural network models from the \cpkg{monmlp} package were added \issue{489}
\item A new resampling function (\code{groupKFold}) was added \issue(540)
\item The bootstrap optimism estimate was added by Alexis Sarda \issue(544)
\item Bugs in \code{glm}, \code{glm.nb}, and \code{lm} variable importance methods that occur when a single variable is in the model \issue{543}
\item A bug in \code{filterVarImp} was fixed where the ROC curve AUC could be much less than 0.50 because the directionality of the predictor was not taken into account. This will artificially increase the importance of some non-informative predictors. However, the bug might report the AUC for an important predictor to be 0.20 instead of 0.80. \issue{565}
\item \code{multiClassSummary} now reports the average F score \issue{566}
\item The \code{RMSE} and \code{R2} are now (re)exposed to the users \issue{563}
\item A \cpkg{caret} bug was discovered by Jiebiao Wang where \code{glmboost}, \code{gamboost}, and \code{blackboost} models incorrectly reported the class probabilities \issue{560}
}
}

Expand Down

0 comments on commit c393552

Please sign in to comment.