Skip to content

Commit

Permalink
Bug in additional MAE estimate when model fails for PR #657
Browse files Browse the repository at this point in the history
  • Loading branch information
topepo committed Jul 8, 2017
1 parent a8de336 commit ac12060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/caret/R/postResample.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ postResample <- function(pred, obs)
{
if(length(obs) + length(pred) == 0)
{
out <- rep(NA, 2)
out <- rep(NA, 3)
} else {
if(length(unique(pred)) < 2 || length(unique(obs)) < 2)
{
Expand Down

0 comments on commit ac12060

Please sign in to comment.