projects
/
agghoo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix agghoo for tree / rpart
[agghoo.git]
/
R
/
R6_AgghooCV.R
diff --git
a/R/R6_AgghooCV.R
b/R/R6_AgghooCV.R
index
2734d69
..
c555641
100644
(file)
--- a/
R/R6_AgghooCV.R
+++ b/
R/R6_AgghooCV.R
@@
-89,7
+89,8
@@
AgghooCV <- R6::R6Class("AgghooCV",
return (invisible(NULL))
}
V <- length(private$pmodels)
return (invisible(NULL))
}
V <- length(private$pmodels)
- if (length(private$pmodels[[1]]$model(X[1,])) >= 2)
+ oneLineX <- as.data.frame(t(as.matrix(X[1,])))
+ if (length(private$pmodels[[1]]$model(oneLineX)) >= 2)
# Soft classification:
return (Reduce("+", lapply(private$pmodels, function(m) m$model(X))) / V)
n <- nrow(X)
# Soft classification:
return (Reduce("+", lapply(private$pmodels, function(m) m$model(X))) / V)
n <- nrow(X)