This object is an instance of the learnerSchema object
and will be typically used as the .method argument
of an MLearn call.
x <- matrix(rnorm(1000*20), ncol=20)
y <- sample(c(1:4), size=20, replace=TRUE)
alldf <- cbind.data.frame(t(x), y)
# assure it is a factor (otherwise error message)
alldf$y <- factor(alldf$y)
(mlobj <- MLearn(y ~ .,
data = alldf,
.method = pamrI,
trainInd = 1:15))
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.